Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005089OCamlOCaml generalpublic2010-06-28 14:492012-03-24 15:01
Reporterbacam 
Assigned Toxleroy 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.12.0+beta1 or 3.12.0+rc1 
Target VersionFixed in Version3.12.0+beta1 or 3.12.0+rc1 
Summary0005089: libbfd linking problems on Scientific Linux 5 systems
DescriptionOn 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.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0005575)
sergstesh (reporter)
2010-07-04 19:24

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'.
(0005576)
sergstesh (reporter)
2010-07-04 19:26

FWIW, the version of 'binutils' is 2.19.1 - maybe in the past 'libz' wasn't needed.
(0005579)
xleroy (administrator)
2010-07-06 13:24

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

- Issue History
Date Modified Username Field Change
2010-06-28 14:49 bacam New Issue
2010-07-04 19:24 sergstesh Note Added: 0005575
2010-07-04 19:26 sergstesh Note Added: 0005576
2010-07-06 13:24 xleroy Note Added: 0005579
2010-07-06 13:24 xleroy Assigned To => xleroy
2010-07-06 13:24 xleroy Status new => resolved
2010-07-06 13:24 xleroy Resolution open => fixed
2010-07-06 13:34 xleroy Fixed in Version => 3.12.0+beta1
2012-03-24 15:01 xleroy Status resolved => closed


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker