Ticket #318 (closed defect: fixed)
Library cannnot be used when registered in-place on OS X
| Reported by: | guest | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Cabal-1.8 |
| Component: | Cabal library | Version: | 1.4.0.1 |
| Severity: | normal | Keywords: | |
| Cc: | johan.tibell@… | Difficulty: | easy (<4 hours) |
| GHC Version: | 6.8.3 | Platform: | Mac OS |
Description (last modified by guest) (diff)
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."
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

