Problems with using SNMP

From: Date: Thu, 14 Dec 2000 20:46:15 +0000
Subject: Problems with using SNMP
Groups: php.install 
Request: Send a blank email to php-install+get-1220@lists.php.net to get a copy of this message
I'm having some issues trying to compile in SNMP support into PHP. I can compile any other module in no problem, but I can't get SNMP to work. I have installed the latest version of UCD-SNMP and even used the enabled ucd bug switch. This is the debug.log with I execute # './configure' '--with-apxs=/usr/local/sbin/apxs' '--enable-versioning' '--with-system-regex' '--with-config-file-path=/usr/local/etc' '--disable-debug' '--enable-track-vars' '--with-mcrypt=/usr/local' '--with-imap=/usr/local' '--with-mysql=/usr/local' '--with-ldap=/usr/local' '--with-xml=/usr/local' '--prefix=/usr/local' 'i386--freebsd4.2' '--with-snmp' '--enable-ucd-snmp-hack' I've tried this manually, I've tried it using apxs, I've tried it compiling directly into apache. I know that it's likely not finding an appropriate library, but I don't know which one. This is happening both on a FreeBSD box and a Solaris 2.6 box. Any ideas would be great. Thanks, Laurence # more debug.log CONFIGURE: './configure' '--with-apxs=/usr/local/sbin/apxs' '--enable-versioni ng' '--with-system-regex' '--with-config-file-path=/usr/local/etc' '--disable-de bug' '--enable-track-vars' '--with-mcrypt=/usr/local' '--with-imap=/usr/local' ' --with-mysql=/usr/local' '--with-ldap=/usr/local' '--with-xml=/usr/local' '--pre fix=/usr/local' 'i386--freebsd4.2' '--with-snmp' '--enable-ucd-snmp-hack' CC: gcc CFLAGS: -g -O2 CPPFLAGS: CXX: CXXFLAGS: INCLUDES: -I/usr/local/include/apache -I$(top_builddir)/Zend -I$(top_srcdir) -I/usr/local/include/c-client -I/usr/local/include -I/usr/local/include/mysql - I/usr/local/include/ucd-snmp LDFLAGS: -R/usr/local/lib -L/usr/local/lib -R/usr/local/lib/mysql -L/usr/loc al/lib/mysql LIBS: -lsnmp -lmysqlclient -lmcrypt -lmcrypt -lldap -llber -lm -lcrypt DLIBS: -lc-client4 SAPI: apache PHP_RPATHS: /usr/local/lib /usr/local/lib/mysql uname -a: FreeBSD win95tester.powersurfr.com 4.2-RELEASE FreeBSD 4.2-RELEASE # 0: Mon Nov 20 13:02:55 GMT 2000 jkh@bento.FreeBSD.org:/usr/src/sys/compile/G ENERIC i386 gcc -o conftest -g -O2 -R/usr/local/lib -L/usr/local/lib -R/usr/local/lib/mysq l -L/usr/local/lib/mysql conftest.c -lsnmp -lmysqlclient -lmcrypt -lmcrypt -llda p -llber -lm -lcrypt 1>&5 /usr/local/lib/libsnmp.so: warning: mktemp() possibly used unsafely; consider us ing mkstemp() /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' -- Laurence Brockman Unix Administrator Videon Cablesystems Alberta Inc 10450-178 St. Edmonton, AB T5S 1S2 l.brockman@videon.ca (780) 486-6527

« previous php.install (#1220) next »