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

Bug#211054: fails to link libraries with -pthread on powerpc



Package: gcc-3.3
Version: 1:3.3.2-0pre3
Severity: important

I use -Wl,-z,defs as sugegsted by the Policy.

porridge@bruckner:~$ uname -a
Linux bruckner 2.4.21 #1 Don Aug 28 15:18:52 CEST 2003 ppc GNU/Linux
porridge@bruckner:~$ cat a.c
main(){pthread_create();}
porridge@bruckner:~$ cc -shared -Wl,-z,defs -Wl,-soname,libgadu.so.2 -o a a.c -pthread
/tmp/ccUN9fRZ.o(.text+0x14): In function `main':
: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
porridge@bruckner:~$ dpkg -l libc6-dev gcc-3.3 binutils|grep ^ii
ii  libc6-dev      2.3.2-6        GNU C Library: Development Libraries and Hea
ii  gcc-3.3        3.3.2-0pre3    The GNU C compiler
ii  binutils       2.14.90.0.5-0. The GNU assembler, linker and binary utiliti
porridge@bruckner:~$

The same toolchain versions do work for example on mipsel.
http://buildd.debian.org/fetch.php?&pkg=ekg&ver=1%3A1.2-1&arch=mipsel&stamp=1063300927&file=log&as=raw
vs
http://buildd.debian.org/fetch.php?&pkg=ekg&ver=1%3A1.2-1&arch=powerpc&stamp=1063289370&file=log&as=raw

Marcin
-- 
Marcin Owsiany <porridge@debian.org>             http://marcin.owsiany.pl/
GnuPG: 1024D/60F41216  FE67 DA2D 0ACA FC5E 3F75  D6F6 3A0D 8AA0 60F4 1216



Reply to: