[Fedora-directory-devel] Announcing Fedora DS - dsbuild with debug support

Thomas Fitzsimmons fitzsim at redhat.com
Fri Jan 20 01:17:15 UTC 2006


On Thu, 2006-01-19 at 17:52 -0700, Richard Megginson wrote:
> Thomas Fitzsimmons wrote:
> 
> >On Thu, 2006-01-19 at 17:40 -0700, Richard Megginson wrote:
> >  
> >
> >>Thomas Fitzsimmons wrote:
> >>
> >>    
> >>
> >>>On Thu, 2006-01-19 at 17:16 -0700, Richard Megginson wrote:
> >>> 
> >>>
> >>>      
> >>>
> >>>>Thomas Fitzsimmons wrote:
> >>>>
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>>>On Thu, 2006-01-19 at 15:56 -0700, Richard Megginson wrote:
> >>>>>
> >>>>>
> >>>>>     
> >>>>>
> >>>>>          
> >>>>>
> >>>>>>Now you can use the one step build method - 
> >>>>>>http://directory.fedora.redhat.com/wiki/Building#One-Step_Build - to 
> >>>>>>build a debug version of the server, suitable for gdb and the like.  
> >>>>>>Please try it out and let us know how it works.
> >>>>>>  
> >>>>>>
> >>>>>>       
> >>>>>>
> >>>>>>            
> >>>>>>
> >>>>>I'm trying this on FC5test1 to see if I can build FDS against gcj.
> >>>>>
> >>>>>     
> >>>>>
> >>>>>          
> >>>>>
> >>>>Hmm - if you just want to check our java code, you might want to just 
> >>>>build the Java based components with gcj - 
> >>>>http://directory.fedora.redhat.com/wiki/BuildingConsole and the like.  
> >>>>But I suppose you will want to test the console against the server once 
> >>>>it is compiled.
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>Yeah, I'd like to compile the whole thing, if possible.
> >>>
> >>> 
> >>>
> >>>      
> >>>
> >>>>>One
> >>>>>nit is the instructions:
> >>>>>
> >>>>>...
> >>>>>% cd to dsbuild/meta/ds
> >>>>>...
> >>>>>
> >>>>>should read:
> >>>>>
> >>>>>...
> >>>>>% cd dsbuild/meta/ds
> >>>>>...
> >>>>>
> >>>>>
> >>>>>     
> >>>>>
> >>>>>          
> >>>>>
> >>>>Done.
> >>>>
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>>>The next problem is that I can't find apr-config for FC5.  All I have is
> >>>>>apr-1-config.  When I modify ds/mod_nss/Makefile's CONFIGURE_ARGS to
> >>>>>change --with-apr-config to --with-apr-config=/usr/bin/apr-1-config the
> >>>>>build fails like this:
> >>>>>
> >>>>>
> >>>>>     
> >>>>>
> >>>>>          
> >>>>>
> >>>>Hmm - what version of Apache does FC5 use?  Try
> >>>>apr-1-config --version
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>$ apr-1-config --version
> >>>1.2.2
> >>>
> >>> 
> >>>
> >>>      
> >>>
> >>>>and
> >>>>/usr/sbin/httpd.worker -v
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>$ /usr/sbin/httpd.worker -v
> >>>Server version: Apache/2.2.0
> >>>Server built:   Jan  5 2006 06:53:51
> >>> 
> >>>
> >>>      
> >>>
> >>Ah.  It looks as though there will be some porting work - darn - why the 
> >>heck did they have to change the include files used for modules from 
> >>Apache 2.0 to Apache 2.2 :-(
> >>    
> >>
> >
> >Joe Orton (CCed) may know; Joe is there some compatibility package I can
> >install to work around 2.0 -> 2.2 header differences?
> >  
> >
> Or better yet - is there a way we can change our module code so that it 
> compiles with Apache 2.0 and 2.2?

Re-posting the build errors for Joe's inspection:

/bin/sh ./libtool --mode=compile cc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mod_nss\" -DVERSIO
N=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1
-DYYTEXT_POINTER=1  -I. -I. -I/usr/include/httpd
-I/home/fitzsim/sources/dsbuild/ds/mozilla/work/mozilla/dist
/Linux2.6_x86_glibc_PTH_OPT.OBJ/include
-I/home/fitzsim/sources/dsbuild/ds/mozilla/work/mozilla/dist/public/nss
-I/usr/include/apr-1   -I/tmp/fedora-ds-build/include -I/tmp/fedor
a-ds-build/include -I/tmp/fedora-ds-build/include -DWANT_SSL2
-I/tmp/fedora-ds-build/include -L/tmp/fedora-ds-build/lib -O2 -pipe
-I/tmp/fedora-ds-build/include -L/tmp/fedora-ds-b
uild/lib -O2 -pipe -I/tmp/fedora-ds-build/include
-L/tmp/fedora-ds-build/lib -O2 -pipe -c -o mod_nss.lo `test -f
'mod_nss.c' || echo './'`mod_nss.c
mkdir .libs
cc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mod_nss\"
-DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE
_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=
1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DYYTEXT_POINTER=1 -I. -I.
-I/usr/include/httpd
-I/home/fitzsim/sources/dsbuild/ds/mozilla/work/mozilla/dist/Linux2.6_x86_glibc_PTH_OPT.OBJ/in
clude
-I/home/fitzsim/sources/dsbuild/ds/mozilla/work/mozilla/dist/public/nss
-I/usr/include/apr-1 -I/tmp/fedora-ds-build/include
-I/tmp/fedora-ds-build/include -I/tmp/fedora-ds-b
uild/include -DWANT_SSL2 -I/tmp/fedora-ds-build/include
-L/tmp/fedora-ds-build/lib -O2 -pipe -I/tmp/fedora-ds-build/include
-L/tmp/fedora-ds-build/lib -O2 -pipe -I/tmp/fedora-ds-b
uild/include -L/tmp/fedora-ds-build/lib -O2 -pipe -c mod_nss.c -MT
mod_nss.lo -MD -MP -MF .deps/mod_nss.TPlo  -fPIC -DPIC
-o .libs/mod_nss.lo
In file included from /usr/include/httpd/ap_config.h:25,
                 from /usr/include/httpd/httpd.h:43,
                 from mod_nss.h:20,
                 from mod_nss.c:16:
/usr/include/apr-1/apr.h:270: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'apr_off_t'
In file included from /usr/include/apr-1/apr_file_io.h:29,
                 from /usr/include/apr-1/apr_network_io.h:26,
                 from /usr/include/httpd/httpd.h:53,
                 from mod_nss.h:20,
                 from mod_nss.c:16:
/usr/include/apr-1/apr_file_info.h:204: error: expected
specifier-qualifier-list before 'apr_off_t'
In file included from /usr/include/apr-1/apr_network_io.h:26,
                 from /usr/include/httpd/httpd.h:53,
                 from mod_nss.h:20,
                 from mod_nss.c:16:
/usr/include/apr-1/apr_file_io.h:548: error: expected declaration
specifiers or '...' before 'apr_off_t'
/usr/include/apr-1/apr_file_io.h:740: error: expected declaration
specifiers or '...' before 'apr_off_t'
In file included from /usr/include/httpd/httpd.h:53,
                 from mod_nss.h:20,
                 from mod_nss.c:16:
/usr/include/apr-1/apr_network_io.h:545: error: expected declaration
specifiers or '...' before 'apr_off_t'
In file included from /usr/include/apr-1/apr_buckets.h:32,
                 from /usr/include/httpd/httpd.h:54,
                 from mod_nss.h:20,
                 from mod_nss.c:16:
/usr/include/apr-1/apr_mmap.h:134: error: expected declaration
specifiers or '...' before 'apr_off_t'
/usr/include/apr-1/apr_mmap.h:161: error: expected declaration
specifiers or '...' before 'apr_off_t'
In file included from /usr/include/httpd/httpd.h:54,
                 from mod_nss.h:20,
                 from mod_nss.c:16:
/usr/include/apr-1/apr_buckets.h:242: error: expected
specifier-qualifier-list before 'apr_off_t'
/usr/include/apr-1/apr_buckets.h:706: error: expected declaration
specifiers or '...' before 'apr_off_t'
/usr/include/apr-1/apr_buckets.h:718: error: expected declaration
specifiers or '...' before 'apr_off_t'
/usr/include/apr-1/apr_buckets.h:754: error: expected declaration
specifiers or '...' before 'apr_off_t'
/usr/include/apr-1/apr_buckets.h:890: error: expected declaration
specifiers or '...' before 'apr_off_t'
/usr/include/apr-1/apr_buckets.h:891: error: expected declaration
specifiers or '...' before 'apr_off_t'
/usr/include/apr-1/apr_buckets.h:1168: error: expected declaration
specifiers or '...' before 'apr_off_t'
/usr/include/apr-1/apr_buckets.h:1367: error: expected declaration
specifiers or '...' before 'apr_off_t'
/usr/include/apr-1/apr_buckets.h:1381: error: expected declaration
specifiers or '...' before 'apr_off_t'
/usr/include/apr-1/apr_buckets.h:1431: error: expected declaration
specifiers or '...' before 'apr_off_t'
/usr/include/apr-1/apr_buckets.h:1447: error: expected declaration
specifiers or '...' before 'apr_off_t'
In file included from mod_nss.h:20,
                 from mod_nss.c:16:
/usr/include/httpd/httpd.h:826: error: expected specifier-qualifier-list
before 'apr_off_t'
In file included from /usr/include/httpd/http_core.h:32,
                 from mod_nss.h:22,
                 from mod_nss.c:16:
/usr/include/httpd/util_filter.h:142: error: expected declaration
specifiers or '...' before 'apr_off_t'
/usr/include/httpd/util_filter.h:299: error: expected declaration
specifiers or '...' before 'apr_off_t'
In file included from mod_nss.h:22,
                 from mod_nss.c:16:
/usr/include/httpd/http_core.h:229: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'ap_get_limit_req_body'
/usr/include/httpd/http_core.h:672: error: expected declaration
specifiers or '...' before 'apr_off_t'
In file included from mod_nss.h:27,
                 from mod_nss.c:16:
/usr/include/httpd/http_protocol.h:111: error: expected declaration
specifiers or '...' before 'apr_off_t'
/usr/include/httpd/http_protocol.h:203: error: expected declaration
specifiers or '...' before 'apr_off_t'
In file included from /usr/include/httpd/mpm.h:28,
                 from mod_nss.h:30,
                 from mod_nss.c:16:
/usr/include/httpd/scoreboard.h:116: error: expected
specifier-qualifier-list before 'apr_off_t'
In file included from mod_nss.h:32,
                 from mod_nss.c:16:
/usr/include/apr-1/apr_strings.h:297: error: expected declaration
specifiers or '...' before 'apr_off_t'
/usr/include/apr-1/apr_strings.h:313: error: expected ')' before '*'
token
/usr/include/apr-1/apr_strings.h:349: error: expected ')' before 'size'
make[2]: *** [mod_nss.lo] Error 1
make[2]: Leaving directory
`/home/fitzsim/sources/dsbuild/ds/mod_nss/work/mod_nss-1.0'
make[1]: *** [build-work/mod_nss-1.0/Makefile] Error 2
make[1]: Leaving directory `/home/fitzsim/sources/dsbuild/ds/mod_nss'
make: *** [dep-../../ds/mod_nss] Error 2

Tom

> 
> >Tom
> >
> >  
> >
> >>>Tom
> >>>
> >>>
> >>>--
> >>>Fedora-directory-devel mailing list
> >>>Fedora-directory-devel at redhat.com
> >>>https://www.redhat.com/mailman/listinfo/fedora-directory-devel
> >>> 
> >>>
> >>>      
> >>>
> >>--
> >>Fedora-directory-devel mailing list
> >>Fedora-directory-devel at redhat.com
> >>https://www.redhat.com/mailman/listinfo/fedora-directory-devel
> >>    
> >>
> >
> >--
> >Fedora-directory-devel mailing list
> >Fedora-directory-devel at redhat.com
> >https://www.redhat.com/mailman/listinfo/fedora-directory-devel
> >  
> >
> --
> Fedora-directory-devel mailing list
> Fedora-directory-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-devel




More information about the Fedora-directory-devel mailing list