Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 229095

Summary: HP-UX build not using pthread properly
Product: [Retired] 389 Reporter: Nathan Kinder <nkinder>
Component: Directory ServerAssignee: Nathan Kinder <nkinder>
Status: CLOSED CURRENTRELEASE QA Contact: Viktor Ashirov <vashirov>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0.4CC: rmeggins
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Other   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-07 16:44:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 427409    
Description Flags
Proposed Fix
Revised Diffs
CVS Commit Message none

Description Nathan Kinder 2007-02-16 23:11:51 UTC
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.

Comment 1 Nathan Kinder 2007-02-16 23:11:51 UTC
Created attachment 148252 [details]
Proposed Fix

Comment 2 Nathan Kinder 2007-02-16 23:18:57 UTC
Created attachment 148253 [details]
Revised Diffs

I forgot to include the changes to in the last set of diffs.  These
diffs have them included.

Comment 3 Nathan Kinder 2007-02-16 23:26:19 UTC
Created attachment 148254 [details]
CVS Commit Message

Checked into ldapserver (HEAD).  Thanks to Rich for the review!