Chris Staub wrote: > Jomon John wrote: > >> Am building LFS using the Sources from "*lfslivecd-x86-6.3-r2160.iso*" >> with *LFS-BOOK 6.3*.My host system is Loaded with *Ubuntu 9.04 >> * >> During the configuration of *Glibc-2.5.1* in the *chapter 5.6* i got >> following Warnings& finally a error.. >> >> >> *** WARNING: You should not compile GNU libc without versioning. Not using >> *** versioning will introduce incompatibilities so that old binaries >> *** will not run anymore. >> *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer). >> . >> . >> . >> checking for .preinit_array/.init_array/.fini_array support... no >> *configure: error: Need linker with .init_array/.fini_array support*. >> >> Please Help me.... >> > > This is usually due to an incorrect PATH. > >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> The Complete Output of configuration is given below... >> >> l...@alexa:/mnt/lfs/glibc-build$ sudo ../glibc-2.5.1/configure >> --prefix=/tools \ >> > --disable-profile --enable-add-ons \ >> > --enable-kernel=2.6.0 --with-binutils=/tools/bin \ >> > --without-gd --with-headers=/tools/include \ >> > --without-selinux >> [sudo] password for lfs: >> > > The book does not say to use sudo, and it is not needed if you are > following the directions. The glibc-build dir should be in $LFS/sources. > My guess is you overlooked an instruction on page 5.1. The first > "Important" note explains that before you do anything on a package > installation page, you first unpack the source and cd into the created > source dir. Therefore, you should be in the Glibc source dir when you > create the build dir. > > Your problem is likely due to the use of sudo - when sudo elevates you > to root, the necessary lfs user environment is not used. > never, ever compile with sudo(golden rule).. as for this type of error, experience something similar with the xserver ended I needed to use sh ./autogen.sh to set it right before compiling. (but this might not be the case for you).
hope this helps. Justin P. Mattock -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
