[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: slapd crash (ITS#38)
At 12:49 PM 1/15/99 GMT, hwr@xlink.net wrote:
>On Thu, Jan 14, 1999 at 08:39:54PM +0000, Kurt Zeilenga wrote:
>> via AnonCVS. Would appreciate any testing you might be able to
>> accomplish.
>
>This does not help:
Are you sure it built correctly. Can you do a make veryclean
before running configure?
>I did a configure --without-threads, as NetBSD mit-pthreads from
>ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/devel/mit-pthreads/README.html
OpenLDAP should be able to detect and use mit-pthreads. However,
if you ran ./configure --without-threads, threads details should
not have been checked nor configured.
>are not liked by OpenLdap's configure:
>
> setenv CPPFLAGS "-I/usr/pkg/include -I/usr/pkg/pthreads/include
>-D_MIT_POSIX_THREADS"
>setenv LDFLAGS "-L/usr/pkg/lib -L/usr/pkg/pthreads/lib"
This looks like --with-threads to me:
>checking POSIX thread version... final
>checking for pthread_create in -lpthread... yes
>checking for sched_yield... yes
>checking for pthread_yield... yes
>checking for pthread_kill... yes
>checking for pthread_detach... yes
>checking for pthread_attr_create... no
>checking for pthread_attr_init... yes
>checking for pthread_attr_destroy... yes
>checking for pthread_attr_delete... no
>checking for pthread_attr_setdetachstate... yes
>checking for pthread_attr_setdetach_np... no
>checking for pthread_setconcurrency... no
>checking for thr_setconcurrency... no
>checking if pthread_create() works... no
>configure: error: pthread.h and pthread_create are not compatible
This error implies that pthread_create() in -lpthread doesn't
have the prototype suggested by pthread.h.
>(But If I understand correctly, slapd does not necessarily require threads
>anyway, else it should completely fail to compile).
SLAPD can be compiled without threads on *most* platforms.