[Date Prev][Date Next] [Chronological] [Thread] [Top]

pthread.h and pthread_create are not compatible on Solaris 7 (ITS#199)



Full_Name: Larry Williamson
Version: 1.2.1 & 1.2.3
OS: Solaris 7
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (192.190.75.129)


CC=cc ./configure on a solaris 7 system results in...

  configure: error: pthread.h and pthread_create are not compatible

I found a similiar problem reported this past Feb in the email archives for
Digital Unix (software bugs/62).  The workaround (I _think_) is similiar, but
with a potential problem.

CC=cc LIBS="-lpthread"  ./configure

This works, but someone ("Kurt D. Zeilenga" <Kurt@OpenLDAP.Org>) in
the aformentioned article mentioned that doing this was a bad idea. To quote

 > I do NOT recommend using "-threads" nor "-lpthreads" as this will cause
 > older posix routines to be included.  (In fact, this is why the test
 > failed).

Can someone comment on this?  Am I digging a bigger whole?  Is there a better
way to resolve this problem?

Thanks.