Join GitHub today
libbfd linking problems on Scientific Linux 5 systems #5089
Original bug ID: 5089
On Scientific Linux 5.4/5.5 systems (and so probably RHEL 5 too) the linking of objinfo_helper fails due to undefined references in libbfd. Adding -liberty to the linking options makes it work, although I couldn't find any documentation saying what the right way to link older copies of libbfd is.
Comment author: sergstesh
I confirm the bug.
The culprit is this line in 'configure':
1577 echo "LIBBFD_LINK=-lbfd -ldl" >> Makefile
I've tried to build OCaml in the framework of my AppsFromScratch; I needed to change the line to become:
echo "LIBBFD_LINK=-lbfd -ldl -liberty -lz" >> Makefile