RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
编译安装php之安装libiconv-1.14.tar.gz出错解决方法

一、实验报错如下:

为石家庄等地区用户提供了全套网页设计制作服务,及石家庄网站建设行业解决方案。主营业务为网站设计制作、做网站、石家庄网站设计,以传统方式定制建设网站,并提供域名空间备案等一条龙服务,秉承以专业、用心的态度为用户提供真诚的服务。我们深信只要达到每一位用户的要求,就会得到认可,从而选择与我们长期合作。这样,我们也可以走得更远!

make[2]: Entering directory `/home/chen/tools/libiconv-1.14/srclib'
make[3]: Entering directory `/home/chen/tools/libiconv-1.14'
make[3]: Nothing to be done for `am--refresh'.
make[3]: Leaving directory `/home/chen/tools/libiconv-1.14'
gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -I../lib  -I../intl -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1   -g -O2 -c progname.c
In file included from progname.c:26:0:
./stdio.h:1010:2: error: invalid preprocessing directive #_GL_WARN_ON_USE
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
make[2]: *** [progname.o] Error 1font
make[2]: Leaving directory `/home/chen/tools/libiconv-1.14/srclib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/chen/tools/libiconv-1.14/srclib'
make: *** [all] Error 2

二、解决方法

编辑/home/chen/tools/libiconv-1.14/srclib下的stdio.in.h,找到如下代码:

_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
改为如下代码:
#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");

#endif

#endif

注意:上面为两个#endif保存退出,重新编译。

编译安装php之安装libiconv-1.14.tar.gz出错解决方法

make && make install 


文章标题:编译安装php之安装libiconv-1.14.tar.gz出错解决方法
新闻来源:http://sczitong.cn/article/pjocge.html