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