ghc-5.00.2 solaris-bin-dist link problem

Ken Shan
Tue, 14 Aug 2001 05:22:24 -0400

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
> ghc: linking ...
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0/../../../ =
undefined reference to `tgetnum'
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0/../../../ =
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
I saw my inner child once, on a milk carton.

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

Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see