Problem running X11 on PPC Mac
Gregory Wright
gwright at comcast.net
Mon Nov 13 06:38:40 EST 2006
Brad,
Did you apply the recent X11 update from Apple after you compiled
ghc? If so, you might try uninstalling, cleaning and rebuilding the
macports ghc.
There is a path issue; you should not have to specify
DYLIB_LIBRARY_PATH.
At least in macports, this should be easy to fix.
Greg
On Nov 12, 2006, at 9:08 AM, Brad wrote:
> Hi,
>
> I have the same problem both with the binary distribution and ghc
> compiled from
> macports/ darwinports, but only with ghci. If I compile things, it
> appears that
> things are linked properly.
>
> Has anyone found a solution for this, or does anyone have an idea
> of what I
> could try? Should this be reported as a bug?
>
> Launching ghci from an xterm window, I get
> $ ghci -package X11-1.1
> ___ ___ _
> / _ \ /\ /\/ __(_)
> / /_\// /_/ / / | | GHC Interactive, version 6.6, for
> Haskell 98.
> / /_\\/ __ / /___| | http://www.haskell.org/ghc/
> \____/\/ /_/\____/|_| Type :? for help.
>
> Loading package base ... linking ... done.
> Loading package X11-1.1 ... ghc-6.6: can't load .so/.DLL for: X11
> (dlopen(libX11.dylib, 10): image not found)
>
> I ran a ktrace to see where it was looking for the library, and got
> ...
> 381 ghc-6.6 CALL stat(0x1b057d8,0x1b05770)
> 381 ghc-6.6 NAMI "/opt/local/lib/ghc-6.6/libX11_dyn.dylib"
> 381 ghc-6.6 RET stat -1 errno 2 No such file or directory
> 381 ghc-6.6 CALL stat(0x1b05888,0x1b05820)
> 381 ghc-6.6 NAMI "/opt/local/lib/ghc-6.6/libX11.dylib"
> 381 ghc-6.6 RET stat -1 errno 2 No such file or directory
> 381 ghc-6.6 CALL open(0x1b058b8,0,0)
> 381 ghc-6.6 NAMI "libX11.dylib"
> 381 ghc-6.6 RET open -1 errno 2 No such file or directory
> 381 ghc-6.6 CALL close(0xffffffff)
> 381 ghc-6.6 RET close -1 errno 9 Bad file descriptor
> 381 ghc-6.6 CALL open(0xbfffd150,0,0)
> 381 ghc-6.6 NAMI "/Users/username/lib/libX11.dylib"
> 381 ghc-6.6 RET open -1 errno 2 No such file or directory
> 381 ghc-6.6 CALL close(0xffffffff)
> 381 ghc-6.6 RET close -1 errno 9 Bad file descriptor
> 381 ghc-6.6 CALL open(0xbfffd150,0,0)
> 381 ghc-6.6 NAMI "/usr/local/lib/libX11.dylib"
> 381 ghc-6.6 RET open -1 errno 2 No such file or directory
> 381 ghc-6.6 CALL close(0xffffffff)
> 381 ghc-6.6 RET close -1 errno 9 Bad file descriptor
> 381 ghc-6.6 CALL open(0xbfffd160,0,0)
> 381 ghc-6.6 NAMI "/usr/lib/libX11.dylib"
> 381 ghc-6.6 RET open -1 errno 2 No such file or directory
> 381 ghc-6.6 CALL close(0xffffffff)
> 381 ghc-6.6 RET close -1 errno 9 Bad file descriptor
> ...
>
> So it is not looking in /usr/X11R6/lib. I tried the same thing with
> DYLD_LIBRARY_PATH=/usr/X11R6/lib and get
> $ DYLD_LIBRARY_PATH=/usr/X11R6/lib ghci -package X11-1.1
> ___ ___ _
> / _ \ /\ /\/ __(_)
> / /_\// /_/ / / | | GHC Interactive, version 6.6, for
> Haskell 98.
> / /_\\/ __ / /___| | http://www.haskell.org/ghc/
> \____/\/ /_/\____/|_| Type :? for help.
>
> Loading package base ... linking ... done.
> ghc-6.6:
> /opt/local/lib/ghc-6.6/HSX11_cbits.o: unknown symbol `_printf
> $LDBLStub'
> Loading package X11-1.1 ... linking ... ghc-6.6: unable to load
> package `X11-1.1'
>
> What's the problem?
>
> Thanks.
>
> Brad
>
>
>
>
>
>
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
More information about the Glasgow-haskell-users
mailing list