John.Arrowwood at merant.com
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!
From: Gerard Beekmans [mailto:gerard at linuxfromscratch.org]
Sent: Wednesday, August 23, 2000 6:51 PM
To: lfs-discuss at linuxfromscratch.org
Subject: Re: Dependencies
> Well, it still can't find it as /lib/libc.so
> 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/libc.so succeeded
opened script file /usr/lib/libc.so
attempt to open /lib/libc.so.6 succeeded
attempt to open /usr/lib/libc_nonshared.a succeeded
ld: warning: cannot find entry symbol _start; not setting start address
-*- If Linux doesn't have the solution, you have the wrong problem -*-
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lfs-dev