ghc-5.00.2 solaris-bin-dist link problem

I just installed the ghc-5.00.2 binary package for Solaris. When trying to link a program that uses -syslib data, I get this ghc: linking ... /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0/../../../libreadline.so: undefined reference to `tgetnum' /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0/../../../libreadline.so: undefined reference to `tgoto' and a few more. it looks more like a problem with our gcc installation, but still I'd like to know how to fix it effectively (I don't have any root privileges here). Best regards, -- -- Johannes Waldmann ---- http://www.informatik.uni-leipzig.de/~joe/ -- -- joe@informatik.uni-leipzig.de -- phone/fax (+49) 341 9732 204/252 --

On 2001-08-14T10:06:49+0200, Johannes Waldmann wrote:
I just installed the ghc-5.00.2 binary package for Solaris. When trying to link a program that uses -syslib data, I get this
ghc: linking ... /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0/../../../libreadline.so: undefined reference to `tgetnum' /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0/../../../libreadline.so: undefined reference to `tgoto'
and a few more. it looks more like a problem with our gcc installation, but still I'd like to know how to fix it effectively (I don't have any root privileges here).
If you don't have root, and your GHC installation is owned by root, I believe the easiest fix would be to append -ltermcap (or is it -lterminfo?) to the ghc command line for linking. -- Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig I saw my inner child once, on a milk carton.

/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0/../../../libreadline.so: undefined reference to `tgetnum'
believe the easiest fix would be to append -ltermcap (or is it -lterminfo?) to the ghc command line for linking.
thanks. it's -lncurses, actually. -- -- Johannes Waldmann ---- http://www.informatik.uni-leipzig.de/~joe/ -- -- joe@informatik.uni-leipzig.de -- phone/fax (+49) 341 9732 204/252 --
participants (2)
-
Johannes Waldmann
-
Ken Shan