Menu

Help building with Fedora Core4

Help
2006-02-06
2013-05-15
  • Chris Trown

    Chris Trown - 2006-02-06

         Hello.  I'm having some trouble building the library under Core4.  Any pointers?  Here are the details:

    ./configure --prefix=/usr/local --with-ap
    xs=/usr/sbin/apxs
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking build system type... i686-redhat-linux-gnu
    checking host system type... i686-redhat-linux-gnu
    checking for a sed that does not truncate output... /bin/sed
    checking for egrep... grep -E
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking whether ln -s works... yes
    checking how to recognise dependent libraries... pass_all
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking how to run the C++ preprocessor... g++ -E
    checking for g77... no
    checking for f77... no
    checking for xlf... no
    checking for frt... no
    checking for pgf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for f90... no
    checking for xlf90... no
    checking for pgf90... no
    checking for epcf90... no
    checking for f95... f95
    checking whether we are using the GNU Fortran 77 compiler... yes
    checking whether f95 accepts -g... yes
    checking the maximum length of command line arguments... 32768
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if gcc static flag  works... yes
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    checking if gcc supports -c -o file.o... yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    checking for ld used by g++... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC
    checking if g++ PIC flag -fPIC works... yes
    checking if g++ supports -c -o file.o... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    appending configuration tag "F77" to libtool
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for f95 option to produce PIC... -fPIC
    checking if f95 PIC flag -fPIC works... yes
    checking if f95 supports -c -o file.o... yes
    checking whether the f95 linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking what the shared library extension is... could not determine shared library extension.  Defaulting to .so
    .so
    checking for apxs... found /usr/sbin/apxs
    checking for __gxx_personality_v0 in -lstdc++... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating example/Makefile
    config.status: creating example/handler/Makefile
    config.status: creating example/input_filter/Makefile
    config.status: creating example/output_filter/Makefile
    config.status: creating example/protocol/Makefile
    config.status: creating test/Makefile
    config.status: creating test/t/conf/extra.conf
    config.status: creating docs/Makefile
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands

    # uname -a
    Linux sip2-proxy.uoregon.edu 2.6.15-1.1830_FC4smp #1 SMP Thu Feb 2 17:39:38 EST 2006 i686 i686 i386 GNU/Linux

    # make
    make  all-recursive
    make[1]: Entering directory `/usr/local/src/mod_cplusplus-1.5.2'
    Making all in src
    make[2]: Entering directory `/usr/local/src/mod_cplusplus-1.5.2/src'
    if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/httpd -I/usr/include/apr-0 -I/usr/include/apr-0 -I/usr/include/apr-0 -I/usr/include/apr-0  -I/usr/include/httpd -I/usr/include/apr-0 -I/usr/include/apr-0 -I/usr/include/apr-0 -I/usr/include/apr-0 -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -Wall -Werror -g -I/usr/local/src/mod_cplusplus-1.5.2/include  -g -O2 -MT mod_cplusplus.lo -MD -MP -MF ".deps/mod_cplusplus.Tpo" -c -o mod_cplusplus.lo mod_cplusplus.c; \ then mv -f ".deps/mod_cplusplus.Tpo" ".deps/mod_cplusplus.Plo"; else rm -f ".deps/mod_cplusplus.Tpo"; exit 1; fi
    gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/httpd -I/usr/include/apr-0 -I/usr/include/apr-0 -I/usr/include/apr-0 -I/usr/include/apr-0 -I/usr/include/httpd -I/usr/include/apr-0 -I/usr/include/apr-0 -I/usr/include/apr-0 -I/usr/include/apr-0 -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -Wall -Werror -g -I/usr/local/src/mod_cplusplus-1.5.2/include -g -O2 -MT mod_cplusplus.lo -MD -MP -MF .deps/mod_cplusplus.Tpo -c mod_cplusplus.c  -fPIC -DPIC -o .libs/mod_cplusplus.o
    mod_cplusplus.c: In function 'create_cpp_server_config':
    mod_cplusplus.c:55: error: 'struct <anonymous>' has no member named 'var_hash'
    mod_cplusplus.c: In function 'pass_server_var':
    mod_cplusplus.c:85: error: 'struct <anonymous>' has no member named 'var_hash'
    make[2]: *** [mod_cplusplus.lo] Error 1
    make[2]: Leaving directory `/usr/local/src/mod_cplusplus-1.5.2/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/local/src/mod_cplusplus-1.5.2'
    make: *** [all] Error 2
    #

         Thanks!

    Chris...

     
    • John K. Sterling

      Hi -

      We've seen similar errors recently.  Most likely you have old header files on the include path somewhere.

      1) Did you download the source yourself and run autogen.sh?  Or are you using some sort of package manager (like yum)?
      2) Sometimes people have found httpd include dir contains old versions of the header files(/usr/include/httpd/) and those get picked up before the ones in the source tree - look for mod_cplusplus.h in the directories on the include path above.  If you aren't sure, send me the output of 'make -d' - it should show you which include files it is finding.

      Send that info to me and we should be able to figure out what's going on.

       
    • Chris Trown

      Chris Trown - 2006-02-06

           Bingo.  Looks like an older version was already installed on the system:

      # rpm -qa | grep cplusplus
      mod_cplusplus-1.3.1-1

           I guess I should have checked that.  Dox for a different package said that there was no RPM for this package.

           Thanks.

      Chris...

          

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.