readline problem on OS X

Hi, I think the problem with readline on Mac OS X might have been an re-occurring one. Browsing through the list archive for the past few months, however, I have not found much discussion about it. So I'd still raise the question again.. I am trying to have GHCi load a program which uses the util package. I noticed, on the GHC download page, that GNU readline has to be installed separately, so I compiled and installed it. However, GHCi says: Loading package util ... linking ... /usr/local/lib/ghc-6.0/HSutil.o: unknown symbol `___stginit_SystemziConsoleziReadline_' ghc-6.0: panic! (the `impossible' happened, GHC version 6.0): can't load package `util' Anyone knows what the problem might be? I also noticed some changes in the CVS log addressing the filename conflict of HSreadline. Could that be related? (Also, the compiled libreadline.dylib was installed in /usr/local/lib. For some reason, GHCi was not able to locate it, so I added a symbolic link under /usr/lib. I don't know whether I pointed GHCi to the wrong library.) Thank you very much. sincerely, Shin-Cheng Mu

Shin-Cheng Mu wrote:
[...] However, GHCi says:
Loading package util ... linking ... /usr/local/lib/ghc-6.0/HSutil.o: unknown symbol `___stginit_SystemziConsoleziReadline_' ghc-6.0: panic! (the `impossible' happened, GHC version 6.0): can't load package `util'
Anyone knows what the problem might be? [...]
Perhaps the package dependencies are not correct for the Mac build. (Wolfgang?). Try adding "-package readline" to GHCi's commandline. Cheers, S.

Thanks for the reply. :) "Sven Panne" wrote:
Perhaps the package dependencies are not correct for the Mac build. (Wolfgang?). Try adding "-package readline" to GHCi's commandline.
Hmm.. the problem still remains. But now that you mentioned it, I noticed that the (Haskell) readline package was loaded already: Loading package base ... linking ... done. Loading package lang ... linking ... done. Loading package haskell98 ... linking ... done. Loading package concurrent ... linking ... done. Loading package readline ... linking ... done. Loading package unix ... linking ... done. Loading package posix ... linking ... done. Loading package util ... linking ... /usr/local/lib/ghc-6.0/HSutil.o: unknown symbol `___stginit_SystemziConsoleziReadline_' ghc-6.0: panic! (the `impossible' happened, GHC version 6.0): can't load package `util' Please report it as a compiler bug to glasgow-haskell-bugs@haskell.org, or http://sourceforge.net/projects/ghc/. Hmm.. strange.. sincerely, Shin-Cheng Mu

I think the problem with readline on Mac OS X might have been an re-occurring one. Browsing through the list archive for the past few months, however, I have not found much discussion about it. So I'd still raise the question again..
Sorry for not keeping everybody on the list up to date... I analyzed the when it was brought up last time, and it will be fixed in the next minor release. Cheers, Wolfgang
participants (3)
-
Shin-Cheng Mu
-
Sven Panne
-
Wolfgang Thaller