LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   Net-SNMP Fails to Build (RH ES 4.0) (https://www.linuxquestions.org/questions/linux-enterprise-47/net-snmp-fails-to-build-rh-es-4-0-a-594531/)

jhmathis 10-25-2007 10:51 AM

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]#

acid_kewpie 10-26-2007 04:00 AM

looks like elfutils-libelf and / or elfutils-libelf-devel aren't installed. do you really need to compile net-snmp though? plenty of rpm's around for it.


All times are GMT -5. The time now is 05:15 PM.