From: Thomas P. <tho...@os...> - 2002-05-14 10:01:02
|
Is it possible to use log4cpp with gcc3.0.1 ? I tried to compile under Linux (SuSE 7.3) and HPUX (gcc3.0.1 too) log4cpp-0.2.7, but it failed (please reply to tho...@os...) here my small wrapper script for start configure: unset CFLAGS export PATH="/opt/gcc/gcc-3.0.1/bin:$PATH" export CC=/opt/gcc/gcc-3.0.1/bin/gcc export CXX=/opt/gcc/gcc-3.0.1/bin/g++ export CXXFLAGS='-g -Wall -pedantic' ../configure --prefix=/opt and OUTPUT from configure: checking for a BSD compatible install... /usr/bin/ginstall -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking build system type... i586-pc-linux-gnu checking host system type... i586-pc-linux-gnu checking for gcc... /opt/gcc/gcc-3.0.1/bin/gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether /opt/gcc/gcc-3.0.1/bin/gcc accepts -g... yes 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 dependant libraries... pass_all checking command to parse /usr/bin/nm -B output... ok checking how to run the C preprocessor... /opt/gcc/gcc-3.0.1/bin/gcc -E checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for /opt/gcc/gcc-3.0.1/bin/gcc option to produce PIC... -fPIC checking if /opt/gcc/gcc-3.0.1/bin/gcc PIC flag -fPIC works... yes checking if /opt/gcc/gcc-3.0.1/bin/gcc static flag -static works... yes checking if /opt/gcc/gcc-3.0.1/bin/gcc supports -c -o file.o... yes checking if /opt/gcc/gcc-3.0.1/bin/gcc supports -c -o file.lo... no checking if /opt/gcc/gcc-3.0.1/bin/gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking whether -lc should be explicitly linked in... no creating libtool checking for a BSD compatible install... /usr/bin/ginstall -c checking whether make sets ${MAKE}... (cached) yes checking whether we are using the GNU C++ compiler... yes checking whether /opt/gcc/gcc-3.0.1/bin/g++ accepts -g... yes checking how to run the C++ preprocessor... /opt/gcc/gcc-3.0.1/bin/g++ -E checking for unistd.h... yes checking for io.h... no checking for int64_t... yes checking whether the compiler implements namespaces... yes checking whether the compiler has stringstream... yes checking for working snprintf... yes checking for syslog... yes checking for gettimeofday... yes checking for ftime... yes checking for strcasecmp... yes checking for socket in -lsocket... no checking for gethostbyname in -lnsl... yes checking for doxygen... /usr/bin/doxygen checking for dot... /usr/local/bin/dot creating log4cpp-config - generic 0.2.7 of log4cpp -lnsl configure: creating ./config.status config.status: creating Makefile config.status: creating log4cpp.spec config.status: creating config/Makefile config.status: creating doc/Makefile config.status: creating doc/Doxyfile config.status: creating src/Makefile config.status: creating include/Makefile config.status: creating include/log4cpp/Makefile config.status: creating tests/Makefile config.status: creating debian/Makefile config.status: creating msvc6/Makefile config.status: creating msvc6/log4cpp/Makefile config.status: creating msvc6/testCategory/Makefile config.status: creating msvc6/testNDC/Makefile config.status: creating bcb5/Makefile config.status: creating bcb5/log4cpp/Makefile config.status: creating bcb5/testCategory/Makefile config.status: creating bcb5/testConfig/Makefile config.status: creating bcb5/testFixedContextCategory/Makefile config.status: creating bcb5/testmain/Makefile config.status: creating bcb5/testNDC/Makefile config.status: creating bcb5/testPattern/Makefile config.status: creating openvms/Makefile config.status: creating include/config.h config.status: include/config.h is unchanged creating include/log4cpp/config.h - prefix LOG4CPP for include/config.h defines /* automatically generated bcb5/ config/ debian/ doc/ include/ m4/ msvc6/ openvm s/ src OUTPUT from make: .. .. .. /opt/gcc/gcc-3.0.1/bin/g++ -g -Wall -pedantic -Wall -pedantic -o .libs/testmain testmain.o ../src/.libs/liblog4cpp.so -lnsl -Wl,--rpath -Wl,/opt/lib .../src/.libs/liblog4cpp.so: undefined reference to `std::codecvt<char, char, __mbstate_t>::id' collect2: ld returned 1 exit status make[1]: *** [testmain] Error 1 =========================================================================== OUTPUT FROM HP-UX: /opt/gcc/bin/g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -Wall -pedantic -Wall -pedantic -c PatternLayout.cpp -fPIC -DPIC -o PatternLayout.o PatternLayout.cpp: In member function `std::string log4cpp::PatternLayout::doFormat(const log4cpp::LoggingEvent&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool*)': PatternLayout.cpp:128: `int64_t' undeclared (first use this function) PatternLayout.cpp:128: (Each undeclared identifier is reported only once for each function it appears in.) PatternLayout.cpp:128: parse error before `=' token PatternLayout.cpp:130: `t' undeclared (first use this function) *** Error exit code 1 Stop. *** Error exit code 1 ======================================================================== Please reply to tho...@os... -- |