Hack for configure.in to fix building PowerDNS with gpgsql backend on FreeBSD #95

Closed
Habbie opened this Issue Apr 26, 2013 · 6 comments

Projects

None yet

1 participant

@Habbie
Member
Habbie commented Apr 26, 2013

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 :

-lresolv -lnsl

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

@Habbie Habbie was assigned Apr 26, 2013
@Habbie Habbie closed this Apr 26, 2013
@Habbie
Member
Habbie commented Apr 26, 2013

Attachment 'Build fix for pgsqlbackend @ FreeBSD' (pdns-2.9.21-svn.20060819.884-pgsqlbackend-build-freebsd.patch) https://gist.github.com/5466896

@Habbie
Member
Habbie commented Apr 26, 2013

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

@Habbie
Member
Habbie commented Apr 26, 2013

Author: anon
D0h, should be gpgsqlbackend for the patch ... minor typo :)

@Habbie
Member
Habbie commented Apr 26, 2013

Author: anon
FreeBSD Ports uses :

/usr/ports/dns/powerdns/files/patch-modules_gpgsqlbackend_OBJECTLIBS
--- 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.

@Habbie
Member
Habbie commented Apr 26, 2013

Author: anon
Updated for 2.9.22-rc1, with a different approach so sed isn't needed any longer.

@Habbie
Member
Habbie commented Apr 26, 2013

Author: peter
I believe r2291 may have fixed this for you. Please reopen the ticket if I'm wrong :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment