On Tue, 24 Jul 2001 07:32:37 -0500, [EMAIL PROTECTED] (Robert Covell)
>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'
i've had that happen. i found that php as configured by ./configure
thought the crypto functions were in one library but actually they
were in another library. the exact solution depends on your
OS and probably on the OS version. It might also depend on
encryption/password hashing options you chose when installing
the OS.
in my case (FreeBSD 4.2-Release using md5 password hashing),
i found that php was using libcrypt.so. i also found that
libcrypto.so had the functions listed above and libcrypt.so didn't.
i didn't really want to mess with the configure script since
i don't understand the syntax, after running the basic configure,
i went and edited config_vars.mk. in EXTRA_LIBS i just added
-lcrypto and when i next compiled it all worked..
the right library to use in your case may vary.
actually, i still have problems. when PHP runs it whines that it
can't find the MIB modules, e.g.,
...
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
that does no harm for me though (since i don't use those modules)
so i haven't gotten around to fixing that.
tiger.
--
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]