Re: [xml] error compiling libxml2-2.5.8 on mingw with MSYS



On Sat, Aug 09, 2003 at 02:22:48PM -0400, Mikhail Grushinskiy wrote:
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

  There is something wrong. But I can't help finding fixes, since you have
the special environment then please check what's happening. This is dependant
on your setup platform/compiler .

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)

  seems you're missing some headers there

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

  try to disable ipv6 support at configure time.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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