logo       

[PHP-INSTALL] RH8 + PHP5 + SNMP: msg#00090

php.install

Subject: [PHP-INSTALL] RH8 + PHP5 + SNMP

I'm having a trouble compiling PHP-5.0.2(and 4.9.3 too) with SNMP support.
I get the following error when running configure:

checking for SNMP support... yes
checking OpenSSL dir for SNMP... no
checking for net-snmp-config... /usr/bin/net-snmp-config
checking for snmp_parse_oid in -lnetsnmp... no
checking for init_snmp in -lnetsnmp...no
configure: error: SNMP sanity check failed.
Please check config.log for more information.

Here's the end of the config.log:

configure:74231: checking for init_snmp in -lnetsnmp configure:74250: gcc
-o conftest -g -O2 -Wl,-rpath,/usr/local/mysql/lib
-L/usr/local/mysql/lib -Wl,-rpath,/usr/local/pgsql/lib
-L/usr/local/pgsql/lib conftest.c -lnetsnmp -lpq -lmysqlclient -lcurl
-lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcurl -lssl -lcrypto -ldl -lz
-lxml2 -lz -lm -lxml2 -lz -lm -lnetsnmp -lcrypto -lelf -lm 1>&5
/usr/bin/ld: cannot find -lelf
collect2: ld returned 1 exit status
configure: failed program was:
#line 74239 "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; }

The platform is RH8, Apache 1.3.31, NET-SNMP 5.0.9 installed from RPM.

Configure script is:
#! /bin/sh
#
# Created by configure
'./configure' \
'--with-snmp' \
'--with-apxs=/usr/local/apache/bin/apxs' \ '--with-mysql=/usr/local/mysql'
\
'--with-pgsql' \
'--with-curl' \
'--enable-soap' \
"$@"

PHP will compile cleanly without the snmp. Any suggestions
would be appriciated!

TIA,

- Todd



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise