LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 10-25-2007, 10:51 AM   #1
jhmathis
LQ Newbie
 
Registered: Oct 2007
Posts: 7

Rep: Reputation: 0
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]#
 
Old 10-26-2007, 04:00 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SLES9 net-snmp-5.1-80.16 fails to load marscoast Linux - Networking 1 02-04-2008 07:33 AM
Net-Snmp Mike_the_Man Linux - Server 0 09-11-2007 08:39 PM
How to configure ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 08:09 AM
NET-SNMP vs UCD-SNMP nitind Red Hat 1 05-20-2005 06:08 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration