php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30980 fails to compile ext/snmp using net-snmp 5.2
Submitted: 2004-12-04 02:40 UTC Modified: 2004-12-04 13:34 UTC
From: nathan at nightsys dot net Assigned:
Status: Not a bug Package: *Compile Issues
PHP Version: 5.0.2 OS: gentoo
Private report: No CVE-ID: None
 [2004-12-04 02:40 UTC] nathan at nightsys dot net
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-04 13:34 UTC] derick@php.net
Install from our sources. We do not support Gentoo.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 12:01:31 2024 UTC