Pure LFS Hint - good to go

Cynthia julia31 at prodigy.net
Tue Feb 18 12:40:12 PST 2003


----- Original Message -----
From: "Tushar Teredesai" <tushar at linuxfromscratch.org>
To: <lfs-dev at linuxfromscratch.org>
Sent: Monday, February 17, 2003 9:42 PM
Subject: Re: Pure LFS Hint - good to go


Greg Schafer wrote:
> On Fri, Feb 14, 2003 at 11:01:00PM -0600, Tushar Teredesai wrote:
>>
>>   * Perl can be installed in Chapter 5. If dynamic version is too
>>     troublesome, maybe a static one.
>
>
> /me reaches for the salt :-). Dude, give me some feedback when you've
> actually had a play with it. I spent a full day farking around with the
perl
> stuff and I'm still not happy with it. Perl's assumptions about where
/libc
> is located are truly mind boggling.

Now that I have played with it, here is how I got perl to compile
against the glibc in /stage1 in Chapter 5:-)

perl_version=5.8.0 &&
glibc_version=2.3.1 &&
b_prefix=/stage1 &&
tar -xvzf perl-$perl_version.tar.gz &&
cd perl-$perl_version &&
./Configure -d -E -s -Doptimize="-O2 -pipe -w" \
-Dprefix=$b_prefix -Dldflags="-s" -Uinstallusrbinperl \
-Uusedl -Dlibpth=$b_prefix/lib &&
cp config.sh config.sh.orig &&
l=`find $b_prefix/lib -name "libc\-*.so" -type f` &&
sed -e "s@/usr/@$b_prefix/@g" -e "s:^libc=.*:libc=\'$l\':g" \
-e "s:^gnulibc_version=.*:gnulibc_version=\'$glibc_version\':g"\
config.sh.orig > config.sh &&
rm -f config.sh.orig &&
unset l &&
./Configure -d -e -r &&
make &&
make install &&
rm -rf $b_prefix/man &&
cd .. &&
rm -rf perl-$perl_version

The output of FindLibraries (a home-brew script that determines the
dependencies using ld):

/stage1/lib/ld-linux.so.2
/stage1/lib/libc.so.6
/stage1/lib/libcrypt.so.1
/stage1/lib/libdl.so.2
/stage1/lib/libm.so.6
/stage1/lib/libnsl.so.1
/stage1/lib/libutil.so.1

--
Tushar Teredesai
    http://www.linuxfromscratch.org/~tushar/
    http://www.geocities.com/tushar/

_____________________________________

I tried this and I get a sed error and it doesn't write the config.sh.

lfs at ace:/lfs/stage1$ perl_version=5.8.0 &&

> glibc_version=2.3.1 &&

> b_prefix=/stage1 &&

> tar -xvzf ../usr/tarballs/perl-$perl_version.tar.gz &&

> cd perl-$perl_version &&

> ./Configure -d -E -s -Doptimize="-O2 -pipe -w" \

> -Dprefix=$b_prefix -Dldflags="-s" -Uinstallusrbinperl \

> -Uusedl -Dlibpth=$b_prefix/lib &&

> cp config.sh config.sh.orig &&

> l=`find $b_prefix/lib -name "libc\-*.so" -type f` &&

> sed -e "s@/usr/@$b_prefix/@g" -e "s:^libc=.*:libc=\'$l\':g" \

> -e "s:^gnulibc_version=.*:gnulibc_version=\'$glibc_version\':g"\

> config.sh.orig > config.sh &&

> rm -f config.sh.orig &&

> unset l &&

> ./Configure -d -e -r





Stripping down executable paths...

Creating config.sh...

sed: -e expression #3, char 50: Unknown option to `s'

lfs at ace:/lfs/stage1/perl-5.8.0$



Cynthia


-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list