ch5 perl linked to /lib

Ken Moffat zarniwhoop73 at
Sat Jan 2 16:36:57 PST 2010

2010/1/2 Bruce Dubbs <bruce.dubbs at>:
> 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
> --

Yes, I am sure - I initially assumed I'd failed to do that
properly, but running ldd against an example prog from
every chapter 5 package says otherwise, e.g.

ken at bluesbreaker ~ $ldd /tools/bin/tar =>  (0x00007fff0abff000) => /tools/lib/ (0x00007f24c6a4b000) => /tools/lib/ (0x00007f24c6835000) => /tools/lib/ (0x00007f24c64df000) => /tools/lib/ (0x00007f24c62c3000)
	/tools/lib64/ (0x00007f24c6c53000)

So, yes I've missed the symlink (or rather, it didn't get created
for some reason - script is now instrumented), but I'm back in
chapter 5 until I can build perl correctly.


After tragedy, and farce, "OMG poneys!"

More information about the lfs-support mailing list