From: chenberschen at yahoo dot com dot tw Operating system: RedHat9.0 PHP version: 5.2.1 PHP Bug Type: *Configuration Issues Bug description: SNMP sanity check failed
Description: ------------ When I try to compile php-5.2.1 with net-snmp-5.3.1, I get configure: error: SNMP sanity check failed. php-5.1.6 with net-snmp-5.3.1 also has the same problme. But, php-5.1.6 with net-snmp-5.0.7 has no problem. php-5.2.1 with net-snmp-5.0.7 also has no problem. Reproduce code: --------------- On RedHat9.0 #tar zxvf net-snmp-5.3.1.tar.gz #cd ./net-snmp-5.3.1 #./configure #make;make install #cd .. #tar zxvf php-5.2.1.tar.gz #cd ./php-5.2.1 #./configure --with-snmp=/usr/local Expected result: ---------------- Will get fine mesage: Thank for using php. Then you can #make ,php-5.2.1 with net-snmp-5.0.7 is fine. Actual result: -------------- you will got failed. checking for SNMP support... yes checking OpenSSL dir for SNMP... no checking for snmp_parse_oid in -lnetsnmp... no checking for init_snmp in -lnetsnmp... no configure: error: SNMP sanity check failed. Please check config.log for more information. configure: failed program was: #line 85541 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char snmp_parse_oid(); int main() { snmp_parse_oid() ; return 0; } configure:85685: checking for init_snmp in -lnetsnmp configure:85704: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib conftest.c -lnetsnmp -lrt -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lnetsnmp -lcrypto -lm 1>&5 /usr/local/lib/libnetsnmp.so: undefined reference to `des_cbc_encrypt' /usr/local/lib/libnetsnmp.so: undefined reference to `des_key_sched' /usr/local/lib/libnetsnmp.so: undefined reference to `des_ncbc_encrypt' collect2: ld returned 1 exit status configure: failed program was: #line 85693 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char init_snmp(); int main() { init_snmp() ; return 0; } -- Edit bug report at http://bugs.php.net/?id=40876&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40876&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40876&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40876&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40876&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40876&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40876&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40876&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40876&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40876&r=support Expected behavior: http://bugs.php.net/fix.php?id=40876&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40876&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40876&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40876&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40876&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40876&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40876&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40876&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40876&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40876&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40876&r=mysqlcfg