免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2953 | 回复: 6
打印 上一主题 下一主题

[SCO UNIX] 【求助】:5.0.6下编译libxml2报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-06 14:43 |只看该作者 |倒序浏览
已装好gcc3.4.3, 并已编译好libiconv库,在编译libxml时报错,如下
In file included from trionan.c:46,
                 from xpath.c:84:
/var/opt/K/SCO/Unix/5.0.6Ga/usr/local/gcc-3.4.3/bin/../lib/gcc/i686-pc-sco3.2v5.
0.6/3.4.3/include/math.h:10:1: unterminated #ifndef
xpath.c: In function `xmlXPathRegisterFuncNS':
xpath.c:2834: warning: ISO C forbids passing arg 4 of `xmlHashAddEntry2' between
function pointer and `void *'
xpath.c: In function `xmlXPathFunctionLookupNS':
xpath.c:2915: warning: ISO C forbids assignment between function pointer and `vo
id *'
xpath.c: In function `xmlXPathCompOpEval':
xpath.c:10434: warning: ISO C forbids assignment between function pointer and `v
oid *'
xpath.c:10459: warning: ISO C forbids assignment between function pointer and `v
oid *'
xpath.c: At top level:
trionan.c:225: warning: 'trio_is_negative' defined but not used
make[2]: *** [xpath.lo] Error 1
make[2]: Leaving directory `/usr/bmp3/setup/libxml2-2.6.19'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/bmp3/setup/libxml2-2.6.19'
make: *** [all] Error 2

请问是何原因,libxml2的版本2.6.19和2.6.23都是这个错

论坛徽章:
0
2 [报告]
发表于 2007-09-06 16:11 |只看该作者
开发编译的东东,sunlan兄弟来回答一下

论坛徽章:
0
3 [报告]
发表于 2007-09-06 16:38 |只看该作者
谢谢,sunlan老大在吗

论坛徽章:
0
4 [报告]
发表于 2007-09-07 09:19 |只看该作者
sco506下建议使用libxml2-2.6.23。这个版本的编译和使用我发过一个帖子,可以自己看一下

论坛徽章:
0
5 [报告]
发表于 2007-09-07 12:57 |只看该作者
我就是照着那个帖子做的,用的libxml2  2.6.23版本
http://bbs.chinaunix.net/archiver/?tid-692253.html
我又试了一下,用gcc2.9.5版本能编译过去,3.4.3的不行,2.9.5编译出的库有没有问题?

论坛徽章:
0
6 [报告]
发表于 2007-09-07 13:55 |只看该作者
libxml2库直接用sco自带的cc就能编译

论坛徽章:
0
7 [报告]
发表于 2007-09-07 15:29 |只看该作者
这样啊,我回头再试试,谢谢帮助!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP