php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25200 Can't compile php 4.3.2 with snmp
Submitted: 2003-08-21 14:07 UTC Modified: 2003-08-25 19:04 UTC
From: vitortr at linkexpress dot com dot br Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.3 OS: Solaris 8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vitortr at linkexpress dot com dot br
New email:
PHP Version: OS:

 

 [2003-08-21 14:07 UTC] 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?



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-22 14:04 UTC] 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-22 19:02 UTC] sniper@php.net
Seems like the path to libcrypto.* is not in your LD_LIBRARY_PATH. Check that first.


 [2003-08-25 07:56 UTC] vitortr at linkexpress dot com dot br
My path to libcrypto is correct. What else can be the problem?
 [2003-08-25 19:04 UTC] sniper@php.net
Your snmp lib is compiled with SSL, and for some reason configure can't detect it. Add --with-openssl to your configure line.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Sep 20 08:00:02 2025 UTC