This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]