64位Linux安装subversion-1.7.6时,错误undefined reference to `XML_StopParser'

来源:互联网 发布:ipad版的淘宝微淘在哪 编辑:程序博客网 时间:2024/06/01 11:05

64位Linux安装subversion-1.7.6时,发生错误undefined reference to `XML_StopParser'

make的时候发生如下错误:

/usr/local/lib/libneon.a(ne_xml.o): In function `entity_declaration':
/home/xxxxx/neon-0.29.6/src/ne_xml.c:421: undefined reference to `XML_StopParser'

研究:

根据网上搜索的一些解决方案中提到了与libtool有关。我的机器是 CentOS6.4, 所带的libtool的版本是 libtool-2.2.6-15.5.el6.x86_64 。

svn需要的neon是neon-0.29.6 , 在安装 neon-0.29.6的时候,运行./configure 后,目录下会有一个libtool文件,其版本是 libtool (GNU libtool) 2.2.10 ,此版本有可能不是64位的。

解决:

在neon-0.29.6中,运行./configure 后, copy  /usr/bin/libtool 到 neon-0.29.6目录中,替换掉原来的。然后再make &make install





0 0