ubuntu10.04在编译安装LAMP环境的时候,编译安装libxml包的时候,提示以下错误,在配置过程中是没问题的
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu10.04在编译安装LAMP环境的时候,编译安装libxml包的时候,提示以下错误,在配置过程中是没问题的相关的知识,希望对你有一定的参考价值。
make[2]: 正在进入目录 `/home/neolkb/Software/lamp/libxml2-2.6.30'
if /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT nanohttp.lo -MD -MP -MF ".deps/nanohttp.Tpo" -c -o nanohttp.lo nanohttp.c; \
then mv -f ".deps/nanohttp.Tpo" ".deps/nanohttp.Plo"; else rm -f ".deps/nanohttp.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT nanohttp.lo -MD -MP -MF .deps/nanohttp.Tpo -c nanohttp.c -fPIC -DPIC -o .libs/nanohttp.o
nanohttp.c: In function 'xmlNanoHTTPFetch__internal_alias':
nanohttp.c:1558: warning: ignoring return value of 'write', declared with attribute warn_unused_result
nanohttp.c: In function 'xmlNanoHTTPSave__internal_alias':
nanohttp.c:1597: warning: ignoring return value of 'write', declared with attribute warn_unused_result
In file included from /usr/include/fcntl.h:205,
from nanohttp.c:49:
In function 'open',
inlined from 'xmlNanoHTTPSave__internal_alias' at nanohttp.c:1588:
/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/neolkb/Software/lamp/libxml2-2.6.30'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/neolkb/Software/lamp/libxml2-2.6.30'
make: *** [all] 错误 2
以上是关于ubuntu10.04在编译安装LAMP环境的时候,编译安装libxml包的时候,提示以下错误,在配置过程中是没问题的的主要内容,如果未能解决你的问题,请参考以下文章