Problem running X11 on PPC Mac

Brad ykardia at gmail.com
Mon Nov 13 07:22:57 EST 2006


On 13/11/06, Gregory Wright <gwright at comcast.net> wrote:
>
> Brad,
>
> Did you apply the recent X11 update from Apple after you compiled
> ghc?
I did.

> If so, you might try uninstalling, cleaning and rebuilding the
> macports ghc.

I did try that, and got:

$ 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
'

This is after I uninstalled, removed the package, and recompiled ghc,
yesterday (that is to say, after I updated the Apple X11):

$ ls -lT /opt/local/bin/ghc
lrwxr-xr-x   1 root  admin  7 Nov 12 18:36:50 2006 /opt/local/bin/ghc -> ghc-6.6
$ ls -lT /opt/local/var/db/dports/packages/darwin/powerpc/ghc-6.6_1+darwin_8_powerpc.powerpc.tgz
-rw-r--r--   1 root  admin  59818580 Nov 12 18:36:14 2006
/opt/local/var/db/dports/packages/darwin/powerpc/ghc-6.6_1+darwin_8_powerpc.powerpc.tgz

Why does the Apple X11 always have to break things?

> There is a path issue; you should not have to specify
> DYLIB_LIBRARY_PATH.
> At least in macports, this should be easy to fix.
I guess so - I had a look at the portfile and it seems that the syntax
is straightforward enough, but I have no experience fiddling with
that. But that's a separate issue, right?

Any other ideas?

In any case, thanks for your help.


More information about the Glasgow-haskell-users mailing list