
Hi Brad, On Nov 13, 2006, at 7:22 AM, Brad wrote:
On 13/11/06, Gregory Wright
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 '
I think I remember seeing something like this. I'll look into it some more.
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?
I already tweak the script that invokes ghc/ghci to find the libraries installed by macports. Tweaking it a bit more is not a big deal. But I would like to understand the unknown symbol problem first. Best, Greg
Any other ideas?
In any case, thanks for your help. _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users