Package: binutils
Version: 2.17-1
On Debian/AMD64, 32bit libraries that rely on a 3rd library aren't
linkable. I've seen this with the freetype library when trying to
configure wine. Seems to be a regression, as it was working until I did
a dist-upgrade last week or so.
# make a simple test program
$ cat l.c
extern int FT_Init_FreeType(void);
int main(void) { return FT_Init_FreeType(); }
# the following fails to link
$ gcc -m32 -o l l.c -lfreetype
/usr/bin/ld: warning: libz.so.1, needed by
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libfreetype.so,
not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libfreetype.so:
undefined reference to `inflate'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libfreetype.so:
undefined reference to `inflateReset'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libfreetype.so:
undefined reference to `inflateEnd'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libfreetype.so:
undefined reference to `inflateInit2_'
collect2: ld returned 1 exit status
# the following gives no error, but the -lz shouldn't be necessary
$ gcc -m32 -o l l.c -lfreetype -lz
# and isn't if I link a 64bit binary
gcc -o l l.c -lfreetype
# libz is present
$ file /usr/lib32/libz.so.1.2.3
/usr/lib32/libz.so.1.2.3: ELF 32-bit LSB shared object, Intel 80386,
version 1 (SYSV), stripped
# relevant package versions
$ dpkg -l gcc binutils libfreetype6 zlib1g
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name Version Description
+++-========================-========================-================================================================
ii binutils 2.17-1 The GNU assembler,
linker and binary utilities
ii gcc 4.1.1-5 The GNU C compiler
ii libfreetype6 2.2.1-2 FreeType 2 font
engine, shared library files
ii zlib1g 1.2.3-13 compression
library - runtime
# and my system information
$ uname -a
Linux black 2.6.16.11 #1 Mon May 1 16:44:30 KST 2006 x86_64 GNU/Linux
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]