libxml2make时出错

编译打包和其他
回复
头像
ylsdtz
帖子: 13
注册时间: 2008-12-20 16:18

libxml2make时出错

#1

帖子 ylsdtz » 2009-10-10 9:48

安装东西每次到make老停止,说啥libxml2.0 no found
于是就下了个libxml2-2.6.23.tar.bz2,可是到了make时提示:
...............................
...............................
...............................
inlined from 'xmlNanoHTTPSave__internal_alias' at nanohttp.c:1586:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[2]: *** [nanohttp.lo] 错误 1
make[2]:正在离开目录 `/home/ylsdtz/software/libxml2-2.6.23'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/ylsdtz/software/libxml2-2.6.23'
make: *** [all] 错误 2
没有这东西貌似其他东西都不能装了,求解
头像
zhoucga
帖子: 246
注册时间: 2009-06-12 8:55

Re: libxml2make时出错

#2

帖子 zhoucga » 2009-12-15 22:01

configure过了吗?
青春不是人生的一段时期,而是心灵的一种状况...
delectate
帖子: 18311
注册时间: 2008-01-09 22:41

Re: libxml2make时出错

#3

帖子 delectate » 2009-12-15 22:01

代码: 全选

/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
心晴zcq
帖子: 5
注册时间: 2009-10-08 17:56

Re: libxml2make时出错

#4

帖子 心晴zcq » 2010-09-22 15:11

是阿,我也是出现这种问题。怎么办呢???
abinxue
帖子: 1
注册时间: 2011-05-06 13:40

Re: libxml2make时出错

#5

帖子 abinxue » 2011-07-11 8:25

是阿,我也是出现这种问题。怎么办呢???
tt90089
帖子: 1
注册时间: 2011-11-29 21:24

Re: libxml2make时出错

#6

帖子 tt90089 » 2011-11-29 21:31

修改nanohttp.c中的
fd = open(filename, O_CREAT | O_WRONLY);
改成
fd = open(filename, O_CREAT | O_WRONLY,0777);
回复