John Arrowwood John.Arrowwood at
Thu Aug 24 08:54:39 PDT 2000

Actually, I figured it out last night.

Seems that my assumption was wrong:  You can't build a static binary by
linking in a shared object.  At least not with the version I'm using.  So, I
needed to install the static libc package on the host distribution.  Maybe
that isn't required on newer versions of gcc/ld, but for RedHat 4.2 that
seems to be the case.  So, fortunately, the problem is solved!

-----Original Message-----
From: Gerard Beekmans [mailto:gerard at]
Sent: Wednesday, August 23, 2000 6:51 PM
To: lfs-discuss at
Subject: Re: Dependencies

> Well, it still can't find it as /lib/
> The manpage for the version of ld installed says "-l(ar) looks for a file
> "lib(ar).a" which I assume is not the same thing as lib(ar).so

It's not the same, but it should look for it anyways.

Try this to see what's going on:
ld --verbose -lc

<cut a lot of stuff>
attempt to open /usr/lib/ succeeded
opened script file /usr/lib/
attempt to open /lib/ succeeded
attempt to open /usr/lib/libc_nonshared.a succeeded
ld: warning: cannot find entry symbol _start; not setting start address

Gerard Beekmans

-*- If Linux doesn't have the solution, you have the wrong problem -*-

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the lfs-dev mailing list