在FC4上装GT4.0

在FC4上装GT4,FC4自带的libxml2包与GT4有兼容性问题,会导致源代码make失败。提示一大堆的错误:
make[5]: Leaving directory `/home/globus/gt4.0.0-all-source-installer/source-trees/libxml2'
/bin/sh /usr/local/globus-4.0.0/sbin/libtool-gcc32dbg --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I. -I/home/globus/gt4.0.0-all-source-installer/source-trees/libxml2 -I. -I./include -I/home/globus/gt4.0.0-all-source-installer/source-trees/libxml2/include -I/usr/local/globus-4.0.0/include -I/usr/local/globus-4.0.0/include/gcc32dbg -g -Wall -Wall -c -o SAX.lo SAX.c
mkdir .libs
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I/home/globus/gt4.0.0-all-source-installer/source-trees/libxml2 -I. -I./include -I/home/globus/gt4.0.0-all-source-installer/source-trees/libxml2/include -I/usr/local/globus-4.0.0/include -I/usr/local/globus-4.0.0/include/gcc32dbg -g -Wall -Wall -c SAX.c -fPIC -DPIC -o .libs/SAX.o
elfgcchack.h:60: error: '__xmlGenericError' aliased to undefined symbol '__xmlGenericError__internal_alias'
elfgcchack.h:64: error: '__xmlGenericErrorContext' aliased to undefined symbol '__xmlGenericErrorContext__internal_alias'
elfgcchack.h:70: error: 'docbCreatePushParserCtxt' aliased to undefined symbol 'docbCreatePushParserCtxt__internal_alias'
elfgcchack.h:75: error: 'htmlAttrAllowed' aliased to undefined symbol 'htmlAttrAllowed__internal_alias'
……

这个问题已经放在GT 的Bugzilla里了: http://bugzilla.globus.org/globus/show_bug.cgi?id=3496
在gt4.0.0-all-source-installer/source-trees/libxml2/elfgcchack.h里开头处:
  * autogenerated with xsltproc doc/elfgcchack.xsl doc/libxml2-api.xml
  */
加上:
#ifdef IN_LIBXML
#ifdef __GNUC__
#ifdef PIC
#ifdef linux
#if (__GNUC__ == 3 && __GNUC_MINOR__ == 3)
并在文件最后加上:
#endif
#endif
#endif
#endif
#endif

然后重新make,应该就成功了!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值