Bug 85719

Summary: Linking with '-lelf' fails
Product: [Retired] Red Hat Linux Reporter: Dave Shield <d.t.shield>
Component: libelfAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-03-09 22:28:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dave Shield 2003-03-06 14:02:10 UTC
Description of problem:
Linking with '-lelf' fails due to the lack of a 'libelf.so' link

Version-Release number of selected component (if applicable):
libelf-0.8.2-2

How reproducible:
Very

Steps to Reproduce:
1. Retrieve and unpack net-snmp tarball
2. ./configure --with-mib-modules=host
3. make
   [There are almost certainly simpler ways to
    reproduce this behaviour!]

Actual results:
gcc   .... -o snmpd ...... -lelf .....
/usr/bin/ld: Cannot find -lelf

Expected results:
Should compile the agent correctly

Additional info:
Fixed by
     ln -s libelf.so.0.8.2 /usr/lib/libelf.so

Comment 1 Jakub Jelinek 2003-03-09 22:28:42 UTC
My guess is that you don't have libelf-devel installed.