PHP installation libiconv-1.14.tar.gz encountered problems

Source: Internet
Author: User

PHP installation libiconv-1.14.tar.gz encountered problems

error code encountered

In file included fromPROGNAME.C: -:0:./stdio.h:1010:1: Error:'gets'Undeclared here (notincha function) _gl_warn_on_use (gets,"gets is a security hole-use fgets instead"); ^make[2]: * * * [PROGNAME.O] Error1make[2]: Leaving directory '/usr/local/directadmin/custombuild/libiconv-1.14/srclib'make[1]: * * * [ALL] Error2make[1]: Leaving directory '/usr/local/directadmin/custombuild/libiconv-1.14/srclib'Make: * * * [ALL] Error2**************************************************************************************cannot find/usr/local/bin/phpplease recompile php with Custombuild, EG:CD/usr/local/directadmin/Custombuild./Build All Dthis appears to be a --bit SYSTEM.A Common cause of HTTP/php Compile Failures ismentioned here:http://help.directadmin.com/item.php?id=213**************************************************************************************

Solution:

Cd/tmp/libiconv-1.14/srclib

VI Stdio.in.h

find this line of content: " gets is a security hole-use fgets instead ");

Replace with:
#if defined (__glibc__) &&!defined (__uclibc__) &&!__glibc_prereq (2, +) _gl_warn_on_use (gets, "gets is A security Hole-use fgets instead "); #endif

Note: The end of the #endif should also be included.



PHP installation libiconv-1.14.tar.gz encountered problems

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.