Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libbfd linking problems on Scientific Linux 5 systems #5089

Closed
vicuna opened this Issue Jun 28, 2010 · 3 comments

Comments

Projects
None yet
2 participants
@vicuna
Copy link
Collaborator

vicuna commented Jun 28, 2010

Original bug ID: 5089
Reporter: bacam
Assigned to: @xavierleroy
Status: closed (set by @xavierleroy on 2012-03-24T14:01:45Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.12.0+beta1 or 3.12.0+rc1
Fixed in version: 3.12.0+beta1 or 3.12.0+rc1
Category: ~DO NOT USE (was: OCaml general)

Bug description

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.

@vicuna

This comment has been minimized.

Copy link
Collaborator Author

vicuna commented Jul 4, 2010

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

  • please pay attention to '-lz' that was added too - without it I had undefined inflateInit_ and other symbols which are defined in 'libz'.
@vicuna

This comment has been minimized.

Copy link
Collaborator Author

vicuna commented Jul 4, 2010

Comment author: sergstesh

FWIW, the version of 'binutils' is 2.19.1 - maybe in the past 'libz' wasn't needed.

@vicuna

This comment has been minimized.

Copy link
Collaborator Author

vicuna commented Jul 6, 2010

Comment author: @xavierleroy

Fixed as suggested. Works OK under Mandriva. Will see if it causes problems with other systems.

@vicuna vicuna closed this Mar 24, 2012

@vicuna vicuna added the bug label Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.