problems with ld

Jay Cox sqrtofone@yahoo.com
Wed, 1 May 2002 17:39:44 -0500 (CDT)


On Wed, 1 May 2002, Hal Daume III wrote:

> This isn't a ghc specific question as I've just found a similar problem
> with gcc, but I was hoping someone here could lend me a hand...I recently
> installed RedHat 7.2 on my x86 laptop and then immediately installed
> ghc 5.02.3 from rpm.  Compilation works fine as does interpretation but
> linking doesn't and it seems to be a problem with ld.  It complains
> "/usr/bin/ld: cannot find -lc".  A similar thing happens in C, except in
> that ld cannot find -lc.  I'm wondering if anyone has any idea what this
> means and how to fix it (I'm not a *nix hacker by any means).
>
> I've attached outputs from ghc and gcc when run with -v; the important
> error is at the very bottom.  The test programs where, for haskell, "main
> = print 5" and for c "int main() { printf("Hello world"); }".


did you install the developer's libraries for glibc2?  If you dont have
the proper blah.a files installed, I can see why ld would complain.

actually, it looks like the files you need are in glibc-static*.rpm
(I have Rh 7.1)

Jay Cox