[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Problems with pthread detection under HPUX 11.0 (ITS#14)
Full_Name: Josh Tiefenbach
Version: head of CVS tree as of 12/21/98
OS: HP-UX 11.00
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (204.92.55.157)
The configure script does not correctly recognize the existance of the pthread
libraries under HPUX 11.00. To use the pthread libraries, one must
#include <pthread.h>
in the program, and then link with -lpthread.
The problem is that configure, when executing the AC_CHECK_LIB macro, does not
include the pthread.h header file. This is required to avoid undefined symbol
link
errors.
(There is an additional problem in that the test program
#include <pthread.h>
main () {
pthread_create();
}
horks complaining about incorrect parameter usage, but it at least links)
Interestingly enough, one does *not* need to include pthread.h in a test
program
when checking to see if pthread_join exists in -lpthread (as opposed to
pthread_create)
. Thus, the DEC Threads check would work, execpt it also tries linking with
-lexc
If I could wrap my brain about the cruft which is autoconf, I may be able to
generate
some patches, but I figured this would serve as a heads-up for those people who
actually know this stuff.