Apache & IPv6

NDSoftware extml@ndsoftware.net
Fri, 23 Mar 2001 00:04:39 +0100


Hi,
When i want compile apache 1.3.19 with IPv6 support i have:

===> src/main
gcc -c  -I../os/unix -I../include   -DLINUX=22 -DNEED_GETADDRINFO -DNEED_GET
NAMEINFO -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
`../apaci` util.c
getaddrinfo.c: In function `getaddrinfo':
In file included from util.c:2322:
getaddrinfo.c:123: request for member `ai_socktype' in something not a
structure or union
getaddrinfo.c:123: request for member `ai_socktype' in something not a
structure or union
getaddrinfo.c:124: request for member `ai_protocol' in something not a
structure or union
getaddrinfo.c:130: request for member `ai_socktype' in something not a
structure or union
getaddrinfo.c:130: request for member `ai_socktype' in something not a
structure or union
getaddrinfo.c:131: request for member `ai_protocol' in something not a
structure or union
getaddrinfo.c:137: request for member `ai_socktype' in something not a
structure or union
getaddrinfo.c:137: request for member `ai_socktype' in something not a
structure or union
getaddrinfo.c:138: request for member `ai_protocol' in something not a
structure or union
getaddrinfo.c:147: request for member `ai_socktype' in something not a
structure or union
getaddrinfo.c:147: request for member `ai_socktype' in something not a
structure or union
getaddrinfo.c:148: request for member `ai_protocol' in something not a
structure or union
make[3]: *** [util.o] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/temp6/apache-1.3.19+mod_ssl+IPv6/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/temp6/apache-1.3.19+mod_ssl+IPv6'
make: *** [build] Error 2

I the README:
This kit assumes that you have working(*) getaddrinfo() and getnameinfo()
library functions.  Even if you don't have one, don't panic.  We have
included last-resort version (which support IPv4 only) into the kit.
For more complete implementation you might want to check BIND 8.2.
(*) NOTE: we have noticed that some of IPv6 stack is shipped with broken
getaddrinfo().  In such cases, you should get and install BIND 8.2.

When compiling this kit onto IPv6, you may need to specify some additional
library paths or cpp defs (like -linet6 or -DINET6).
Now you don't have to specify --enable-rule=INET6.  The "configure" script
will give you some warnings if the IPv6 stack is not known to the
"configure" script.  Currently, the following IPv6 stacks are supported:
- KAME IPv6 stack, http://www.kame.net/
        use configure.v6 for convenience,
- Linux IPv6 stack, http://www.linux.org/
        use configure.v6 for convenience.
- Solaris 8 IPv6 stack, http://www.sun.com/
        use configure.v6 for convenience.
To disable IPv6 support, specify --disable-rule=INET6 to the "configure"
script.

Where i can found the lib getaddrinfo() and getnameinfo() for compile Apache
?

I use RedHat 6.2 with kernel 2.2.18 IPv6.

Thanks for all help.

Nicolas DEFFAYET, SurfNetConneXion
ipmaster@surfnetconnexion.com
SurfNetConneXion International ISP
IPv4 and IPv6
Peering: peering@surfnetconnexion.com