The autotools build-system is not using libpthread properly. I attempted to test a build, and while the compile worked, ds_newinst-bin immediately core dumped with an assertion from NSPR. According to the man page for pthread on HP-UX, we need to build with "-D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE" when using libpthread. We also need to ensure that libpthread is linked to our programs before libc. I added AC_DEFINE macros as well as adding "-lpthread" to AM_LDFLAGS for the HP-UX build.
Created attachment 148252 [details] Proposed Fix
Created attachment 148253 [details] Revised Diffs I forgot to include the changes to config.h.in in the last set of diffs. These diffs have them included.
Created attachment 148254 [details] CVS Commit Message Checked into ldapserver (HEAD). Thanks to Rich for the review!