On Thu, 2005-10-27 at 21:35 +0100, Ken Moffat wrote: > > > OK, using Ryan's patch from last week plus the installstyle echo, with > only a 64-bit perl, everything is in /usr/lib64/perl5 and XML-Parser > installs into /usr/lib64/perl5/site_perl. Looks good, apart from > the libc=/lib/ issue in 'perl -V'. > I think I may have a found a solution for that, I used a patch (attached below) that's a variation on the current libc patch, the main differences being that I dropped the last hunk of the patch it's only needed for the tools version of perl. It does set libc properly (partial output of perl -V below". I also used the -Dlibpth Jim posted earlier so perl doesn't set it to just /usr/local/lib.
Linker and Libraries: ld='gcc -m64', ldflags ='' libpth=/usr/local/lib64 /lib64 /usr/lib64 libs=-lnsl -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib64/libc-2.3.90.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.3.90' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fpic', lddlflags='-shared' Characteristics of this binary (from libperl): Compile-time options: USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES Built under linux Compiled at Oct 27 2005 23:06:28 @INC: /usr/lib64/perl5/5.8.7/x86_64-linux /usr/lib64/perl5/5.8.7 /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux /usr/lib64/perl5/site_perl/5.8.7 /usr/lib64/perl5/site_perl I tested this install against a few perl modules and everything ended up where it should and linked to the proper libs. -- Thomas LFS User : 4729 / Linux User : 298329 kitt - Powered by: Linux 2.6.11-gentoo-r7 18:14:37 up 12 days, 1:16, 4 users, load average: 0.31, 0.43, 0.51
Submitted By: Thomas Pegg <thomasp at linuxfromscratch dot org> Date: 2005-10-27 Initial Package Version: 5.8.7 Origin: based on perl-5.8.7-libc-1.patch Description: this patch adapts some hard-wired paths to the C library and points it to use lib64 instead of lib. diff -uNr perl-5.8.0.orig/hints/linux.sh perl-5.8.0/hints/linux.sh --- perl-5.8.0.orig/hints/linux.sh 2002-06-05 23:46:00.000000000 +1000 +++ perl-5.8.0/hints/linux.sh 2003-02-19 16:32:18.000000000 +1100 @@ -51,9 +51,9 @@ # We don't use __GLIBC__ and __GLIBC_MINOR__ because they # are insufficiently precise to distinguish things like # libc-2.0.6 and libc-2.0.7. -if test -L /lib/libc.so.6; then - libc=`ls -l /lib/libc.so.6 | awk '{print $NF}'` - libc=/lib/$libc +if test -L /lib64/libc.so.6; then + libc=`ls -l /lib64/libc.so.6 | awk '{print $NF}'` + libc=/lib64/$libc fi # Configure may fail to find lstat() since it's a static/inline
signature.asc
Description: This is a digitally signed message part
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page