This is a problem on Debian/Ubuntu, RHEL/CentOS and older Fedora distributions. Apparently, they have older IPv6 implementation in glibc that doesn't define this constant. There are two workarounds until it's fixed and tested in the source:
1. Run configure as follows:
CPPFLAGS=-DIPV6_RECVPKTINFO=49 ./configure <all the other options>
2. Modify network.c and include the following lines after all the includes at the beginning of the file:
In trunk, network.c has MACRO defined for IPV6_PKTINFO for older distributions. But not for IPV6_RECVPKTINFO which is not defined in bits/in.h on Debian. On Debian compilation is still broken.
Is should be like this:
This is a problem on Debian/Ubuntu, RHEL/CentOS and older Fedora distributions. Apparently, they have older IPv6 implementation in glibc that doesn't define this constant. There are two workarounds until it's fixed and tested in the source:
1. Run configure as follows:
CPPFLAGS=-DIPV6_RECVPKTINFO=49 ./configure <all the other options>
2. Modify network.c and include the following lines after all the includes at the beginning of the file:
#if !defined(IPV6_RECVPKTINFO)
#define IPV6_RECVPKTINFO 49
#endif
In trunk, network.c has MACRO defined for IPV6_PKTINFO for older distributions. But not for IPV6_RECVPKTINFO which is not defined in bits/in.h on Debian. On Debian compilation is still broken.
Is should be like this:
#ifndef IPV6_RECVPKTINFO
#define IPV6_RECVPKTINFO 49
#endif