getting an error compiling libxml2 (2.5.8) on mingw
under MSYS. (FYI)
It seems config.h and include/win32config.h
redefine some of the symbols in nanohttp.c
make[2]: Entering directory
`/home/mikhail/libxml2-2.5.8'
/bin/sh ./libtool --mode=compile gcc
-DHAVE_CONFIG_H -I. -I. -I. -I./include
-I./include -g -O2 -Wall -c nanohttp.c
rm -f .libs/nanohttp.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -g -O2 -Wall -c nanohttp.c -DDLL_EXPORT -DPIC -o .libs/nanohttp.lo In file included from
nanohttp.c:80:
config.h:11:1: warning: "SOCKLEN_T" redefined In file included from include/win32config.h:27, from libxml.h:22, from nanohttp.c:19: include/wsockcompat.h:16:1: warning: this is the location of the previous definition In file included from nanohttp.c:80: config.h:34:1: warning: "HAVE_CTYPE_H" redefined In file included from libxml.h:22, from nanohttp.c:19: include/win32config.h:4:1: warning: this is the location of the previous definition In file included from nanohttp.c:80: config.h:46:1: warning: "HAVE_FCNTL_H" redefined In file included from libxml.h:22, from nanohttp.c:19: include/win32config.h:19:1: warning: this is the location of the previous definition In file included from nanohttp.c:80: config.h:94:1: warning: "HAVE_MALLOC_H" redefined In file included from libxml.h:22, from nanohttp.c:19: include/win32config.h:6:1: warning: this is the location of the previous definition In file included from nanohttp.c:80: config.h:136:1: warning: "HAVE_STAT" redefined In file included from libxml.h:22, from nanohttp.c:19: include/win32config.h:16:1: warning: this is the location of the previous definition In file included from nanohttp.c:80: config.h:139:1: warning: "HAVE_STDARG_H" redefined In file included from libxml.h:22, from nanohttp.c:19: include/win32config.h:5:1: warning: this is the location of the previous definition In file included from nanohttp.c:80: config.h:145:1: warning: "HAVE_STDLIB_H" redefined In file included from libxml.h:22, from nanohttp.c:19: include/win32config.h:17:1: warning: this is the location of the previous definition In file included from nanohttp.c:80: config.h:183:1: warning: "HAVE_SYS_STAT_H" redefined In file included from libxml.h:22, from nanohttp.c:19: include/win32config.h:14:1: warning: this is the location of the previous definition In file included from nanohttp.c:80: config.h:195:1: warning: "HAVE_TIME_H" redefined In file included from libxml.h:22, from nanohttp.c:19: include/win32config.h:18:1: warning: this is the location of the previous definition In file included from nanohttp.c:80: config.h:213:1: warning: "HAVE__STAT" redefined In file included from libxml.h:22, from nanohttp.c:19: include/win32config.h:15:1: warning: this is the location of the previous definition nanohttp.c: In function `xmlNanoHTTPConnectAttempt': nanohttp.c:813: sizeof applied to an incomplete type nanohttp.c:845: warning: implicit declaration of function `fcntl' nanohttp.c:845: `F_GETFL' undeclared (first use in this function) nanohttp.c:845: (Each undeclared identifier is reported only once nanohttp.c:845: for each function it appears in.) nanohttp.c:853: `F_SETFL' undeclared (first use in this function) nanohttp.c:910: `len' undeclared (first use in this function) nanohttp.c: In function `xmlNanoHTTPConnectHost': nanohttp.c:961: storage size of `ia6' isn't known nanohttp.c:962: storage size of `sockin6' isn't known nanohttp.c:980: storage size of `hints' isn't known nanohttp.c:986: warning: implicit declaration of function `getaddrinfo' nanohttp.c:990: warning: implicit declaration of function `gai_strerror' nanohttp.c:995: dereferencing pointer to incomplete type nanohttp.c:997: dereferencing pointer to incomplete type nanohttp.c:998: dereferencing pointer to incomplete type nanohttp.c:998: dereferencing pointer to incomplete type nanohttp.c:1003: dereferencing pointer to incomplete type nanohttp.c:1004: dereferencing pointer to incomplete type nanohttp.c:1004: dereferencing pointer to incomplete type nanohttp.c:1011: warning: implicit declaration of function `freeaddrinfo' nanohttp.c:980: warning: unused variable `hints' nanohttp.c:961: warning: unused variable `ia6' nanohttp.c:962: warning: unused variable `sockin6' make[2]: *** [nanohttp.lo] Error 1 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 7/24/2003 |