loading package util on Linux

Dean Herington heringto at cs.unc.edu
Tue Apr 22 09:29:07 EDT 2003


Simon Marlow wrote:

> > Using GHC 5.04.3 (via
> > http://www.haskell.org/ghc/dist/5.04.3/ghc-5.04.3-i386-unknown
> > -linux.tar.bz2)
> > on one Linux box has a problem loading package "data":
> >
> > ================
> > [heringto at sediment work]$ uname -a
> > Linux sediment 2.4.2-2smp #1 SMP Sun Apr 8 20:21:34 EDT 2001 i686
> > unknown
> > [heringto at sediment work]$ ghci -package data
> >    ___         ___ _
> >   / _ \ /\  /\/ __(_)
> >  / /_\// /_/ / /  | |      GHC Interactive, version 5.04.3,
> > for Haskell
> > 98.
> > / /_\\/ __  / /___| |      http://www.haskell.org/ghc/
> > \____/\/ /_/\____/|_|      Type :? for help.
> >
> > Loading package base ... linking ... done.
> > Loading package haskell98 ... linking ... done.
> > Loading package lang ... linking ... done.
> > Loading package concurrent ... linking ... done.
> > Loading package posix ... linking ... done.
> > Loading package util ... linking ...
> > /afs/isis.unc.edu/home/h/e/heringto/researc\
> > h/joint/ghc-5.04.3/lib/i386-unknown-linux/HSutil.o: unknown symbol
> > `rl_ding'
> > ghc-5.04.3: panic! (the `impossible' happened, GHC version 5.04.3):
> >         can't load package `util'
> >
> > Please report it as a compiler bug to
> > glasgow-haskell-bugs at haskell.org,
> > or http://sourceforge.net/projects/ghc/.
>
> Looks like a mismatch in readline library versions.  You installed GHC
> from the binary distribution, which doesn't check that you have the
> right readline library version installed.
>
> What libreadlines are floating around on your system?  Have you done any
> local hacks such as symbolinc-linking libreadline.so.3 to
> libreadline.so.4?

On the good system, ls -l /usr/lib/libreadline.so* shows (minus some leading
columns) :

      18 Feb  4 08:59 libreadline.so -> libreadline.so.4.2
      18 Feb  4 08:59 libreadline.so.4 -> libreadline.so.4.2
  184567 Mar 20  2002 libreadline.so.4.2

while the bad system shows:

      18 May 15  2001 libreadline.so -> libreadline.so.4.1
      18 May 15  2001 libreadline.so.4 -> libreadline.so.4.1
  177511 Apr  7  2001 libreadline.so.4.1

Dean




More information about the Glasgow-haskell-bugs mailing list