static link error on redhat 7.2

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?

Received on Wednesday, 19 February 2003 22:33:28 UTC