static link error on redhat 7.2

"Michael" <[email protected]>
Newsgroups gmane.comp.lib.libwww
Message-ID <003601c2d890$b489dfa0$1c01a8c0@michael>
I tried to static link the libwww-5.4.0 on redhat 7.2
But I get such errors:

/usr/lib/libwwwcore.a(HTWWWStr.o): In function `HTMessageIdStr':
/home/guest/w3c-libwww-5.4.0/Library/src/HTWWWStr.c:360: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/lib/libwwwcore.a(HTInet.o): In function `HTGetTmpFileName':
/home/guest/w3c-libwww-5.4.0/Library/src/HTInet.c:621: the use of `tempnam' is dangerous, better use `mkstemp'
/usr/lib/libxmlparse.a(xmlparse.o): In function `XML_ParserCreate':
/home/guest/w3c-libwww-5.4.0/modules/expat/xmlparse/xmlparse.c:448: undefined reference to `XmlPrologStateInit'
/home/guest/w3c-libwww-5.4.0/modules/expat/xmlparse/xmlparse.c:518: undefined reference to `XmlInitEncoding'
/home/guest/w3c-libwww-5.4.0/modules/expat/xmlparse/xmlparse.c:519: undefined reference to `XmlGetUtf8InternalEncoding'
/usr/lib/libxmlparse.a(xmlparse.o): In function `XML_ParserCreateNS':
/home/guest/w3c-libwww-5.4.0/modules/expat/xmlparse/xmlparse.c:541: undefined reference to `XmlInitEncodingNS'
/home/guest/w3c-libwww-5.4.0/modules/expat/xmlparse/xmlparse.c:543: undefined reference to `XmlGetUtf8InternalEncodingNS'
/usr/lib/libxmlparse.a(xmlparse.o): In function `doContent':
/home/guest/w3c-libwww-5.4.0/modules/expat/xmlparse/xmlparse.c:1457: undefined reference to `XmlUtf8Encode'
/usr/lib/libxmlparse.a(xmlparse.o): In function `initializeEncoding':
/home/guest/w3c-libwww-5.4.0/modules/expat/xmlparse/xmlparse.c:2039: undefined reference to `XmlInitEncodingNS'
/home/guest/w3c-libwww-5.4.0/modules/expat/xmlparse/xmlparse.c:2039: undefined reference to `XmlInitEncoding'
/usr/lib/libxmlparse.a(xmlparse.o): In function `processXmlDecl':
/home/guest/w3c-libwww-5.4.0/modules/expat/xmlparse/xmlparse.c:2052: undefined reference to `XmlParseXmlDeclNS'
/home/guest/w3c-libwww-5.4.0/modules/expat/xmlparse/xmlparse.c:2052: undefined reference to `XmlParseXmlDecl'
/usr/lib/libxmlparse.a(xmlparse.o): In function `handleUnknownEncoding':
/home/guest/w3c-libwww-5.4.0/modules/expat/xmlparse/xmlparse.c:2113: undefined reference to `XmlSizeOfUnknownEncoding'
/home/guest/w3c-libwww-5.4.0/modules/expat/xmlparse/xmlparse.c:2119: undefined reference to `XmlInitUnknownEncodingNS'
/home/guest/w3c-libwww-5.4.0/modules/expat/xmlparse/xmlparse.c:2119: undefined reference to `XmlInitUnknownEncoding'
/usr/lib/libxmlparse.a(xmlparse.o): In function `appendAttributeValue':
/home/guest/w3c-libwww-5.4.0/modules/expat/xmlparse/xmlparse.c:2793: undefined reference to `XmlUtf8Encode'
/usr/lib/libxmlparse.a(xmlparse.o): In function `storeEntityValue':
/home/guest/w3c-libwww-5.4.0/modules/expat/xmlparse/xmlparse.c:2957: undefined reference to `XmlUtf8Encode'
/usr/lib/libwwwapp.a(HTInit.o): In function `HTTransferEncoderInit':
/home/guest/w3c-libwww-5.4.0/Library/src/HTInit.c:171: undefined reference to `HTZLib_inflate'
/usr/lib/libwwwapp.a(HTInit.o): In function `HTContentEncoderInit':
/home/guest/w3c-libwww-5.4.0/Library/src/HTInit.c:183: undefined reference to `HTZLib_inflate'
collect2: ld returned 1 exit status

And I found that:
# nm libwwwapp.a |grep HTZLib_inflate
         U HTZLib_inflate
# nm libwwwzip.a |grep HTZLib_inflate
00000498 T HTZLib_inflate

And I found that in HTZip.h:34
#ifdef HT_ZLIB
extern HTCoder HTZLib_inflate;
#endif

It seems there is something is not defined in ./configure?
Can anyone give an advise?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.