[xml] fail to compile libxml2
- From: wuhongx <wuhongx sina com>
- To: xml gnome org
- Subject: [xml] fail to compile libxml2
- Date: Fri, 29 Oct 2004 10:58:38 +0800
Hi,
I'm a beginner of libxml2. I just downloaded libxml2-2.6.13 from gnome websit, but when I compiled it, I
encountered some error. The followings are our steps to compile libxml2:
./configure --with-html=no --with-legacy=no
make
But make will fail, and print the following error messages:
./.libs/libxml2.so: undefined reference to `xmlParseNamespace__internal_alias'
./.libs/libxml2.so: undefined reference to `xmlParseQuotedString__internal_alias'
./.libs/libxml2.so: undefined reference to `xmlGetFeaturesList__internal_alias'
./.libs/libxml2.so: undefined reference to `xmlDecodeEntities__internal_alias'
./.libs/libxml2.so: undefined reference to `xmlScanName__internal_alias'
./.libs/libxml2.so: undefined reference to `htmlDefaultSAXHandlerInit__internal_alias'
./.libs/libxml2.so: undefined reference to `xmlNamespaceParseNSDef__internal_alias'
./.libs/libxml2.so: undefined reference to `xmlNamespaceParseQName__internal_alias'
./.libs/libxml2.so: undefined reference to `xmlGetFeature__internal_alias'
./.libs/libxml2.so: undefined reference to `xmlNewGlobalNs__internal_alias'
./.libs/libxml2.so: undefined reference to `xmlParserHandleReference__internal_alias'
./.libs/libxml2.so: undefined reference to `xmlSetFeature__internal_alias'
./.libs/libxml2.so: undefined reference to `xmlCleanupPredefinedEntities__internal_alias'
./.libs/libxml2.so: undefined reference to `xmlSetEntityReferenceFunc__internal_alias'
./.libs/libxml2.so: undefined reference to `xmlNamespaceParseNCName__internal_alias'
./.libs/libxml2.so: undefined reference to `xmlInitializePredefinedEntities__internal_alias'
./.libs/libxml2.so: undefined reference to `xmlHandleEntity__internal_alias'
./.libs/libxml2.so: undefined reference to `xmlEncodeEntities__internal_alias'
collect2: ld returned 1 exit status
make[2]: *** [xmllint] Error 1
make[2]: Leaving directory `/home/w20691/xmltest/libxml2-2.6.13'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/w20691/xmltest/libxml2-2.6.13'
make: *** [all] Error 2
I know some undefined functions are defined in legacy.c ,which has been disabled by --with-legacy=no flag.
But I think the libxml2 will not contains any functions defined in legacy.c when --with-legacy=no is set by
./configure.
How can I deal with this issue? Must the --with-legacy and --with-html be set to yes?
Thanks,
Hongxing Wu
______________________________________
×¢²áÐÂÀËÃâ·ÑÓÊÏ䣬¼¤»î1G¿Õ¼ä£¡£¨ http://mail.sina.com.cn/chooseMode.html £©
===================================================================
½Ãñɱ¶¾Èí¼þKV2005£¬ÍøÂçʱ´úµÄϵͳ¼¶É±¶¾Èí¼þ (http://ad4.sina.com.cn/wx/ads/jiangminzhuiyu1025.html)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]