ch5 perl linked to /lib

Bruce Dubbs bruce.dubbs at gmail.com
Sat Jan 2 15:36:37 PST 2010


Ken Moffat wrote:
> 2010/1/2 Bruce Dubbs <bruce.dubbs at gmail.com>:
>> Ken Moffat wrote:
>>
>>> Supporting evidence after latest attempt to rebuild perl:
>>> lfs at bluesbreaker ~$ ldd /mnt/lfs/building/perl-5.10.1/perl
>>>       linux-vdso.so.1 =>  (0x00007fff27fff000)
>>>       libnsl.so.1 => /lib/libnsl.so.1 (0x00007fd0996ed000)
>>>       libdl.so.2 => /lib/libdl.so.2 (0x00007fd0994e9000)
>>>       libm.so.6 => /lib/libm.so.6 (0x00007fd099267000)
>>>       libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007fd099030000)
>>>       libutil.so.1 => /lib/libutil.so.1 (0x00007fd098e2d000)
>>>       libc.so.6 => /lib/libc.so.6 (0x00007fd098adb000)
>>>       /lib/ld-linux-x86-64.so.2 (0x00007fd099905000
>> I'm not sure why the difference, but I have:
>>
>> $ ldd /usr/bin/perl
>>     linux-vdso.so.1 =>  (0x00007fffbe59a000)
>>     libnsl.so.1 => /lib/libnsl.so.1 (0x00007ff0f670d000)
>>     libdl.so.2 => /lib/libdl.so.2 (0x00007ff0f6509000)
>>     libm.so.6 => /lib/libm.so.6 (0x00007ff0f6287000)
>>     libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007ff0f6050000)
>>     libutil.so.1 => /lib/libutil.so.1 (0x00007ff0f5e4d000)
>>     libc.so.6 => /lib/libc.so.6 (0x00007ff0f5afa000)
>>     /lib64/ld-linux-x86-64.so.2 (0x00007ff0f6925000)
>>
>> So the only difference seems to be the last line.  I don't know why ldd
>> thinks there is a difference as I have
>>
>>   lrwxrwxrwx  1 root root     3 Aug 16 12:25 lib64 -> lib
>>
>>   -- Bruce
>> --
>  Thanks, Bruce, but I'm puzzled -
> I seem not to have the symlink at the moment, but
> since I can't procede in chroot (/lib is empty) that
> doesn't seem likely to be the cause of my current
> problem ?

It sounds like an error in Chapter 5.  Everything there should be linked 
  to /tools.  At Section 6.4 when you enter chroot, /bin, /lib, /usr 
don't exist yet.  Are you sure you did 5.8. Adjusting the Toolchain?

Section 6.5 set the link:

case $(uname -m) in
  x86_64) ln -sv lib /lib64 && ln -sv lib /usr/lib64 ;;
esac

   -- Bruce



More information about the lfs-support mailing list