Opened 8 years ago

Closed 7 years ago

Last modified 6 years ago

#1019 closed bug (invalid)

X11 package puts path to X libraries in ld-options rather than library-dirs, so ghci can't find it

Reported by: wolfgang Owned by:
Priority: low Milestone: Not GHC
Component: libraries (other) Version: 6.6
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

The configure script for the X11 package puts the detected library path in a -L option in the ld-options field of the package.conf file. Instead, it should go into the library-dirs field.

On systems where X11 is not on the default path (such as Mac OS X), this means that the X11 package works only when compiling code, not from ghci, which only looks at the library-dirs field.

Workaround: On Mac OS X, people have to set DYLD_LIBRARY_PATH=/usr/X11R6/lib before running GHCi.

Change History (6)

comment:1 Changed 8 years ago by igloo

  • Milestone set to Not GHC

comment:2 Changed 7 years ago by igloo

  • Resolution set to invalid
  • Status changed from new to closed

No longer an extralib, so closing the bug

comment:3 Changed 7 years ago by igloo

Oh, BTW: I've forwarded the bug to Don, the X11 maintainer.

comment:4 Changed 7 years ago by dons

Works for me, send a patch if this is still an issue.

comment:5 Changed 6 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:6 Changed 6 years ago by simonmar

  • Operating System changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.