Net-SNMP Fails to Build (RH ES 4.0)
Hi,
I’ve been having some build failures when performing the ‘make’ process for net-snmp-5.3.1. See below fo additional info. I’d appreciate any additional suggestions and/or comments soonest. Thanks.
OS: RH ES 4.0
64-Bit kernel
gcc 3.4.3
./configure LDFLAGS=-L/usr/lib64
The first failure related to /usr/lib64/libbeecrypt.la file not existing. I verified this and the file did not exist, however there was a libbeecrypt.so file. I copied the libbeecrypt.la file from a CentOS /usr/lib64 directory and repeated the configure and make process ( all was clean before repeating the process)
During the build process ‘make’ the following error was observed:
gcc -g -O2 -Dlinux -I/usr/include/rpm -o .libs/snmpd snmpd.o -L/usr/lib64 ./.libs/libnetsnmpmibs.so ./.libs/ libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so ../snmplib/.libs/libnetsnmp.so /usr/lib64/librpm.so -L/ usr/src/build/493970-x86_64/install/usr/lib64 /usr/lib64/librpmdb.so -L/usr/local/lib -lelf -lselinux /usr/li b64/librpmio.so /usr/lib64/libbeecrypt.so -ldl -lrt -lpthread -lbz2 /usr/lib64/libpopt.so -lz -lcrypto -lm - Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/lib64
/usr/bin/ld: cannot find -lelf
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/opt/FOSS/Net-SNMP/net-snmp-5.3.1/agent'
make: *** [subdirs] Error 1
[root@localhost net-snmp-5.3.1]#
|