码迷,mamicode.com
首页 > Web开发 > 详细

php安装libiconv-1.14.tar.gz遇到的问题

时间:2015-09-22 10:12:59      阅读:252      评论:0      收藏:0      [点我收藏+]

标签:

php安装libiconv-1.14.tar.gz遇到的问题                                                   

遇到的Error code

In file included from progname.c:26:0: ./stdio.h:1010:1: error: gets undeclared here (not in a function) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ^ make[2]: *** [progname.o] Error 1 make[2]: Leaving directory `/usr/local/directadmin/custombuild/libiconv-1.14/srclibmake[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/local/directadmin/custombuild/libiconv-1.14/srclibmake: *** [all] Error 2 ******************************************* ******************************************* Cannot find /usr/local/bin/php Please recompile php with custombuild, eg: cd /usr/local/directadmin/custombuild ./build all d This appears to be a 64-bit system. a common cause of http/php compile failures is mentioned here: http://help.directadmin.com/item.php?id=213 ******************************************* *******************************************

 

解决方案:                                                                              

 

cd /tmp/libiconv-1.14/srclib

vi 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也要包括。



 

 

 

php安装libiconv-1.14.tar.gz遇到的问题

标签:

原文地址:http://www.cnblogs.com/tangshengwei/p/4828092.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!