分页: 1 / 1

libxml2make时出错

发表于 : 2009-10-10 9:48
ylsdtz
安装东西每次到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
没有这东西貌似其他东西都不能装了,求解

Re: libxml2make时出错

发表于 : 2009-12-15 22:01
zhoucga
configure过了吗?

Re: libxml2make时出错

发表于 : 2009-12-15 22:01
delectate

代码: 全选

/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

Re: libxml2make时出错

发表于 : 2010-09-22 15:11
心晴zcq
是阿,我也是出现这种问题。怎么办呢???

Re: libxml2make时出错

发表于 : 2011-07-11 8:25
abinxue
是阿,我也是出现这种问题。怎么办呢???

Re: libxml2make时出错

发表于 : 2011-11-29 21:31
tt90089
修改nanohttp.c中的
fd = open(filename, O_CREAT | O_WRONLY);
改成
fd = open(filename, O_CREAT | O_WRONLY,0777);