SNMP compile problems - easyapache breaks

ramprage

Well-Known Member
Jul 21, 2002
655
0
166
Canada
snmp error using easyapache or compiling apache manually.

I have even updated libmcrypt manually.
Also ran the following for manually install
up2date curl curl-devel net-snmp net-snmp-devel net-snmp-utils


Compiling manually:
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.


Config.log


int main() {
snmp_parse_oid()
; return 0; }
configure:76967: checking for init_snmp in -lnetsnmp
configure:76986: gcc -o conftest -g -O2 -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -W$
/usr/bin/ld: cannot find -lelf
collect2: ld returned 1 exit status
configure: failed program was:
#line 76975 "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; }



As soon as I take out the '--with-snmp' option or don't select snmp in easyapache Apache compiles fine.

Please advise.
 

StevenC

Well-Known Member
Jan 1, 2004
252
0
166
"/usr/bin/ld: cannot find -lelf"

I would look into that error. :)