Ticket #318 (new defect)

Opened 4 months ago

Last modified 4 months ago

Library cannnot be used when registered in-place on OS X

Reported by: guest Assigned to:
Priority: normal Milestone:
Component: Cabal library Version: 1.4.0.1
Severity: normal Keywords:
Cc: Difficulty: easy (<4 hours)
GHC Version: 6.8.3 Platform: Mac OS

Description (Last modified by guest)

I built and registered a library --inplace on Mac OS X 10.5.4 using cabal-install 0.5.1 and Cabal 1.4.0.1. I was unable to then use the package afterwards. Compiling my program failed at link-time with:

Linking Main ...
ld: in /... blah .../lib/dist/build/lib-0.1.a, archive has no table of contents
collect2: ld returned 1 exit status

After talking to Beelsebob and dcoutts on #haskell, I used ranlib on lib-0.1.a, and it worked.

According to dcoutts: "it's because we run ranlib when we install it, but not when we first generate it."

Change History

08/05/08 12:28:36 changed by guest

  • description changed.

08/12/08 11:24:27 changed by duncan

  • owner changed.
  • difficulty changed from normal to easy (<4 hours).
  • component changed from cabal-install tool to Cabal library.

Running ranlib every time is relatively expensive. We should either just do it, or require the use of install --inplace. Comments?