Hi, When I issue "configure", it gives the following error: checking for pthread_kill... yes checking for pthread_detach with <pthread.h>... yes checking for pthread_setconcurrency... no checking for pthread_getconcurrency... no checking for thr_setconcurrency... yes checking for thr_getconcurrency... yes checking if pthread_create() works... no configure: error: pthread.h and pthread_create are not compatible The attached is the pthread.h. Please fix. Thanks. -- Johnson Chow
I believe this is covered in the FAQ... http://www.openldap.org/faq/data/cache/11.html That is, ./configure --without-threads At 01:40 AM 1/25/00 GMT, wschow@Comp.HKBU.Edu.HK wrote: >When I issue "configure", it gives the following error: >checking for pthread_kill... yes >checking for pthread_detach with <pthread.h>... yes >checking for pthread_setconcurrency... no >checking for pthread_getconcurrency... no >checking for thr_setconcurrency... yes >checking for thr_getconcurrency... yes >checking if pthread_create() works... no >configure: error: pthread.h and pthread_create are not compatible > >The attached is the pthread.h. Please fix. Thanks. See archives as to why configure behaves the way it does...
On Tue, 25 Jan 2000 02:30:46 GMT, Kurt@OpenLDAP.org wrote: > I believe this is covered in the FAQ... > http://www.openldap.org/faq/data/cache/11.html > > That is, ./configure --without-threads > > At 01:40 AM 1/25/00 GMT, wschow@Comp.HKBU.Edu.HK wrote: > >When I issue "configure", it gives the following error: > >checking for pthread_kill... yes > >checking for pthread_detach with <pthread.h>... yes > >checking for pthread_setconcurrency... no > >checking for pthread_getconcurrency... no > >checking for thr_setconcurrency... yes > >checking for thr_getconcurrency... yes > >checking if pthread_create() works... no > >configure: error: pthread.h and pthread_create are not compatible > > > >The attached is the pthread.h. Please fix. Thanks. > > See archives as to why configure behaves the way it does... > The simplest way to get things working under SunOS 5.7 for me has been: % setenv CC "cc -lpthread" % ./configure --with-threads Is this a bad solution? Miguel C. Miguel Marques, York University, Computing & Communications Services e-mail: miguel@yorku.ca, voice: (416)736-2100x22684, fax: (416)736-5830
At 07:16 PM 1/25/00 GMT, miguel@yorku.ca wrote: >The simplest way to get things working under SunOS 5.7 for me has been: >% setenv CC "cc -lpthread" >% ./configure --with-threads > >Is this a bad solution? If -lpthreads is preemptive, which I believe the Solaris implementation is, then, Yes, it is a bad solution. See: http://www.openldap.org/faq/index.cgi?file=228
changed state Open to Closed