Opened 11 years ago

Closed 9 years ago

Last modified 9 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: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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 11 years ago by igloo

Milestone: Not GHC

comment:2 Changed 9 years ago by igloo

Resolution: invalid
Status: newclosed

No longer an extralib, so closing the bug

comment:3 Changed 9 years ago by igloo

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

comment:4 Changed 9 years ago by dons

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

comment:5 Changed 9 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:6 Changed 9 years ago by simonmar

Operating System: UnknownUnknown/Multiple
Note: See TracTickets for help on using tickets.