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

Ruben Kerkhof ruben at rubenkerkhof.com
Sun Jan 27 14:30:27 CET 2008


Hi Liza,

On 1 nov 2007, at 01:03, Liza Witz wrote:

> 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'.

I'm running Leopard, and have been able to build powerdns successfully.
On Tiger, there's no flag needed to include pthreads.

> 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

I see those warnings on Leopard as well.

Can you try applying the attached patch?

Ruben Kerkhof
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdns-darwin.patch
Type: application/octet-stream
Size: 1733 bytes
Desc: not available
Url : http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20080127/c138badb/pdns-darwin.obj
-------------- next part --------------



More information about the Pdns-dev mailing list