Ticket #95 (new enhancement)

Opened 3 years ago

Last modified 16 months ago

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

Reported by: wouter@… Owned by: somebody
Priority: normal Milestone:
Component: component1 Version:
Severity: normal Keywords: freebsd gpgsql
Cc: maddog2k@…

Description

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

Attachments

pdns-2.9.21-svn.20060819.884-pgsqlbackend-build-freebsd.patch Download (0.6 KB) - added by wouter@… 3 years ago.
Build fix for pgsqlbackend @ FreeBSD
pdns-2.9.22-rc1-freebsd_gpgsql.patch Download (1.0 KB) - added by anon 16 months ago.
Updated patch for 2.9.22-rc1, with different approach so sed isn't required anylonger

Change History

Changed 3 years ago by wouter@…

Build fix for pgsqlbackend @ FreeBSD

Changed 3 years ago by anon

  • type changed from defect to enhancement

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

Changed 3 years ago by 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.

Changed 16 months ago by anon

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

Changed 16 months ago by anon

Updated patch for 2.9.22-rc1, with different approach so sed isn't required anylonger

Note: See TracTickets for help on using tickets.