Bug 107043

Summary: missing link /usr/lib/libelf.so to /usr/lib/libelf.so.1
Product: [Fedora] Fedora Reporter: Paolo Patruno <p.patruno>
Component: elfutilsAssignee: Jeff Johnson <jbj>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: thewordsmith
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-10-14 19:45:06 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 Paolo Patruno 2003-10-14 15:38:42 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030708

Description of problem:
after installation and ldconfig there are
missing link   /usr/lib/libelf.so to  /usr/lib/libelf.so.1
that do not permit to link with the option -l elf (cannot find the library).

Version-Release number of selected component (if applicable):
elfutils-libelf-0.86-3

How reproducible:
Always

Steps to Reproduce:
1.gcc xxx.c -lelf
2.
3.
    

Actual Results:  ld cannot find the library

Expected Results:  library linked as shared object

Additional info:

after a manual
ln -s  /usr/lib/libelf.so.1  /usr/lib/libelf.so
all is ok

Comment 1 Bill Nottingham 2003-10-14 19:45:06 UTC
Install elfutils-devel.

Comment 2 thewordsmith 2011-04-07 01:28:02 UTC
If using Fedora XX you are missing "elfutils-libelf" and needed packages.

Solution that worked for me. Download

elfutils-libelf
elfutils
elfutils-libelf-devel
elfutils-libelf(x86-32) or the 64 bit version.

Download the those packages into an accessible dir.


Reboot with your rescue disk. CD to the downloaded dir. Run rpm -iv --force --nodeps --root=/mnt/sysimage "elfutils*rpm.

Notice I uses a wildcard "elfutils*rpm" to specify all rpm packages. --root=/mnt/sysimage is needed to install the packages onto the OS installed on your HD for RedHat Fedora systems. --nodeps means do not search for package dependencies.

That should work. Good luck.


(In reply to comment #0)
> From Bugzilla Helper:
> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030708
> 
> Description of problem:
> after installation and ldconfig there are
> missing link   /usr/lib/libelf.so to  /usr/lib/libelf.so.1
> that do not permit to link with the option -l elf (cannot find the library).
> 
> Version-Release number of selected component (if applicable):
> elfutils-libelf-0.86-3
> 
> How reproducible:
> Always
> 
> Steps to Reproduce:
> 1.gcc xxx.c -lelf
> 2.
> 3.
>     
> 
> Actual Results:  ld cannot find the library
> 
> Expected Results:  library linked as shared object
> 
> Additional info:
> 
> after a manual
> ln -s  /usr/lib/libelf.so.1  /usr/lib/libelf.so
> all is ok