LFS 6.3 Chapter 6.9.1 readelf Problem

Ken Moffat ken at linuxfromscratch.org
Wed May 13 09:31:37 PDT 2009

On Tue, May 12, 2009 at 06:50:57PM +0200, Kabelmaulwurf wrote:
> Hash: SHA1
> Hi guys,
> I got a problem on the Installation of Glib
> Everything works fine until
> "Prepare Glibc for comilation"
> - -----------------------------------------------------------------------
> ../glibc-2.5.1/configure --prefix=/usr \
>     --disable-profile --enable-add-ons \
>     --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc
> - -----------------------------------------------------------------------
> But it prompts me
> - -----------------------------------------------------------------------
> checking for .preinit_array/.init_array/.fini_array support...
> ../glibc-2.5.1/configure: line 5510: /tools/bin/readelf: No such file or
> directory
> no
> configure: error: Need linker with .init_array/.fini_array support.

 We used to have a FAQ, and probably still do.  Any "no such file"
when the the file seems to exist and you are in chroot means that
file has been linked against a host library (probably also applies
to other files too).

 From outside chroot, try using ldd on the file to see what it is

 Usually, a lot of chapter 5 turns out to be linked against the
host.  Unfortunately, I'm too short of time to look further.  Maybe
the archives have something useful for you - possible keywords might
be readelf or 'no such file' or 'linked to host'.

 I'm also puzzled why anyone would build 6.3 now.  It's old.

das eine Mal als Tragödie, das andere Mal als Farce

More information about the lfs-support mailing list