Menu

#17 Undefined IPV6_RECVPKTINFO

2.0beta1
open
Compilation (2)
5
2008-09-22
2008-09-22
No

Compilation stops with the error saying that the symbol IPV6_RECVPKTINFO is not defined.

Discussion

  • Stjepan Gros

    Stjepan Gros - 2008-09-22

    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

     
  • Dalibor Dukic

    Dalibor Dukic - 2009-01-11

    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

     

Log in to post a comment.

MongoDB Logo MongoDB