ID: 22250
User updated by: phpbug at spambox dot dk
Reported By: phpbug at spambox dot dk
-Status: Feedback
+Status: Open
Bug Type: SNMP related
Operating System: FreeBSD 4.7-stable
PHP Version: 4CVS-2003-02-18 (stable)
Assigned To: sniper
New Comment:
OpenSSL 0.9.7 is in FreeBSD 4.7-stable
>From /usr/src/UPDATEING:
20030214: OpenSSL 0.97 has been imported, and the libcrypto/libssl
library versions have been bumped.
Previous Comments:
------------------------------------------------------------------------
[2003-02-18 04:55:58] [EMAIL PROTECTED]
Updated description.
The des* interfaces are from openssl. Is 4.7-stable using openssl 0.9.7
already, or did you compile that yourself?
If it is, I'll cvsup my box and try to replicate your problem - unable
to reproduce it, with system supplied openssl 0.9.6g and
ucd-snmp-4.2.5_2 port.
It looks like a problem outside of php though (snmp/openssl linking),
but I'd like to replicate this first to be sure.
------------------------------------------------------------------------
[2003-02-18 04:33:11] phpbug at spambox dot dk
The SNMP package is ucd-snmp-4.2.6.
I compiled this from source with the following:
./configure --prefix=/usr/local
--with-persistent-directory=/var/run/ucd-snmp
--with-sys-contact="[EMAIL PROTECTED]" --with-sys-location=Unknown
--with-logfile=/var/log/snmpd.log --with-openssl=/usr
I use this for my MRTG, without SSL though.
------------------------------------------------------------------------
[2003-02-18 04:26:23] [EMAIL PROTECTED]
Recategorizing.
Sniper's fix works: it points to the correct problem :)
>From the looks of this, you have a problem in your libsmnp library. Try
recompiling it and could you mention which snmp package this is? Is
this the ports version and if so, which exact version (ls -al
/var/db/pkg | grep snmp)?
------------------------------------------------------------------------
[2003-02-18 02:47:37] phpbug at spambox dot dk
Tried with php4-STABLE-200302180830.
Now I get a different error:
checking for SNMP support... yes
checking for default_store.h... yes
checking for OpenSSL support in SNMP libraries... yes
checking for kstat_read in -lkstat... no
checking for snmp_parse_oid... no
checking for init_snmp in -lsnmp... no
configure: error: SNMP sanity check failed. Please check config.log for
more information.
-- cut
%tail -n 25 config.log
; return 0; }
configure:67088: checking for init_snmp in -lsnmp
configure:67107: gcc -o conftest -g -O2 -DMOD_SSL=208112 -DEAPI
-DUSE_EXPAT -DSHARED_CORE
-R/usr/local/lib -L/usr/local/lib -R/usr/X11R6/lib -L/usr/X11R6/lib
-R/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql -R/lib -L/lib
conftest.c -lsnmp -lsnmp -lpdf -lz -ltiff -lpng -ljpeg -lmysqlclient
-lmcrypt -lltdl -lcrypt -lpam -lintl -lt1 -lfreetype -lX11 -lXpm -lpng
-lz -ljpeg -lz -lz -lssl -lcrypto -lm -lxml2 -lz -lm -lssl -lcrypto
1>&5
/tmp/ccKXqjQR.s: Assembler messages:
/tmp/ccKXqjQR.s:30: Warning: .stabs: description field '1061e' too big,
try a different debug format
/tmp/ccKXqjQR.s:39: Warning: .stabn: description field '1061f' too big,
try a different debug format
/tmp/ccKXqjQR.s:42: Warning: .stabn: description field '10620' too big,
try a different debug format
/tmp/ccKXqjQR.s:49: Warning: .stabs: description field '1061e' too big,
try a different debug format
/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 `des_ncbc_encrypt'
configure: failed program was:
#line 67096 "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; }
-- cut
Im running OpenSSL 0.9.7
Could you move this to a relevant category?
Best regards Henrik
------------------------------------------------------------------------
[2003-02-17 17:00:39] [EMAIL PROTECTED]
Please try the next stable snapshot from http://snaps.php.net/ in about
2 hours.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/22250
--
Edit this bug report at http://bugs.php.net/?id=22250&edit=1