[Pdns-dev] Building PowerDNS on Mac OS X 10.4.10

Liza Witz LizaWitz at gmail.com
Wed Oct 31 17:03:53 CET 2007


Hello--

I'm trying to build PowerDNS on my macbook.   Below is the compilation
error I get and at the end of the message is the full results of
config and make.   I downloaded the boost package as suggested in a
previous faq about building 2.9.20 on 10.4.8....

Also, I can make a powerbook running 10.4 available to developers for
a few months, if it will help get OS X to be officially supported.
I'd set it up on my network, and give you root.   Otherwise we can
debug the problems here.... I'm a developer but more of a cocoa
developer than a unix environment developer.

Any help appreciated.


g++ -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\"
-DLOCALSTATEDIR=\"/var/run\" -Ibackends/bind -pthread
-I/Users/liza/project/src/powerdns/boost_1_33_1 -Wall -O2 -pthread -o
pdns_server -rdynamic dnspacket.o nameserver.o qtype.o logger.o
arguments.o packethandler.o tcpreceiver.o packetcache.o statbag.o
dnsbackend.o ws.o webserver.o session.o misc.o receiver.o
ueberbackend.o dynlistener.o dynhandler.o resolver.o communicator.o
dnsproxy.o randombackend.o unix_utility.o common_startup.o
unix_semaphore.o bindbackend2.o bindparser.o bindlexer.o gsqlbackend.o
base64.o sillyrecords.o zoneparser-tng.o dnsrecords.o dnswriter.o
rcpgenerator.o dnsparser.o -Wl,-bind_at_load  -ldl -lz
i686-apple-darwin8-g++-4.0.1: unrecognized option '-pthread'
i686-apple-darwin8-g++-4.0.1: unrecognized option '-pthread'
i686-apple-darwin8-g++-4.0.1: unrecognized option '-rdynamic'
make[2]: Nothing to be done for `all-am'.



macbook:~/project/src/powerdns/pdns-2.9.21 liza$
CXXFLAGS=-I/Users/liza/project/src/powerdns/boost_1_33_1 ./configure
--with-modules=""
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... i386-apple-darwin8.10.1
checking host system type... i386-apple-darwin8.10.1
checking for style of include used by make... GNU
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 ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -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 whether byte ordering is bigendian... no
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 dependency style of gcc... (cached) 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 for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
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 cf77... 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 pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for f95... no
checking for fort... no
checking for xlf95... 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 -p output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
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/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin8.10.1 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/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/bin/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/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin8.10.1 dyld
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for strings.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking boost/shared_ptr.hpp usability... yes
checking boost/shared_ptr.hpp presence... no
configure: WARNING: boost/shared_ptr.hpp: accepted by the compiler,
rejected by the preprocessor!
configure: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result
checking for boost/shared_ptr.hpp... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for gethostname... yes
checking for gettimeofday... yes
checking for mkdir... yes
checking for mktime... yes
checking for select... yes
checking for socket... yes
checking for strerror... yes
checking for dlopen in -ldl... yes
checking for RTLD_NOW... yes
checking whether we will be doing verbose logging... no
checking whether we should build static binaries...
checking whether we will be building the server... yes
checking whether we will be building the recursor... no
checking whether we should use nedmalloc allocator... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating modules/Makefile
config.status: creating pdns/Makefile
config.status: creating codedocs/Makefile
config.status: creating pdns/backends/Makefile
config.status: creating pdns/backends/bind/Makefile
config.status: creating pdns/pdns
config.status: creating pdns/precursor
config.status: creating modules/mysqlbackend/Makefile
config.status: creating modules/pdnsbackend/Makefile
config.status: creating modules/gmysqlbackend/Makefile
config.status: creating modules/db2backend/Makefile
config.status: creating modules/geobackend/Makefile
config.status: creating modules/opendbxbackend/Makefile
config.status: creating modules/pipebackend/Makefile
config.status: creating modules/oraclebackend/Makefile
config.status: creating modules/xdbbackend/Makefile
config.status: creating modules/odbcbackend/Makefile
config.status: creating modules/gpgsqlbackend/Makefile
config.status: creating modules/ldapbackend/Makefile
config.status: creating modules/gsqlitebackend/Makefile
config.status: creating modules/gsqlite3backend/Makefile
config.status: creating modules/goraclebackend/Makefile
config.status: creating config.h
config.status: executing depfiles commands
macbook:~/project/src/powerdns/pdns-2.9.21 liza$ pwd
/Users/liza/project/src/powerdns/pdns-2.9.21
macbook:~/project/src/powerdns/pdns-2.9.21 liza$ make
make  all-recursive
Making all in modules
Making all in pipebackend
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I. -I. -I../..     -pthread
-I/Users/liza/project/src/powerdns/boost_1_33_1 -Wall -O2 -MT
pipebackend.lo -MD -MP -MF ".deps/pipebackend.Tpo" -c -o
pipebackend.lo pipebackend.cc; \
then mv -f ".deps/pipebackend.Tpo" ".deps/pipebackend.Plo"; else rm -f
".deps/pipebackend.Tpo"; exit 1; fi
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -pthread
-I/Users/liza/project/src/powerdns/boost_1_33_1 -Wall -O2 -MT
pipebackend.lo -MD -MP -MF .deps/pipebackend.Tpo -c pipebackend.cc
-fno-common -DPIC -o .libs/pipebackend.o
i686-apple-darwin8-g++-4.0.1: unrecognized option '-pthread'
In file included from pipebackend.cc:15:
../../pdns/dns.hh:179:1: warning: "LITTLE_ENDIAN" redefined
In file included from /usr/include/machine/endian.h:32,
                from /usr/include/sys/wait.h:182,
                from /usr/include/stdlib.h:64,
                from /usr/include/c++/4.0.0/cstdlib:57,
                from /usr/include/c++/4.0.0/bits/stl_algobase.h:67,
                from /usr/include/c++/4.0.0/bits/char_traits.h:46,
                from /usr/include/c++/4.0.0/string:46,
                from pipebackend.cc:6:
/usr/include/i386/endian.h:86:1: warning: this is the location of the
previous definition
In file included from pipebackend.cc:15:
../../pdns/dns.hh:180:1: warning: "BIG_ENDIAN" redefined
In file included from /usr/include/machine/endian.h:32,
                from /usr/include/sys/wait.h:182,
                from /usr/include/stdlib.h:64,
                from /usr/include/c++/4.0.0/cstdlib:57,
                from /usr/include/c++/4.0.0/bits/stl_algobase.h:67,
                from /usr/include/c++/4.0.0/bits/char_traits.h:46,
                from /usr/include/c++/4.0.0/string:46,
                from pipebackend.cc:6:
/usr/include/i386/endian.h:87:1: warning: this is the location of the
previous definition
In file included from pipebackend.cc:15:
../../pdns/dns.hh:181:1: warning: "PDP_ENDIAN" redefined
In file included from /usr/include/machine/endian.h:32,
                from /usr/include/sys/wait.h:182,
                from /usr/include/stdlib.h:64,
                from /usr/include/c++/4.0.0/cstdlib:57,
                from /usr/include/c++/4.0.0/bits/stl_algobase.h:67,
                from /usr/include/c++/4.0.0/bits/char_traits.h:46,
                from /usr/include/c++/4.0.0/string:46,
                from pipebackend.cc:6:
/usr/include/i386/endian.h:88:1: warning: this is the location of the
previous definition
In file included from pipebackend.cc:15:
../../pdns/dns.hh:188:1: warning: "BYTE_ORDER" redefined
In file included from /usr/include/machine/endian.h:32,
                from /usr/include/sys/wait.h:182,
                from /usr/include/stdlib.h:64,
                from /usr/include/c++/4.0.0/cstdlib:57,
                from /usr/include/c++/4.0.0/bits/stl_algobase.h:67,
                from /usr/include/c++/4.0.0/bits/char_traits.h:46,
                from /usr/include/c++/4.0.0/string:46,
                from pipebackend.cc:6:
/usr/include/i386/endian.h:90:1: warning: this is the location of the
previous definition

clipping because message was too long....


dns.hh:180:1: warning: "BIG_ENDIAN" redefined
In file included from /usr/include/machine/endian.h:32,
               from /usr/include/sys/wait.h:182,
               from /usr/include/stdlib.h:64,
               from /usr/include/c++/4.0.0/cstdlib:57,
               from /usr/include/c++/4.0.0/bits/stl_algobase.h:67,
               from /usr/include/c++/4.0.0/bits/stl_tree.h:66,
               from /usr/include/c++/4.0.0/map:65,
               from dnsparser.hh:22,
               from dnsparser.cc:19:
/usr/include/i386/endian.h:87:1: warning: this is the location of the
previous definition
In file included from misc.hh:53,
               from dnsparser.hh:29,
               from dnsparser.cc:19:
dns.hh:181:1: warning: "PDP_ENDIAN" redefined
In file included from /usr/include/machine/endian.h:32,
               from /usr/include/sys/wait.h:182,
               from /usr/include/stdlib.h:64,
               from /usr/include/c++/4.0.0/cstdlib:57,
               from /usr/include/c++/4.0.0/bits/stl_algobase.h:67,
               from /usr/include/c++/4.0.0/bits/stl_tree.h:66,
               from /usr/include/c++/4.0.0/map:65,
               from dnsparser.hh:22,
               from dnsparser.cc:19:
/usr/include/i386/endian.h:88:1: warning: this is the location of the
previous definition
In file included from misc.hh:53,
               from dnsparser.hh:29,
               from dnsparser.cc:19:
dns.hh:188:1: warning: "BYTE_ORDER" redefined
In file included from /usr/include/machine/endian.h:32,
               from /usr/include/sys/wait.h:182,
               from /usr/include/stdlib.h:64,
               from /usr/include/c++/4.0.0/cstdlib:57,
               from /usr/include/c++/4.0.0/bits/stl_algobase.h:67,
               from /usr/include/c++/4.0.0/bits/stl_tree.h:66,
               from /usr/include/c++/4.0.0/map:65,
               from dnsparser.hh:22,
               from dnsparser.cc:19:
/usr/include/i386/endian.h:90:1: warning: this is the location of the
previous definition
/bin/sh ../libtool --tag=CXX --mode=link g++
-DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\"
-DLOCALSTATEDIR=\"/var/run\" -Ibackends/bind  -pthread
-I/Users/liza/project/src/powerdns/boost_1_33_1 -Wall -O2  -pthread
-o pdns_server -rdynamic -ldl   dnspacket.o nameserver.o qtype.o
logger.o arguments.o packethandler.o tcpreceiver.o packetcache.o
statbag.o dnsbackend.o ws.o webserver.o session.o misc.o receiver.o
ueberbackend.o dynlistener.o dynhandler.o resolver.o communicator.o
dnsproxy.o randombackend.o unix_utility.o common_startup.o
unix_semaphore.o bindbackend2.o bindparser.o bindlexer.o gsqlbackend.o
base64.o sillyrecords.o zoneparser-tng.o dnsrecords.o dnswriter.o
rcpgenerator.o dnsparser.o  -lz
g++ -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\"
-DLOCALSTATEDIR=\"/var/run\" -Ibackends/bind -pthread
-I/Users/liza/project/src/powerdns/boost_1_33_1 -Wall -O2 -pthread -o
pdns_server -rdynamic dnspacket.o nameserver.o qtype.o logger.o
arguments.o packethandler.o tcpreceiver.o packetcache.o statbag.o
dnsbackend.o ws.o webserver.o session.o misc.o receiver.o
ueberbackend.o dynlistener.o dynhandler.o resolver.o communicator.o
dnsproxy.o randombackend.o unix_utility.o common_startup.o
unix_semaphore.o bindbackend2.o bindparser.o bindlexer.o gsqlbackend.o
base64.o sillyrecords.o zoneparser-tng.o dnsrecords.o dnswriter.o
rcpgenerator.o dnsparser.o -Wl,-bind_at_load  -ldl -lz
i686-apple-darwin8-g++-4.0.1: unrecognized option '-pthread'
i686-apple-darwin8-g++-4.0.1: unrecognized option '-pthread'
i686-apple-darwin8-g++-4.0.1: unrecognized option '-rdynamic'
make[2]: Nothing to be done for `all-am'.


More information about the Pdns-dev mailing list