Red Hat Bugzilla – Bug 229095
HP-UX build not using pthread properly
Last modified: 2015-12-07 11:44:51 EST
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]
Created attachment 148253 [details]
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!