Issue 310 - pthreads Linux
Summary: pthreads Linux
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-09-27 21:55 UTC by wsteffen@bwn.net
Modified: 2014-08-01 21:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description wsteffen@bwn.net 1999-09-27 21:55:56 UTC
Full_Name: Warren Steffen
Version: 1.2.7
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (216.146.166.3)


I installed the pthreads libraries and when I do a ./configure the output
shows the pthreads.h file was found, but then there is an error message
that says "unknown pthread version. Is there some thing I forgot to do?
Comment 1 Kurt Zeilenga 1999-09-28 00:30:09 UTC
At 09:55 PM 9/27/99 GMT, wsteffen@bwn.net wrote:
>Full_Name: Warren Steffen
>Version: 1.2.7
>OS: Linux

Details please...  Which Linux Distribution? Version? kernel version?
  cc version? libc version? pthread version?

>I installed the pthreads libraries and when I do a ./configure the output
>shows the pthreads.h file was found, but then there is an error message
>that says "unknown pthread version. Is there some thing I forgot to do?

This error implies that your pthread.h header confused our Pthread "final"
vs "draft4" detection.  This can occur if:
  both PTHREAD_ONCE_INIT and pthread_once_init are defined
or:
  neither PTHREAD_ONCE_INIT and pthread_once_init are defined.
or:
  <pthread.h> detection was forced positive [ac_cv_header_pthread_h=yes]
  and <pthread.h> doesn't actually exist.
or:
  install <pthread.h> is incompatible with system headers

You can examine config.log to determine exactly which pthread.h
tests passed or failed (and why).

	Kurt


Comment 2 wsteffen@bwn.net 1999-09-28 10:25:21 UTC
> At 09:55 PM 9/27/99 GMT, wsteffen@bwn.net wrote:
> >Full_Name: Warren Steffen
> >Version: 1.2.7
> >OS: Linux
> 
> Details please...  Which Linux Distribution? Version? kernel
version?
>   cc version? libc version? pthread version?
> 
> >I installed the pthreads libraries and when I do a ./configure
the output
> >shows the pthreads.h file was found, but then there is an
error message
> >that says "unknown pthread version. Is there some thing I
forgot to do?
> 
> This error implies that your pthread.h header confused our
Pthread "final"
> vs "draft4" detection.  This can occur if:
>   both PTHREAD_ONCE_INIT and pthread_once_init are defined
> or:
>   neither PTHREAD_ONCE_INIT and pthread_once_init are defined.
> or:
>   <pthread.h> detection was forced positive
[ac_cv_header_pthread_h=yes]
>   and <pthread.h> doesn't actually exist.
> or:
>   install <pthread.h> is incompatible with system headers
> 
> You can examine config.log to determine exactly which pthread.h
> tests passed or failed (and why).
> 
> 	Kurt
> 
> 
Thanks for your quick response. I found that neither
PTHREAD_ONCE_INIT or pthread_once_init were defined. I tried
the configure on another system with an "older" pthreads version
and the configure worked. I later found that in fact they were 2
different pthread packages'
The package that IS compatable is:
Linuxthreads by Xavier Leroy
The package that IS NOT compatable is:
PCThreads by Michael T. Peterson.
A quick comparison looks like it might be that it is just the
configure that is incompatable. What is your thought on this?

Thanks again,
Warren Steffen
wsteffen@bwn.net

Comment 3 wsteffen@bwn.net 1999-09-28 15:29:53 UTC
> At 04:25 PM 9/28/99 GMT, wsteffen@bwn.net wrote:
> >Thanks for your quick response. I found that neither
> >PTHREAD_ONCE_INIT or pthread_once_init were defined. I tried
> >the configure on another system with an "older" pthreads
version
> >and the configure worked.
> 
> If <pthread.h> defines NEITHER, the package doesn't implement
> POSIX Threads "final" nor "draft4".
> 
> >I later found that in fact they were 2
> >different pthread packages'
> >The package that IS compatable is:
> >Linuxthreads by Xavier Leroy
> 
> Please note that you have problems using LinuxThreads as it
> is preemptive.  <a
href="http://www.openldap.org/faq/index.cgi?file=263">http://www.openldap.org/faq/index.cgi?file=263</a>
> 
> >The package that IS NOT compatable is:
> >PCThreads by Michael T. Peterson.
> >A quick comparison looks like it might be that it is just the
> >configure that is incompatable.
> 
> OpenLDAP can use either Pthread final and draft4.  PCThreads is
> obviosiosly something else.  It might be usable, but someone
> would need to sort out the differences and implement necessary
> configure/code changes.  Considering that PCthreads appears not
to
> be actively maintained (since 1996), there doesn't seem much
point
> in adding OpenLDAP support for it.
> 
> Personally, I recommend GNU Pth (<a
href="http://www.gnu.org/software/pth/)">http://www.gnu.org/software/pth/)</a>
> as it is non-preemptive.
> 
> Kurt
Thanks, I will try the GNU
threads.

Comment 4 Kurt Zeilenga 1999-09-28 16:57:37 UTC
At 04:25 PM 9/28/99 GMT, wsteffen@bwn.net wrote:
>Thanks for your quick response. I found that neither
>PTHREAD_ONCE_INIT or pthread_once_init were defined. I tried
>the configure on another system with an "older" pthreads version
>and the configure worked.

If <pthread.h> defines NEITHER, the package doesn't implement
POSIX Threads "final" nor "draft4".

>I later found that in fact they were 2
>different pthread packages'
>The package that IS compatable is:
>Linuxthreads by Xavier Leroy

Please note that you have problems using LinuxThreads as it
is preemptive.  http://www.openldap.org/faq/index.cgi?file=263

>The package that IS NOT compatable is:
>PCThreads by Michael T. Peterson.
>A quick comparison looks like it might be that it is just the
>configure that is incompatable.

OpenLDAP can use either Pthread final and draft4.  PCThreads is
obviosiosly something else.  It might be usable, but someone
would need to sort out the differences and implement necessary
configure/code changes.  Considering that PCthreads appears not to
be actively maintained (since 1996), there doesn't seem much point
in adding OpenLDAP support for it.

Personally, I recommend GNU Pth (http://www.gnu.org/software/pth/)
as it is non-preemptive.

Kurt
Comment 5 Kurt Zeilenga 1999-09-29 15:15:20 UTC
changed notes
changed state Open to Closed
Comment 6 OpenLDAP project 2014-08-01 21:06:09 UTC
User used old libraries.