Date: 12/05/00
- Next message: andi <email protected>: "[PHP-DEV] PHP 4.0 Bug #7598 Updated: modify "new" syntax"
- Previous message: Brendan W. McAdams: "Re: [PHP-DEV] Returning arrays from functions"
- Next in thread: j.f.howlett <email protected>: "[PHP-DEV] PHP 4.0 Bug #7713 Updated: snmp functions not returning any data"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 7713
User Update by: j.f.howlett <email protected>
Old-Status: Feedback
Status: Open
Bug Type: SNMP related
Description: snmp functions not returning any data
For some reason, php stopped compiling altogether --with-snmp. (perhaps due to attempting compile with most recent version of ucd-snmp?). So......
Followed previous instructions, plus I recompiled ucd-snmp with --enable-shared
After this, php compiled fine with: --with-apxs --with-pgsql --with-snmp.
The extension_dir was not looking in the right place for snmp.so, so I set extension_dir in php.ini to "/usr/share/snmp" (location of snmp.so).
However, on restarting Apache, error in /var/log/httpd/error.log:
PHP Warning: Unable to load dynamic library '/usr/share/snmp.so' - /usr/share/snmp/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0.
[Repeated again]
Thanks...
Previous Comments:
---------------------------------------------------------------------------
[2000-12-04 12:30:39] sniper <email protected>
Where is the snmp.so located in your system?
Is the path of it in /etc/ld.so.conf ??
If not, add it and run ldconfig.
--Jani
---------------------------------------------------------------------------
[2000-12-04 12:28:20] j.f.howlett <email protected>
when restarting apache:
PHP Warning: Unable to load dynamic library './snmp.so' - ./snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0.
hope that helps!
---------------------------------------------------------------------------
[2000-11-09 04:35:26] j.f.howlett <email protected>
Linux RH7.0
Apache
PHP 4.0.3pl1
ucd-snmp 4.1.2
ucd-snmp compiled both with and without config.h hack.
php compiled with --with-apxs --with-pgsql --with-snmp AND WITH AND WITHOUT --enable-ucd-snmp-hack
No compile or runtime errors.
None of the snmp related functions return any data:
eg.
$mibs=snmpwalk("xxx.xxx.xxx.xxx","community","");
echo count($mibs);
returns "0".
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7713
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: andi <email protected>: "[PHP-DEV] PHP 4.0 Bug #7598 Updated: modify "new" syntax"
- Previous message: Brendan W. McAdams: "Re: [PHP-DEV] Returning arrays from functions"
- Next in thread: j.f.howlett <email protected>: "[PHP-DEV] PHP 4.0 Bug #7713 Updated: snmp functions not returning any data"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

