#30980 [NEW]: fails to compile ext/snmp using net-snmp 5.2

From: Date: Sat, 04 Dec 2004 01:40:48 +0000
Subject: #30980 [NEW]: fails to compile ext/snmp using net-snmp 5.2
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69787@lists.php.net to get a copy of this message
From: nathan at nightsys dot net Operating system: gentoo PHP version: 5.0.2 PHP Bug Type: *Compile Issues Bug description: fails to compile ext/snmp using net-snmp 5.2 Description: ------------ php fails to compile, due to errors on ext/snmp. cant tell for sure what it is, but one thing that was done is previously sessions were disabled, now sessions are enabled on this compile. not sure if relevant, maybe new net-snmp version also. this looks similar to bug 25200, but not sure if its the same. Reproduce code: --------------- use net-snmp v5.2, with php 5.0.2 emerge net-snmp then emerge php OR emerge mod_php Expected result: ---------------- successful compile. Actual result: -------------- gcc -Iext/snmp/ -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/snmp/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/include -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/main -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2 -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/Zend -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/imap -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/mbstring/oniguruma -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/mbstring/libmbfl -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/postgresql/pgsql -I/usr/include/pspell -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/TSRM -O2 -march=pentium3 -fomit-frame-pointer -fforce-addr -g -Wall -c /var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/snmp/snmp.c -fPIC -DPIC -o ext/snmp/snmp.lo /bin/sh /var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/libtool --preserve-dup-deps --mode=compile gcc -Iext/sockets/ -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/sockets/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/include -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/main -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2 -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/Zend -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/imap -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/mbstring/oniguruma -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/mbstring/libmbfl -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/postgresql/pgsql -I/usr/include/pspell -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/TSRM -O2 -march=pentium3 -fomit-frame-pointer -fforce-addr -g -Wall -prefer-pic -c /var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/sockets/sockets.c -o ext/sockets/sockets.lo /var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/snmp/snmp.c: In function `netsnmp_session_set_sec_protocol': /var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/snmp/snmp.c:795: error: `usmAES192PrivProtocol' undeclared (first use in this function) /var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/snmp/snmp.c:795: error: (Each undeclared identifier is reported only once /var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/snmp/snmp.c:795: error: for each function it appears in.) /var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/snmp/snmp.c:799: error: `usmAES256PrivProtocol' undeclared (first use in this function) /var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/snmp/snmp.c: In function `netsnmp_session_gen_auth_key': /var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/snmp/snmp.c:822: warning: initialization discards qualifiers from pointer target type /var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/snmp/snmp.c: In function `netsnmp_session_gen_sec_key': /var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/snmp/snmp.c:851: warning: initialization discards qualifiers from pointer target type make: *** [ext/snmp/snmp.lo] Error 1 -- Edit bug report at http://bugs.php.net/?id=30980&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30980&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30980&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30980&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30980&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30980&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30980&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30980&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30980&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30980&r=support Expected behavior: http://bugs.php.net/fix.php?id=30980&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30980&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30980&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30980&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30980&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30980&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30980&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30980&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30980&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30980&r=mysqlcfg

« previous php.bugs (#69787) next »