This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
pthread library issue
- From: Wilson <Wilson at WSSPL dot com>
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>, "'GnomeMeeting-list at gnome dot org'" <GnomeMeeting-list at gnome dot org>
- Date: Tue, 2 Mar 2004 11:42:20 +0530
- Subject: pthread library issue
Hi,
We have a problem with pthread library on Linux 9.0/gcc 3.2.2.
We have written a wrapper for pthread calls on linux 8.0/gcc 3.2, and this
is built as an archive library - And one of our products is using this
lirary.
Now we are trying to build our product on linux 9.0/gcc 3.2.2, and uses our
archive threads library (which is built on 3.2/8.0).
The linking is done as "-lwrapperlibrary -lpthread"
The application crashes or sometimes hangs at pthread_mutex_lock().
But works fine, when we rebuild the threads library on linux 9.0/gcc 3.2.2.,
but we may want to avoid this -
We even tried linking with pthread_nonshared.a, but didnt help.
Can someone give details on the difference in the pthreads implemantion, and
why this pthread_nonshared.a library.
Thanks in advance
Regards
Wilson
www.wsspl.com