[Pdns-dev] pdns IPv6 compilation failure on OSX (svn head)

Justin Clift justin at salasaga.org
Sun Oct 7 15:04:35 CEST 2012


On 07/10/2012, at 6:46 PM, bert hubert wrote:
> On Sun, Oct 07, 2012 at 12:59:34PM +1100, Justin Clift wrote:
>>  /usr/include/netinet6/in6.h:#define IPV6_PKTINFO        IPV6_2292PKTINFO
>>  /usr/include/netinet6/in6.h:#define IPV6_RECVPKTINFO	61 /* bool; recv if, dst addr 
>>  /usr/include/netinet6/in6.h:#define IPV6_PKTINFO        IPV6_3542PKTINFO
>> 
>> Tried adding "#include <netinet/in.h>" to pdns/nameserver.cc, but that
>> make no difference. :(
> 
> Can you add:
> 
> #define __APPLE_USE_RFC_3542
> #include <netinet6/in6.h>

Aha, that define by itself did the trick. :)

Didn't need netinet/in.h nor netinet6/in6.h added to the includes
(netinet6/in6.h actually prints a warning saying to use netinet/in.h)

Reworked that into a more proper looking fix, here:

  https://github.com/Habbie/powerdns/pull/54

Hope that's helpful.

Regards and best wishes,

Justin Clift


> ?
> 
> 	Bert



More information about the Pdns-dev mailing list