![]() |
in chroot compiled programs do not work in chroot
Hallo,
I just ran into a problem after installing glibc in chapter 6.9 (LFS6.6 x86_64). All the programs, compiled so far after chrooting (really only the compiled ones) refuse to run, each printing the output Code:
root:/# localedefIt is definitly there: Code:
root:/# ls -l /usr/binIn addition to this the compilation of glibc worked without any problems (except the posix/annexc test) When used from the host-distribution they run quite well: Code:
$ /media/LFS/usr/bin/localedef I am looking forward to your answers!:) Thanks for all replies! |
Hi,
did you make sure that in your chroot environment you have a symlink lib64 -> lib? Also post the output of Code:
ldd $LFS/usr/bin/localedef |
OK, the problem was much simpler than I thought:
The dynamic linker was not in place. The reason for this: I am using the DESTDIR method for installing programs, and when copying the files from $FAKEROOT to / I lost all the /lib64 and /usr/lib64 files because of this: Code:
root:/# cp -r /usr/pkglog/fakeroot/lib64 / |
| All times are GMT -5. The time now is 08:49 PM. |