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
Install elfutils-devel.
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