[Pdns-users] [recursor] configure could be more user-friendly

David Hawthorne dhawth at 3crowd.com
Wed May 26 16:48:30 UTC 2010


Just to weigh in on this, I'm compiling it on mac right now to see if I can find a missing header I already fixed in a local branch.  I had to twiddle CPPFLAGS and LDFLAGS on the configure line to get it to know where macports installed boost:

$ CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib ./configure

There are established macros for requiring boost, and for specifying the location and specific versions for autoconf:

http://www.nongnu.org/autoconf-archive/ax_boost_base.html

the m4 file goes into the m4 subdirectory and configure.ac gets:

AX_BOOST_BASE([1.34.1])


On May 26, 2010, at 9:16 AM, Derrik Pates wrote:

> On 05/26/2010 12:45 AM, Stephane Bortzmeyer wrote:
>> ./configure is not very helpful when it cannot find a library. For
>> instance, if Boost is not found (because it is in /usr/pkg):
>> 
>> % ./configure
>> Testing dependencies and compiler.
>> Using gmake to build
> [trimming compiler output]
>> Instead of something like, more common among free Unix programs:
>> 
>> Cannot find the Boost library <http://boost.org/>. If it is installed, use --with-boost
>> 
>> I cannot even use --help to find documentation, it yields the same
>> error message.
>> 
>> 
>> 
>> PowerDNS recursor, version 3.2
> 
> I actually had similar troubles trying to build the v3.2 recursor, but
> with Boost installed. However, I made the mistake of using the Boost
> packages included with CentOS; it seems that the 1.33.x version of Boost
> included in CentOS doesn't have some features that are needed for the
> new recursor code, but nowhere did I see this new dependency noted, nor
> did the configure script bitch me out about "your boost is too old,
> please upgrade". I had to grab sources from Fedora 10 (since Fedora 11
> and up's RPM format change, backbuilding SRPMs is much more difficult,
> grr) for Boost 1.39.0 and use that, but something should really be done
> to make people aware of this, and not have to go scour Google to figure
> out why the recursor won't build.
> 
> -- 
> Derrik Pates
> demon at devrandom.net
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users




More information about the Pdns-users mailing list