php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #30759 snmp extension is not compatible with net-snmp 5.2
Submitted: 2004-11-11 11:55 UTC Modified: 2005-01-14 04:12 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: paul dot ispas at digicom dot ro Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.3.9 OS: Linux - Slackware 10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: paul dot ispas at digicom dot ro
New email:
PHP Version: OS:

 

 [2004-11-11 11:55 UTC] paul dot ispas at digicom dot ro
Description:
------------
Hi, 
I tried to install php-4.3.9 and php4-STABLE-200411110930 with snmp support but make fails with the folowing error message : 
root@mrtg2:~/src/php4-STABLE-200411110930# make
/bin/sh /root/src/php4-STABLE-200411110930/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/snmp/ -I/root/src/php4-STABLE-200411110930/ext/snmp/ -DPHP_ATOM_INC -I/root/src/php4-STABLE-200411110930/include -I/root/src/php4-STABLE-200411110930/main -I/root/src/php4-STABLE-200411110930 -I/root/src/php4-STABLE-200411110930/Zend -I/usr/include/libxml2 -I/include -I/var/tmp/imap/c-client -I/root/src/php4-STABLE-200411110930/ext/mbstring/mbregex -I/root/src/php4-STABLE-200411110930/ext/mbstring/libmbfl -I/root/src/php4-STABLE-200411110930/ext/mbstring/libmbfl/mbfl -I/opt/sql/mysql/include/mysql -I/usr/local/include -I/root/src/php4-STABLE-200411110930/ext/xml/expat  -I/root/src/php4-STABLE-200411110930/TSRM  -O3 -s -mcpu=i686 -march=i686  -prefer-pic -c /root/src/php4-STABLE-200411110930/ext/snmp/snmp.c -o ext/snmp/snmp.lo
/root/src/php4-STABLE-200411110930/ext/snmp/snmp.c: In function `netsnmp_session_set_sec_protocol':
/root/src/php4-STABLE-200411110930/ext/snmp/snmp.c:777: error: `usmAES192PrivProtocol' undeclared (first use in this function)
/root/src/php4-STABLE-200411110930/ext/snmp/snmp.c:777: error: (Each undeclared identifier is reported only once
/root/src/php4-STABLE-200411110930/ext/snmp/snmp.c:777: error: for each function it appears in.)
/root/src/php4-STABLE-200411110930/ext/snmp/snmp.c:781: error: `usmAES256PrivProtocol' undeclared (first use in this function)
/root/src/php4-STABLE-200411110930/ext/snmp/snmp.c: In function `netsnmp_session_gen_auth_key':
/root/src/php4-STABLE-200411110930/ext/snmp/snmp.c:804: warning: initialization discards qualifiers from pointer target type
/root/src/php4-STABLE-200411110930/ext/snmp/snmp.c: In function `netsnmp_session_gen_sec_key':
/root/src/php4-STABLE-200411110930/ext/snmp/snmp.c:833: warning: initialization discards qualifiers from pointer target type
make: *** [ext/snmp/snmp.lo] Error 1


I HAVE net-snmp-5.2RC3 installed (from sources)
I HAVE the libs installed in /usr/local/lib/snmp
I HAVE the includes in /usr/local/include/net-snmp/

configure command was "
./configure --with-snmp=/usr/local --with-openssl=/usr 

Reproduce code:
---------------
Try to configure php 4.3.9 with snmp support (net-snmp 5.2.RC3)



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-11 13:20 UTC] tony2001@php.net
Looks like net-snmp 5.2 is not backward compatible with 5.1, so you're advised to use previous version, until someone add workarounds for 5.2.
 [2004-11-11 13:26 UTC] paul dot ispas at digicom dot ro
Thanks for your answer, 

I installed net-snmp 5.1 and works like a charm.
 [2004-11-11 13:32 UTC] tony2001@php.net
Reclassified this as feature request.
 [2005-01-14 04:12 UTC] sniper@php.net
Works fine here. (using the actual release of net-snmp 5.2, not some RC..)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 20 14:00:02 2025 UTC