Heiko Noordhof wrote:
Flavio Stanchina wrote:I don't think that error is caused by the missing symlink, but then I don't know what the problem is and how to solve it. Unfortunately, I don't have any experience with AMD64 systems yet.Note that the error with libfglrx_gamma.1 is harmless. You need to solve only the other one.[...]
But now I still get this:dpkg-shlibdeps: failure: ldd on `debian/fglrx-driver/emul/ia32-linux/usr/X11R6/lib/libGL.so.1.2' gave error exit status 1dh_shlibdeps: command returned error code 256 make: *** [binary] Error 1
Seems I found out what caused this. For anybody interested, here's what happens:
The error happens when dpkg-shlibdeps tries to find out the shared library dependencies (called by dh_shlibdeps in debian/rules) for the compatability *32-bit* version of libGL.so.1.2 (note the
path mentioned in the error: ...emul/ia32-linux/...).dpkg-shlibdeps calls ldd to read the dependencies from libGL.so.1.2. But the *64-bit* version of "ldd" is called, which cannot deal with the *32-bit* shared lib, so it fails.
Installing Setting $PATH to /emul/ia32-linux/usr/bin to make the shell find the 32-bit version of "ldd" (which is in the package "ia32-libs") is not enough. To run 32-bit binaries you need a chroot environment with entire base-install of 32-bit sarge. You can read here about that: https://alioth.debian.org/docman/view.php/30192/21/debian-amd64-howto.html#id274293
So, I suppose, debian/rules needs to call dh_shlibdeps for 64-bit skipping debian/fglrx-driver/emul/ia32-linux/usr/X11R6/lib/libGL.so.1.2. And then call it seperately for the 32-bit version chroot-ed.
What I did to fix it, is commenting out every line in debian/rules that deals with the 32-bit compatability stuff, and now it works 64-bit programs. Which is enough for me at the moment. When time permits I'll try to really find a 32-bit chroot fix and post it here.
But I'm wondering how Peter Nelson does this when he builds the fglrx-debian packages for his website (http://rufus.hackish.org/~rufus/files/fglrx/). (Peter, are you on this list?).
Thanks for helping. Regards, Heiko Noordhof