[Mageia-dev] need some help to build a linuxsampler.rpm
philippedidier at laposte.net
Sat Sep 22 00:22:36 CEST 2012
AL13N a écrit :
> Op vrijdag 21 september 2012 21:24:17 schreef PhilippeDidier:
> make a small test program, that uses pthread_cancel and try to compile
> link it.
when compiling (with gcc or g++) I've got this :
pthread_cancel.c:(.text+0xf0): undefined reference to `pthread_create'
pthread_cancel.c:(.text+0x142): undefined reference to `pthread_cancel'
pthread_cancel.c:(.text+0x184): undefined reference to `pthread_join'
when I compile with gcc -pthread -c
It seems to be a linkage problem !
Is there anything to do on the computer so that I don't have to add the
-pthread option to compile ?
or something to add in the spec file ?
> or you could find out with strings if that function is in there.
> lastly, i see you're building the .a file. don't do it and make it
> that could also have been an issue. if not at least it'll make the
> alot more visible
I didn't change anything neither in the spec file nor in the source file
that I could use on my mandriva 2010.2 engine
(Franck Kober aka emuse maintainer of the music packages for Mandriva
2011 didn't modify the spec file... no more)
Thanks for your help !!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2171 bytes
Desc: not available
More information about the Mageia-dev