[xml] 2.5.8 wont compile http and ftp on system w/o ipv6



Hi,

the newest release 2.5.8 will not compile nanohttp and nanoftp on solaris
2.6 (without ipv6):

gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -O2 -Wall -c nanoftp.c  -fPIC -DPIC 
-o .libs/nanoftp.lo
nanoftp.c:98: field `ftpAddr' has incomplete type
nanoftp.c: In function `have_ipv6':
nanoftp.c:125: `AF_INET6' undeclared (first use in this function)
nanoftp.c:125: (Each undeclared identifier is reported only once
nanoftp.c:125: for each function it appears in.)
nanoftp.c: In function `xmlNanoFTPConnect':
nanoftp.c:1023: storage size of `hints' isn't known
nanoftp.c:1030: warning: implicit declaration of function `getaddrinfo'
nanoftp.c:1037: dereferencing pointer to incomplete type
nanoftp.c:1038: dereferencing pointer to incomplete type
nanoftp.c:1038: dereferencing pointer to incomplete type
nanoftp.c:1038: `AF_INET6' undeclared (first use in this function)
nanoftp.c:1042: dereferencing pointer to incomplete type
nanoftp.c:1043: dereferencing pointer to incomplete type
nanoftp.c:1043: dereferencing pointer to incomplete type
nanoftp.c:1048: dereferencing pointer to incomplete type
nanoftp.c:1048: dereferencing pointer to incomplete type
nanoftp.c:1052: dereferencing pointer to incomplete type
nanoftp.c:1053: warning: implicit declaration of function `freeaddrinfo'
nanoftp.c:1023: warning: unused variable `hints'
nanoftp.c:1001: warning: `addrlen' might be used uninitialized in this function
nanoftp.c: In function `xmlNanoFTPGetConnection':
nanoftp.c:1475: storage size of `dataAddr' isn't known
nanoftp.c:1483: `AF_INET6' undeclared (first use in this function)
nanoftp.c:1486: sizeof applied to an incomplete type
nanoftp.c:1542: sizeof applied to an incomplete type
nanoftp.c:1601: `INET6_ADDRSTRLEN' undeclared (first use in this function)
nanoftp.c:1602: warning: implicit declaration of function `inet_ntop'
nanoftp.c:1601: warning: unused variable `buf6'
nanoftp.c:1475: warning: unused variable `dataAddr'
nanoftp.c:1472: warning: `adp' might be used uninitialized in this function
nanoftp.c:1472: warning: `portp' might be used uninitialized in this function
*** Error code 1
make: Fatal error: Command failed for target `nanoftp.lo'

I have to disable http and ftp first to be able to compile it at all.

regards,
Peter



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]