Hi! * Svante Signell <svante.sign...@gmail.com> [140625 16:48]: > pdns fails to build from source on GNU/Hurd due to two > reasons:
Thanks for your patch, but please see below: > 1) pdns/arguments.cc: PATH_MAX is not defined on GNU/Hurd. Replace that > construct with the usage of the *.length() method of > params["include-dir"] together with strlen() (and allocating space for / > and the string terminating \0). This has been fixed upstream, and will be in the next release. > 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). Also if you've got the time, please try building upstream git on GNU/Hurd to see if there are new issues. Thanks again, Christian -- ,''`. Christian Hofstaedtler <z...@debian.org> : :' : Debian Developer `. `' 7D1A CFFA D9E0 806C 9C4C D392 5C13 D6DB 9305 2E03 `-
pgp81gThCy4sr.pgp
Description: PGP signature