[Pdns-users] PowerDNS Recursor 4.0.0 Alpha 3 released
sthaug at nethelp.no
sthaug at nethelp.no
Tue Aug 23 11:49:14 UTC 2016
Did you get any time to look at this patch? As mentioned below, the
FreeBSD build which appears to do without the patch actually uses a
combination of LDFLAGS which results in linking with /usr/local/lib
(where the Boost libraries are).
Steinar Haug, AS2116
> > > I have finally been able to make a running Recursor 4.0.1. I started
> > > with a newly installed FreeBSD 10.3-STABLE, Boost 1.55.0 and no other
> > > packages installed. I was able to get the Recursor 4.0.1 to compile
> > > and link with the following patch to Makefile.am (or a corresponding
> > > patch to Makefile.in):
> > >
> > > --- Makefile.am.orig 2016-07-29 16:35:46.000000000 +0200
> > > +++ Makefile.am 2016-08-06 22:06:37.565123000 +0200
> > > @@ -151,7 +151,7 @@
> > > $(RT_LIBS)
> > >
> > > pdns_recursor_LDFLAGS = $(AM_LDFLAGS) \
> > > - $(LIBCRYPTO_LDFLAGS)
> > > + $(LIBCRYPTO_LDFLAGS) $(BOOST_CONTEXT_LDFLAGS)
> > >
> > > if BOTAN110
> > > pdns_recursor_SOURCES += \
> > >
> > > the reason being that the Boost 1.55.0 libraries are installed under
> > > /usr/local/lib *and* this is picked up by configure *but* is not
> > > used to update the final link command line.
> >
> > Thank you for your research. I have not tried reproducing it (I do
> > recall being able to build pdns 4 on freebsd 10 a few weeks ago without
> > this patch though), but I notice that
> > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211147 somehow manages
> > without. Do you have any idea why? I'm happy to upstream your patch,
> > of course (note that filing a Pull Request on github is the best way for
> > this) but I'd like to understand why we see this difference between
> > different people building it.
>
> If you look at the buildlog link from the bugs.freebsd.org web page
> above,
>
> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=172562
>
> you'll see (under --MAKE_ENV--) that it runs configure with a fairly
> long list of options, among others
>
> LDFLAGS=" -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib
> -fstack-protector"
>
> and this makes all the difference. If I run make either with my patch
> above, or with the LDFLAGS line above, I'm able to generate a working
> pdns_recursor executable. The difference is, of course, that we get
> the reference to /usr/local/lib where the Boost libraries are located.
>
> If configure without arguments is supposed to create a Makefile which
> in its turn will create a working pdns_recursor, my patch above is
> needed (for FreeBSD), as far as I can see.
>
> Steinar Haug, AS2116
More information about the Pdns-users
mailing list