On Thu, 27 Jun 2013 16:59:04 +0200, Roland Stigge wrote:

> >gcc -o test ... -L/usr/local/lib -lcheck `pkg-config --cflags --libs check` 
> >`../src/osflags link`
> >/usr/bin/ld: 
> >/usr/lib/gcc/powerpc-linux-gnuspe/4.6/../../../powerpc-linux-gnuspe/libcheck.a(check_pack.o):
> > undefined reference to symbol '__pthread_unregister_cancel@@GLIBC_2.3.3'
> >
> >and the newer:
> >
> >gcc -o test ... -L/usr/local/lib -lcheck -lpthread `pkg-config --cflags 
> >--libs check` `../src/osflags link`
> >[no error]
> 
> You can ignore the newer one since I silently already included
> "-lpthread" manually (but didn't upload the successfully built
> package since source was changed without sourcefule upload). The
> first is basically the same as on i386.

Ah, I see.
Thanks for un-confusing me :)



What's still interesting:
 
amd64 cowbuilder sid chroot:

# apt-get install check pkg-config
..
Selecting previously unselected package check:amd64.
Unpacking check:amd64 (from .../check_0.9.10-2+b1_amd64.deb) ...
..
# pkg-config --cflags --libs check
-pthread  -lcheck_pic -lrt -lm

i386 cowbuilder sid chroot:

# apt-get install check pkg-config
..
Selecting previously unselected package check:i386.
Unpacking check:i386 (from .../check_0.9.10-2+b1_i386.deb) ...
..
# pkg-config --cflags --libs check
 -lcheck_pic -lrt -lm 


I might be wrong, but this looks like a bug in check ...


Cheers,
gregor

 
-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Gypsy Sun And Rainbows: Hey Joe

Attachment: signature.asc
Description: Digital signature

Reply via email to