Build fails when configured with --enable-separate-ns flag
(But I've successfully built a library when uncommented the code line:
#define USE_NAMESPACES 1 in src/config.h.)
./configure --prefix=$dest --enable-separate-ns --enable-cpp-exceptions \
&& make \
&& make install \
&& make clean
mv: makefile: No such file or directory
mv: makefile: No such file or directory
checking for g++... g++
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 g++ accepts -g... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for bison... bison -y
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking build system type... i386-apple-darwin10.8.0
checking host system type... i386-apple-darwin10.8.0
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no
checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm
checking how to recognize dependent libraries... pass_all
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 xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... cc1: warning: command line option "-Wno-invalid-offsetof" is valid for C++/ObjC++ but not for C
yes
checking for -exported_symbols_list linker flag... yes
checking for correct ltmain.sh version... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin10.8.0 dyld
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/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no
checking whether the g++ linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin10.8.0 dyld
(cached) (cached) checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for ceil in -lm... yes
checking for clock_gettime in -lrt... no
checking for working alloca.h... yes
checking for alloca... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking host system type... (cached) i386-apple-darwin10.8.0
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of g++... gcc3
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking for size_t... yes
checking for ssize_t... yes
checking for ptrdiff_t... yes
checking for error_at_line... no
checking whether time.h and sys/time.h may both be included... yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... no
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for working strcoll... yes
checking for working strtod... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking whether compiling with debug options enabled... no
checking whether compiling with multithread support... yes
checking for pthread_create in -lpthread... yes
checking whether compiling with fault tolerant option... no
checking whether compiling with support for C locale settings... yes
checking for debug trace level... important
checking whether to place fastdb classes in separate namespaces... yes
checking whether to compile with authentication support... no
checking whether to enable queue manager for internal http server... no
checking whether to throw exceptions on error instead of abort()... yes
checking whether to ignore case for all string comparisons... no
checking whether STL string support is enbled... yes
checking whether configuring for diskless systems... no
checking whether to enable autoincrement fields support... yes
checking for rectangle dimension... 2
checking for rectangle coordinate type... int
checking for rectangle area type... db_int8
checking whether to enable POSIX semaphores support... no
checking whether to enable POSIX mmap support... nd
checking whether to disable mmap usage... yes
checking whether configuring with fuzzy checkpoint option enabled... no
checking whether configuring for recoverable critical sections... no
checking whether to disable DB flush on commit... yes
checking for database OID bits... 32
checking for database offset bits... 32
checking whether compiling with regex support... no
checking whether enabling the SO_LINGER option... no
checking whether compiling with DB protection option enabled... no
checking whether compiling with synchronous replication support... no
checking support for exchanging data between systems with different alignment rules... no
checking whether to reuse OIDs... yes
checking whether using Doug Lea version of malloc... no
checking for ftruncate... yes
checking for gethostbyname... yes
checking for gethostbyname_r... no
checking for gethostname... yes
checking for getpagesize... (cached) yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for localtime_r... yes
checking for memmove... yes
checking for memset... yes
checking for munmap... yes
checking for pow... yes
checking for regcomp... yes
checking for select... yes
checking for setlocale... yes
checking for socket... yes
checking for sqrt... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strrchr... yes
checking for strstr... yes
checking for uname... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating examples/Makefile
config.status: creating inc/acconfig.h
config.status: executing depfiles commands
Making all in src
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../inc -I../inc -Wno-invalid-offsetof -Wall -DNDEBUG -O2 -fno-strict-aliasing -MT class.lo -MD -MP -MF .deps/class.Tpo -c -o class.lo class.cpp
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I../inc -I../inc -Wno-invalid-offsetof -Wall -DNDEBUG -O2 -fno-strict-aliasing -MT class.lo -MD -MP -MF .deps/class.Tpo -c class.cpp -fno-common -DPIC -o .libs/class.o
g++ -DHAVE_CONFIG_H -I. -I../inc -I../inc -Wno-invalid-offsetof -Wall -DNDEBUG -O2 -fno-strict-aliasing -MT class.lo -MD -MP -MF .deps/class.Tpo -c class.cpp -o class.o >/dev/null 2>&1
mv -f .deps/class.Tpo .deps/class.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../inc -I../inc -Wno-invalid-offsetof -Wall -DNDEBUG -O2 -fno-strict-aliasing -MT compiler.lo -MD -MP -MF .deps/compiler.Tpo -c -o compiler.lo compiler.cpp
g++ -DHAVE_CONFIG_H -I. -I../inc -I../inc -Wno-invalid-offsetof -Wall -DNDEBUG -O2 -fno-strict-aliasing -MT compiler.lo -MD -MP -MF .deps/compiler.Tpo -c compiler.cpp -fno-common -DPIC -o .libs/compiler.o
compiler.cpp: In constructor ‘fastdb::dbCompiler::dbCompiler()’:
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
compiler.cpp:1897: warning: deprecated conversion from string constant to ‘char*’
g++ -DHAVE_CONFIG_H -I. -I../inc -I../inc -Wno-invalid-offsetof -Wall -DNDEBUG -O2 -fno-strict-aliasing -MT compiler.lo -MD -MP -MF .deps/compiler.Tpo -c compiler.cpp -o compiler.o >/dev/null 2>&1
mv -f .deps/compiler.Tpo .deps/compiler.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../inc -I../inc -Wno-invalid-offsetof -Wall -DNDEBUG -O2 -fno-strict-aliasing -MT database.lo -MD -MP -MF .deps/database.Tpo -c -o database.lo database.cpp
g++ -DHAVE_CONFIG_H -I. -I../inc -I../inc -Wno-invalid-offsetof -Wall -DNDEBUG -O2 -fno-strict-aliasing -MT database.lo -MD -MP -MF .deps/database.Tpo -c database.cpp -fno-common -DPIC -o .libs/database.o
database.cpp: In static member function ‘static void fastdb::dbDatabase::execute(fastdb::dbExprNode*, fastdb::dbInheritedAttribute&, fastdb::dbSynthesizedAttribute&)’:
database.cpp:1389: warning: taking address of temporary
database.cpp:1390: warning: taking address of temporary
database.cpp:1396: warning: taking address of temporary
database.cpp:1397: warning: taking address of temporary
database.cpp:1403: warning: taking address of temporary
database.cpp:1404: warning: taking address of temporary
database.cpp:1410: warning: taking address of temporary
database.cpp:1411: warning: taking address of temporary
database.cpp:1417: warning: taking address of temporary
database.cpp:1418: warning: taking address of temporary
database.cpp:1424: warning: taking address of temporary
database.cpp:1425: warning: taking address of temporary
database.cpp:1431: warning: taking address of temporary
database.cpp:1432: warning: taking address of temporary
database.cpp:1438: warning: taking address of temporary
database.cpp:1439: warning: taking address of temporary
database.cpp: In member function ‘bool fastdb::dbDatabase::open(const char_t*, const char_t*, time_t, time_t)’:
database.cpp:2416: warning: format not a string literal and no format arguments
database.cpp: In member function ‘void fastdb::dbDatabase::backupScheduler()’:
database.cpp:2743: error: aggregate ‘fastdb::STATSTRUCT st’ has incomplete type and cannot be defined
database.cpp: In member function ‘bool fastdb::dbDatabase::loadScheme(bool)’:
database.cpp:2932: warning: deprecated conversion from string constant to ‘char*’
make[1]: *** [database.lo] Error 1
make: *** [all-recursive] Error 1
---
OSX 10.6 (Snow Leopard), gcc version 4.2.1 (Apple Inc. build 5666)