[GHC] #1018: ghci dynamic loading of X11 - unknown symbol
`_printf$LDBLStub'
GHC
trac at galois.com
Mon Nov 20 14:28:08 EST 2006
#1018: ghci dynamic loading of X11 - unknown symbol `_printf$LDBLStub'
----------------------------------+-----------------------------------------
Reporter: ykardia | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 6.6
Severity: normal | Resolution:
Keywords: X11, dynamic loading | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: MacOS X |
----------------------------------+-----------------------------------------
Comment (by ykardia):
I need to learn to use WikiFormatting and the Preview button...
The file:
{{{
-- test.hs --
module Main where
import Graphics.X11.Xlib
main = do print "Hello, world!"
-------------
}}}
Output from issue number 1:
{{{
----------------
$ ghci test.hs
[... ascii graphics ...]
Loading package base ... linking ... done.
Ok, modules loaded: Main.
Prelude Main> main
Loading package X11-1.1 ... can't load .so/.DLL for: X11
(dlopen(libX11.dylib, 10): image not found)
----------------
}}}
Output from issue number 2:
{{{
----------------
$ DYLD_LIBRARY_PATH=/usr/X11R6/lib ghci test.hs
[... ascii graphics ...]
Loading package base ... linking ... done.
Ok, modules loaded: Main.
Prelude Main> main
Loading package X11-1.1 ... linking ... <interactive>:
/opt/local/lib/ghc-6.6/HSX11_cbits.o: unknown symbol `_printf$LDBLStub'
ghc-6.6: unable to load package `X11-1.1'
----------------
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1018>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list