polystrap: 'libfakechroot.so' from LD_PRELOAD cannot be preloaded

Geert Stappers <[email protected]>
Newsgroups gmane.linux.debian.devel.embedded
Message-ID <[email protected]>
On Wed, Jun 29, 2011 at 11:09:51PM +0200, [email protected] wrote:
> 
> It looks like fakeroot and fakechroot are both required in the rootfs:
> 
> + fakechroot chroot qtmoko-rootfs /var/lib/dpkg/info/apt.preinst install
> ERROR: ld.so: object 'libfakechroot.so' from LD_PRELOAD cannot be preloaded: ignored.
> ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded: ignored.
> 
> Adding fakechroot to the list of packages is sufficient to stop the
> complaints, but just adding fakeroot is not sufficient (on an amd64
> machine) for some reason.  The following hack gets rid of the second
> complaint, which seems to indicate that someone messes with
> LD_LIBRARY_PATH, which is apparently properly set by fakeroot:
> 
> $ fakeroot env|grep LD
> LD_PRELOAD=libfakeroot-sysv.so
> LD_LIBRARY_PATH=/usr/lib/libfakeroot:/usr/lib64/libfakeroot:/usr/lib32/libfakeroot
> 
> diff --git a/polystrap.sh b/polystrap.sh
> index 36cfd5b..f17a0cb 100755
> --- a/polystrap.sh
> +++ b/polystrap.sh
> @@ -129,6 +129,9 @@ if [ $ARCH != "`dpkg --print-architecture`" ]; then
>         esac
>  fi
>  
> +# fakeroot hack
> +ln -s libfakeroot/libfakeroot-sysv.so $ROOTDIR/usr/lib/
> +
>  # preseed debconf
>  if [ -r "$PLATFORM/debconfseed.txt" ]; then
>         cp "$PLATFORM/debconfseed.txt" $ROOTDIR/tmp/
> 
> 
> Has anyone encountered this problem ?

Not with `./polystrap kirkwood`
probably due doing something like

 wget http://ftp.debian.org/debian/pool/main/f/fakechroot/fakechroot_2.14-1_armel.deb
 wget http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.14.5-1_armel.deb
 sudo mkdir -p /usr/lib/arm-linux-gnueabi/
 dpkg-deb --fsys-tarfile fakeroot_1.14.5-1_armel.deb | \
  sudo tar -xf - --strip-components=4 -C /usr/lib/arm-linux-gnueabi/ \
   ./usr/lib/libfakeroot/libfakeroot-sysv.so
 dpkg-deb --fsys-tarfile fakechroot_2.14-1_armel.deb | \
  sudo tar -xf - --strip-components=4 -C /usr/lib/arm-linux-gnueabi/ \
   ./usr/lib/fakechroot/libfakechroot.so
 rm fakechroot_2.14-1_armel.deb fakeroot_1.14.5-1_armel.deb libc6_2.11.2-11_armel.deb

I did encounter
 ERROR: ld.so: object 'libfakechroot.so' from LD_PRELOAD cannot be preloaded: ignored.
on `./polystrap mipsboard` where I
didn't do http://lists.debian.org/debian-embedded/2011/04/msg00001.html stuff


Groeten
Geert Stappers
-- 
> And is there a policy on top-posting vs. bottom-posting?
Yes.
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk4Ln4kACgkQOSINbgwa/7uNCACfUrV/E95akHHRlphLdl78XB5p
k2AAnjbW71bY8op+yOP2RxMkRG9FynH5
=Lj4Z
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.