php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #17405 Support netsnmp (http://www.netsnmp.org/), Previously known as "ucd-snmp".
Submitted: 2002-05-24 05:01 UTC Modified: 2002-12-08 10:21 UTC
From: live at generation dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.2.1 OS: Linux
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: live at generation dot net
New email:
PHP Version: OS:

 

 [2002-05-24 05:01 UTC] live at generation dot net
With the net-snmp package replacing ucd-snmp (well, simply a new name), is there any possibility to add support for this package?  I've tried to make it work, but I basically run into issues when compiling as it seems it just can't find the include files which are located in /usr/local/include/net-snmp by default.

Looking around, I see the configure script has some paths specified where to look for snmp include files, and the paths in there relate to ucd-snmp but there's no mention of net-snmp.  Any chance of getting this added?

This is loosely the same issue as bug #13821, as far as the type goes.

Thanks!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-24 05:16 UTC] live at generation dot net
Hmm, looking at things a bit more in detail and basing myself on what I see in the configure script...

A detail to mention, the snmp.h file is located in /usr/local/include/net-snmp/library/ while the files that it fails to find at compilation time are located either in /usr/local/include/net-snmp/ (version.h) or /usr/local/include/net-snmp/library/ (asn.h, snmp_api.h, snmp_client.h, snmp_impl.h, snmp.h, parse.h, mib.h)...
 [2002-05-27 13:00 UTC] danny at estadao dot com dot br
I change directory from snmp.c, so it take files correctly and modify configure script to use -lnetsnmp and not -lsnmp
 [2002-05-27 13:03 UTC] danny at estadao dot com dot br
Ah, I changed VersionInfo to NetSnmpVersionInfo in ext/snmp/snmp.c too.
 [2002-05-27 17:15 UTC] mfischer@php.net
Changed summary/category.
 [2002-12-02 04:01 UTC] harrie@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

NET-SNMP is supported now.
It will be in the general release from 4.3.
 [2002-12-02 04:06 UTC] harrie@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

NET-SNMP is supported now.
It will be in the general release from 4.3.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC