We use PowerDNS on FreeBSD, with gpgsql backend.
We always have to remove the following linker options from modules/gpgsqlbackend/OBJECTLIBS before it will compile correctly :
I've made a simple patch against configure.in for pdns-2.9.21-svn.20060819.884, that will 'fix' this automatically on FreeBSD. (bit of a hack though)
Would be better perhaps if this would be a configure-option, but I think this one should be acceptable too. Requires 'sed'.
Located @ http://dev.fiqz.com/svn/fiqz/patches/pdns-2.9.21-svn.20060819.884-pgsqlbackend-build-freebsd.patch
Attachment 'Build fix for pgsqlbackend @ FreeBSD' (pdns-2.9.21-svn.20060819.884-pgsqlbackend-build-freebsd.patch) https://gist.github.com/5466896
Attachment 'Updated patch for 2.9.22-rc1, with different approach so sed isn't required anylonger' (pdns-2.9.22-rc1-freebsd_gpgsql.patch) https://gist.github.com/5466897
D0h, should be gpgsqlbackend for the patch ... minor typo :)
FreeBSD Ports uses :
--- modules/gpgsqlbackend/OBJECTLIBS.orig Sat Apr 23 23:40:15 2005
+++ modules/gpgsqlbackend/OBJECTLIBS Mon Jul 18 14:21:17 2005
@@ -1,3 +1,3 @@
--lpq -lssl -lcrypto -lcrypt -lresolv -lnsl
+-lpq -lssl -lcrypto
Which happens in my patch in configure now. They even remove -lcrypt, but I have never had any problems leaving it there.
Updated for 2.9.22-rc1, with a different approach so sed isn't needed any longer.
I believe r2291 may have fixed this for you. Please reopen the ticket if I'm wrong :)