Click to See Complete Forum and Search --> : snmp, php, RH9


mcguire_mr2
03-19-2004, 03:17 PM
Hi --

I'm trying to install php 4.3.4 with snmp support on a RH9 box. I have the following net-snmp RPM packages installed:
net-snmp-5.0.9-2.90.1
net-snmp-utils-5.0.9-2.90.1
net-snmp-devel-5.0.9-2.90.1

When configuring PHP, I keep getting the following failure when doing "./configure --with-snmp":

checking for SNMP support... yes
checking OpenSSL dir for SNMP... no
checking for default_store.h... no

checking for kstat_read in -lkstat... no
checking for snmp_parse_oid in -lsnmp... no
checking for init_snmp in -lsnmp... no
configure: error: SNMP sanity check failed. Please check config.log for more information.

I also tried "./configure --with-snmp=/usr/lib", but same result.

I have attached a copy of my config.log, named config.txt.

Can anyone help? Thanks.

mcguire_mr2
03-20-2004, 01:16 PM
After looking more closely at the config.log, I took a shot in the dark and explored the possiblity that the problem might be with elf. So, I did an rpm -qa |grep elf, and there were no elf packages. I next did an up2date --showall
grep elf, and saw three packages available, but not currently installed on my system. I then did did an up2date elfutils elfutils-devel elfutils-libelf which installed the following packages:

elfutils-libelf-0.76-3
elfutils-0.76-3
elfutils-devel-0.76-3

Re-ran my configure command, and this time everything completed (successfully?).

Hope this helps someone!