ghc-5.00.2 solaris-bin-dist link problem

Ken Shan ken@digitas.harvard.edu
Tue, 14 Aug 2001 05:22:24 -0400


--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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
>=20
> 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'
>=20
> 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.

--=20
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
I saw my inner child once, on a milk carton.

--ZPt4rx8FFjLCG7dd
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7eO3PzjAc4f+uuBURAmPUAJ43brmHQO+RKgUvmgO/zmqDq08R1ACfUpPG
WQAmYngGMC4YbsXIGd1mHUI=
=sbIE
-----END PGP SIGNATURE-----

--ZPt4rx8FFjLCG7dd--