[Pdns-users] Compiling 3.0 on OpenBSD
Rickard Dahlstrand
rd at tilde.se
Mon Aug 20 19:02:55 UTC 2012
Hi Peter and others,
Installing a new server and with all the OpenBSD-patches I thought I give an unpatched version a try. After trying:
./configure CXXFLAGS=-pthread --with-modules='gmysql pipe'
cd modules ; make ; cd ..
cd pdns/ext/polarssl; make; cd ../../..
I get this:
misc.o(.text+0x1877): In function `makeHexDump(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
: warning: sprintf() is often misused, please use snprintf()
g++ -DHAVE_CONFIG_H -I. -I.. -Ibackends/bind -I/usr/local/include -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -DLOCALSTATEDIR=\"/var/run\" -Ibackends/bind -I/usr/local/include -Iext/polarssl-1.1.2/include -DPDNS_ENABLE_LUA -pthread -pthread -MT dnsreplay.o -MD -MP -MF .deps/dnsreplay.Tpo -c -o dnsreplay.o dnsreplay.cc
In file included from dnsreplay.cc:44:
dnspcap.hh:15:26: error: net/if_ether.h: No such file or directory
*** Error code 1
Stop in /root/pdns/pdns-3.1.20120804.2690/pdns (line 104 of /usr/share/mk/sys.mk).
*** Error code 1
Stop in /root/pdns/pdns-3.1.20120804.2690/pdns (line 1324 of Makefile).
*** Error code 1
Stop in /root/pdns/pdns-3.1.20120804.2690/pdns (line 802 of Makefile).
*** Error code 1
Stop in /root/pdns/pdns-3.1.20120804.2690 (line 420 of Makefile).
*** Error code 1
Stop in /root/pdns/pdns-3.1.20120804.2690 (line 293 of Makefile).
Any idea what to try out?
Rickard.
17 dec 2011 kl. 12:34 skrev Rickard Dahlstrand:
> Hi Peter,
>
> That worked wonderfully, thanks.
>
> Rickard.
>
> 16 dec 2011 kl. 12:46 skrev Peter van Dijk:
>
>> Hello Rickard,
>>
>> On Dec 15, 2011, at 22:32 , Rickard Dahlstrand wrote:
>>
>>> Thought I try something else than BIND and NSD, but running configure on my OpenBSD-box only gives me this error message. Any help here?
>>>
>>> configure: error: cannot not find the flags to link with Boost serialization
>>>
>>> Does anyone have an idea on how to continue or have a working openbsd-installation?
>>
>> Building on OpenBSD certainly is not straightforward with the current PowerDNS version.
>>
>> Assuming you are working from http://powerdnssec.org/downloads/pdns-3.1-pre.20111215.2319.tar.gz as Bert suggested, this appears to work for me:
>> 1. apply the attached patch
>> 2. ./configure CXXFLAGS=-pthread --with-modules='gmysql pipe'
>> 3. cd modules ; make ; cd ..
>> 4. cd pdns/ext/polarssl; make; cd ../../..
>> 5. cd pdns; make pdns_server
>>
>> This yields a pdns_server binary and two loadable backends (gmysql and pipe).
>>
>> I have not tried running it ;)
>>
>> Please let me know how building (and perhaps running) with these tweaks works out for you, so we can make these fixes more permanent in the PowerDNS tree.
>>
>> Also, please let us know when you run into further trouble, compiling other parts of PowerDNS perhaps. For modules other than gmysql that don't work, the Makefile.in bit from the attached patch is likely to help too.
>>
>> Kind regards,
>> Peter van Dijk
>>
>> <patch-openbsd-build.txt>_______________________________________________
>> Pdns-users mailing list
>> Pdns-users at mailman.powerdns.com
>> http://mailman.powerdns.com/mailman/listinfo/pdns-users
>
More information about the Pdns-users
mailing list