[Pkg-pdns-maintainers] Bug#752678: Bug#752678: pdns: FTBFS on hurd-i386
Peter van Dijk
peter.van.dijk at netherlabs.nl
Fri Jun 27 07:51:59 UTC 2014
Hello,
On 25 Jun 2014, at 23:06 , Christian Hofstaedtler <zeha at debian.org> wrote:
>> 2) pdns/nameserver.c: IPV6_RECVPKTINFO is not defined on GNU/Hurd, use
>> IPV6_RXINFO instead.
>>
>> Index: pdns-3.3.1/pdns/nameserver.cc
>> ===================================================================
>> --- pdns-3.3.1.orig/pdns/nameserver.cc
>> +++ pdns-3.3.1/pdns/nameserver.cc
>> @@ -213,7 +213,11 @@ void UDPNameserver::bindIPv6()
>> if(IsAnyAddress(locala)) {
>> int val=1;
>> setsockopt(s, IPPROTO_IP, GEN_IP_PKTINFO, &val, sizeof(val)); // linux supports this, so why not - might fail on other systems
>> +#ifndef IPV6_RECVPKTINFO // IPV6_RXINFO same as IPV6_PKTINFO on GNU/Hurd
>> + setsockopt(s, IPPROTO_IPV6, IPV6_RXINFO, &val, sizeof(val));
>> +#else
>> setsockopt(s, IPPROTO_IPV6, IPV6_RECVPKTINFO, &val, sizeof(val));
>> +#endif
>> setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, &val, sizeof(val)); // if this fails, we report an error in tcpreceiver too
>> }
>> g_localaddresses.push_back(locala);
>
>
> Could you turn that into an autoconf thing? I think having it as an autoconf-
> detected and aliased thing would be preferred upstream (CC'ed
> upstream for their opinion).
We would prefer that, but we would accept something like #ifndef IPV6_RECVPKTINFO #define IPV6_RECVPKTINFO IPV6_RXINFO #endif in a suitable header file.
Kind regards,
--
Peter van Dijk
Netherlabs Computer Consulting BV - http://www.netherlabs.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.alioth.debian.org/pipermail/pkg-pdns-maintainers/attachments/20140627/1ba9ecaf/attachment.sig>
More information about the Pkg-pdns-maintainers
mailing list