[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#325226: libc6: Wrong dynamic linker on amd64



On 06-Feb-13 00:54, Aurelien Jarno wrote:
> Please find attached my latest version of the patch for this bug. I am
> waiting for your comments.

Hello,

> diff -u glibc-2.3.6/debian/sysdeps/amd64.mk glibc-2.3.6/debian/sysdeps/amd64.mk
> --- glibc-2.3.6/debian/sysdeps/amd64.mk
> +++ glibc-2.3.6/debian/sysdeps/amd64.mk
> @@ -20,0 +21,7 @@
> +
> +define libc_extra_install
> +mv debian/tmp-libc/lib64 debian/tmp-libc/lib
> +mv debian/tmp-libc/usr/lib64/* debian/tmp-libc/usr/lib
> +for link in $$(find debian/tmp-libc/usr/lib -type l) ; do ln -sf $$(readlink $$link | sed -e "s#64##g") $$link ; done

please add a line

+for so in $$(find debian/tmp-libc/usr/lib -maxdepth 1 -type f -name *.so) ; do perl -pi -e "s#/lib64/#/lib/#g" $$so ; done

to make sure that 'libc.so' and 'libpthread.so' use '/lib' and not
'/lib64' to access the libraries.

> +endef
> +

With this change, glibc 2.3.6 with your patch builds and works fine for me
on amd64.

Regards
Andreas Jochens



Reply to: