Hi,
starting with a fresh new lfssystem, I build an iso then do some changes
in the make menuconfig and wanted to start over :
make mrproper unpack prepare build
the build stops with an error on glibc ...
root:/data/build#tail tmp/LOG/build/glibc
/data/build/tmp/glibc-build/elf/sln
/data/build/tmp/glibc-build/elf/symlink.list
rm -f /data/build/tmp/glibc-build/elf/symlink.list
test ! -x /data/build/tmp/glibc-build/elf/ldconfig || LC_ALL=C LANGUAGE=C \
/data/build/tmp/glibc-build/elf/ldconfig \
/lib /usr/lib
CC="gcc" /usr/bin/perl scripts/test-installation.pl
/data/build/tmp/glibc-build/
Your new glibc installation seems to be ok.
make[2]: Leaving directory `/data/build/tmp/glibc-2.3.2'
make[1]: Leaving directory `/data/build/tmp/glibc-build'
ln: `/lib/libdl.so': File exists
There are three ways to solve this : either the link is to be deleted
when make mrproper or it has to be when make build in the glibc script,
and finally one could keep the glibc build script from updating the link
and modify glibc build script not to create the link if it exixts.
I choose the second way as it is the easier and "cleaner" one, for me at
least ;)
here is the patch :
--- scripts/glibc.old 2007-05-24 10:05:45.000000000 +0200
+++ scripts/glibc 2007-07-04 18:57:23.000000000 +0200
@@ -70,6 +70,9 @@
# we have to install this immediately, because this is a
library and could be needed by other sources
make install || exit 1
#make localedata/install-locales || exit 1
+ if [ -f /lib/libdl.so ]; then
+ rm /lib/libdl.so
+ fi
ln -s libdl.so.2 /lib/libdl.so || exit 1
;;
Regards,
MaNU ESCaR
|