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
diff -ur tmp/pdns-3.1-pre.20111215.2319/modules/gmysqlbackend/Makefile.in pdns-3.1-pre.20111215.2319/modules/gmysqlbackend/Makefile.in --- tmp/pdns-3.1-pre.20111215.2319/modules/gmysqlbackend/Makefile.in Thu Dec 15 20:14:13 2011 +++ pdns-3.1-pre.20111215.2319/modules/gmysqlbackend/Makefile.in Fri Dec 16 12:21:18 2011 @@ -253,7 +253,7 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -AM_CPPFLAGS = @THREADFLAGS@ +AM_CPPFLAGS = @THREADFLAGS@ $(BOOST_CPPFLAGS) lib_LTLIBRARIES = libgmysqlbackend.la EXTRA_DIST = OBJECTFILES OBJECTLIBS INCLUDES = -I@MYSQL_incdir@ diff -ur tmp/pdns-3.1-pre.20111215.2319/pdns/ext/polarssl/library/net.c pdns-3.1-pre.20111215.2319/pdns/ext/polarssl/library/net.c --- tmp/pdns-3.1-pre.20111215.2319/pdns/ext/polarssl/library/net.c Thu Dec 15 20:14:29 2011 +++ pdns-3.1-pre.20111215.2319/pdns/ext/polarssl/library/net.c Fri Dec 16 12:01:26 2011 @@ -55,7 +55,7 @@ #include <netdb.h> #include <errno.h> -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) || defined(__OpenBSD__) #include <sys/endian.h> #elif defined(__APPLE__) #include <machine/endian.h>
_______________________________________________ Pdns-users mailing list [email protected] http://mailman.powerdns.com/mailman/listinfo/pdns-users
