GnuTLS 2.6.6/2.7.8 assumes AF_INET6 is available

Tom G. Christensen tgc at jupiterrise.com
Mon May 4 21:45:30 CEST 2009


I just attempted a build of GnuTLS 2.6.6 on Solaris 2.6 but it fails
in src/serv.c because AF_INET6 is undefined.

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I../includes -I../includes -I../lgl -I../lgl -I../gl -I../gl -I./cfg -I/usr/tgcware/include -I/usr/tgcware/include -g -O2 -Wno-pointer-sign -MT serv.o -MD -MP -MF .deps/serv.Tpo -c -o serv.o serv.c
serv.c:783: warning: 'struct sockaddr_storage' declared inside parameter list
serv.c:783: warning: its scope is only this definition or declaration, which is probably not what you want
serv.c: In function 'get_port':
serv.c:785: error: dereferencing pointer to incomplete type
serv.c:787: error: 'AF_INET6' undeclared (first use in this function)
serv.c:787: error: (Each undeclared identifier is reported only once
serv.c:787: error: for each function it appears in.)
serv.c:788: error: dereferencing pointer to incomplete type
serv.c: In function 'main':
serv.c:813: error: storage size of 'client_address' isn't known
make[3]: *** [serv.o] Error 1

Grepping for AF_INET6 reveals the same issue in src/certtool-cfg.c

I looked at 2.7.8 and there seems to have been no change in the
situation there.

The buildlog from 2.6.6 is available here:
http://jupiterrise.com/tmp

-tgc





More information about the Gnutls-devel mailing list