From:             subscription at nazarenko dot net
Operating system: Linux SuSE 8.2
PHP version:      5.0.4
PHP Bug Type:     Compile Failure
Bug description:  Cannot compile with SNMP support

Description:
------------
Trying to  ./configure --with-snmp --enable-cli --disable-cgi
-prefix=/usr

I have installed net-snmp 5.1.3 + devel rpm's.

Am I missing any libraries?



Actual result:
--------------
config.log has:

configure:76426: checking for SNMP support
configure:76472: checking OpenSSL dir for SNMP
configure:76500: checking for net-snmp-config
configure:77666: checking for snmp_parse_oid in -lnetsnmp
configure:77685: gcc -o conftest -g -O2   conftest.c -lnetsnmp  -lresolv
-lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lnetsnmp
-lcrypto -lm 1>&5
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to `EVP_DigestFinal_ex'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to `AES_set_encrypt_key'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to `EVP_MD_CTX_cleanup'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to `EVP_MD_CTX_init'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to `DES_cbc_encrypt'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to `DES_ncbc_encrypt'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to `DES_key_sched'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to `AES_cfb128_encrypt'
collect2: ld returned 1 exit status
configure: failed program was:
#line 77674 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char snmp_parse_oid();

int main() {
snmp_parse_oid()
; return 0; }
configure:77802: checking for init_snmp in -lnetsnmp
configure:77821: gcc -o conftest -g -O2   conftest.c -lnetsnmp  -lresolv
-lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lnetsnmp
-lcrypto -lm 1>&5
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to `EVP_DigestFinal_ex'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to `AES_set_encrypt_key'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to `EVP_MD_CTX_cleanup'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to `EVP_MD_CTX_init'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to `DES_cbc_encrypt'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to `DES_ncbc_encrypt'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to `DES_key_sched'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to [EMAIL PROTECTED]'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined
reference to `AES_cfb128_encrypt'
collect2: ld returned 1 exit status
configure: failed program was:
#line 77810 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char init_snmp();

int main() {
init_snmp()
; return 0; }


-- 
Edit bug report at http://bugs.php.net/?id=33665&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33665&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33665&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33665&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33665&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33665&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33665&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33665&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33665&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33665&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33665&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33665&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33665&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33665&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33665&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33665&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33665&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33665&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33665&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33665&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33665&r=mysqlcfg

Reply via email to