Oleg Goldshmidt wrote:
Gilad Ben-Yossef <[EMAIL PROTECTED]> writes:


Can you please post the link command used to generate the binary? did
you remember to lni libpthread? because if you didn't you're using the
standart fork/exec instead of the thread aware ones from libpthread
and this explains what you're seeing.


Had libpthread not been linked in at all I suspect the linker would
have complained about pthread_create().

Most probably it's linked via some other library that is linked. It gets you the symbols so the linker does not complain but the "symbol resolution scope" for fork/exec symbol resolution is different and so the thread aware versions of these symbols do not override the normal ones that libc provides.


adding -lpthread explcitly solvers the problem.


Nevertheless, checking that everything is sane about the linkage (e.g the order of linking), as Gilad suggested will be useful.



Trust me, I'm talking from expreince. Painful experience :-)

Gilad.


================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]



Reply via email to