#25200 [Opn->Bgs]: Can't compile php 4.3.2 with snmp
| From: | sniper@php.net | Date: | Tue, 26 Aug 2003 00:04:39 +0000 |
| Subject: | #25200 [Opn->Bgs]: Can't compile php 4.3.2 with snmp | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-46615@lists.php.net to get a copy of this message | ||
ID: 25200
Updated by: sniper@php.net
Reported By: vitortr at linkexpress dot com dot br
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: Solaris 8
-PHP Version: 4.3.3RC5-dev
+PHP Version: 4.3.3
New Comment:
Your snmp lib is compiled with SSL, and for some reason configure can't
detect it. Add --with-openssl to your configure line.
Previous Comments:
------------------------------------------------------------------------
[2003-08-25 07:56:02] vitortr at linkexpress dot com dot br
My path to libcrypto is correct. What else can be the problem?
------------------------------------------------------------------------
[2003-08-22 19:02:22] sniper@php.net
Seems like the path to libcrypto.* is not in your LD_LIBRARY_PATH.
Check that first.
------------------------------------------------------------------------
[2003-08-22 14:04:58] vitortr at linkexpress dot com dot br
I tried the CVS snapshot and got another error:
-lsocket -lgcc -lnetsnmp -lgen -lcrypto -lkstat -lelf -lm -lnsl
-lsocket -ladm -o sapi/cgi/php
Undefined first referenced
symbol in file
des_cbc_encrypt
/usr/local/lib/libnetsnmp.a(scapi.o)
des_key_sched
/usr/local/lib/libnetsnmp.a(scapi.o)
des_ncbc_encrypt
/usr/local/lib/libnetsnmp.a(scapi.o)
ld: fatal: Symbol referencing errors. No output written to
sapi/cgi/php
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1
------------------------------------------------------------------------
[2003-08-21 18:50:21] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-08-21 14:07:45] vitortr at linkexpress dot com dot br
Description:
------------
Hi everybody. I tried to compile php 4.3.2 with snmp (net-snmp-5.0.8)
and mysql on Solaris 8
My configure statement was:
./configure --enable-ucd-snmp-hack --with-snmp=/usr/local
--enable-safe-mode --enable-mysql
The error message was:
gcc -Iext/snmp/ -I/usr/local/php-4.3.2/ext/snmp/ -DPHP_ATOM_INC
-I/usr/local/php-4.3.2/include -I/usr/local
/php-4.3.2/main -I/usr/local/php-4.3.2 -I/usr/local/php-4.3.2/Zend
-I/usr/local/include -I/usr/local/php-4.3
.2/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS
-I/usr/local/php-4.3.2/TSRM -g -O2 -c /usr/local/php-4.3.2/ex
t/snmp/snmp.c -o ext/snmp/snmp.o && echo > ext/snmp/snmp.lo
/usr/local/php-4.3.2/ext/snmp/snmp.c:27:27: default_store.h: No such
file or directory
/usr/local/php-4.3.2/ext/snmp/snmp.c: In function
`netsnmp_session_gen_auth_key':
/usr/local/php-4.3.2/ext/snmp/snmp.c:676: warning: initialization
discards qualifiers from pointer target ty
pe
/usr/local/php-4.3.2/ext/snmp/snmp.c: In function
`netsnmp_session_gen_sec_key':
/usr/local/php-4.3.2/ext/snmp/snmp.c:705: warning: initialization
discards qualifiers from pointer target ty
pe
make: *** [ext/snmp/snmp.lo] Error 1
Can you help me?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25200&edit=1