Bug#487213: Library search path for -m32 differs between amd64 and i386
Package: gcc-4.3
Version: 4.3.1-2
Severity: normal
Hi,
when linking with 'gcc -m32 -lfoo' the library search path differs for
amd64 and i386.
On i386 you have the right directory:
[pid 4966] stat64("/usr/i486-linux-gnu/lib/libfoo.so", 0xffacca30) = -1 ENOENT (No such file or directory)
On amd64 on the other hand the wrong directory is used:
[pid 17907] stat("/usr/i386-linux-gnu/lib/libfoo.so", 0x7fff05b8f770) = -1 ENOENT (No such file or directory)
MfG
Goswin
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (400, 'unstable-i386')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.25-kvm-nofb (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages gcc-4.3 depends on:
ii binutils 2.18.1~cvs20080103-6 The GNU assembler, linker and bina
ii cpp-4.3 4.3.1-2 The GNU C preprocessor
ii gcc-4.3-base 4.3.1-2 The GNU Compiler Collection (base
ii libc6 2.7-12 GNU C Library: Shared libraries
ii libgcc1 1:4.3.1-2 GCC support library
ii libgomp1 4.3.1-2 GCC OpenMP (GOMP) support library
Versions of packages gcc-4.3 recommends:
ii libc6-dev 2.7-12 GNU C Library: Development Librari
-- no debconf information
Reply to: