On Fri, 8 Jul 2005, Albert Chin wrote: > $ uname -a > OSF1 [name] V4.0 878 alpha > $ uname -a > OSF1 [name] V5.1 732 alpha > > $ cat mutex.c > #include <stdlib.h> > #include <pthread.h> > > int > main (void) { > pthread_mutex_t lck; > > if (pthread_mutex_init(&lck, 0) != 0) > exit (2); > if (pthread_mutex_lock(&lck) != 0) > exit (3); > if (pthread_mutex_unlock(&lck) != 0) > exit (4); > if (pthread_mutex_destroy(&lck) != 0) > exit (5); > > exit (0); > } > > $ cc mutex.c Try cc mutex.c -lpthread -ishwar