I have been trying to add snmp support into PHP 4.0.4pl1 and 4.0.6 without
success. The box currently has ucd-snmp-4.2.1 on it and is working fine
with our mod_perl installation. When we configure it with --with-snmp
and --enable-ucd-snmp-hack it configures fine and lists the it has found
SNMP. The compile goes smoothly but when I try to run it returns:
Fatal error: Call to undefined function: snmpget() in ./snmpmonitor.
php on line 2
It is like snmp is not even compiled in. Our configure options are:
./configure --with-gd=/usr/local/gd1.3 --with-mysql=/usr/local/mysql
--enable-debug=no --enable-track-vars=yes --with-msql=/usr/local/Hughes
--enable-ftp --enable-snmp --with-snmp=shared --enable-ucd-snmp-hack
We did notice that configure stated that in order to use the shared libs
elsewhere we should use libtool or 1 or 3 other options. Not sure how to do
this part.
When we do it without the "shared" option for --with-snmp or replace it with
/usr/local it returns:
+--------------------------------------------------------------------+
| *** ATTENTION *** |
| |
| Something is likely to be messed up here, because the configure |
| script was not able to detect a simple feature on your platform. |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages. |
| |
| If you are unable to fix this, send the file debug.log to the |
| [EMAIL PROTECTED] mailing list and include appropiate |
| information about your setup. |
+--------------------------------------------------------------------+
Debug.log has:
/usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestInit'
/usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestFinal'
/usr/local/lib/libsnmp.so: undefined reference to `EVP_md5'
/usr/local/lib/libsnmp.so: undefined reference to `HMAC'
/usr/local/lib/libsnmp.so: undefined reference to `EVP_sha1'
/usr/local/lib/libsnmp.so: undefined reference to `des_cbc_encrypt'
/usr/local/lib/libsnmp.so: undefined reference to `des_key_sched'
/usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestUpdate'
/usr/local/lib/libsnmp.so: undefined reference to `RAND_bytes'
/usr/local/lib/libsnmp.so: undefined reference to `des_ncbc_encrypt'
Any suggestions would be great...
-Bob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]