Issue 644 - hp-ux linker does not grok -k
Summary: hp-ux linker does not grok -k
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: 2000-07-28 17:55 UTC by raj@cup.hp.com
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 raj@cup.hp.com 2000-07-28 17:55:18 UTC
Full_Name: rick jones
Version: 1.2.11
OS: HP-UX 11.00
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (156.153.255.130)


The configure script seems to look for assorted pthread routines with a
"-kthread."
mechanism. This -k option is not recognized by the HP-UX linker, and su the
script
is unable to find those pthread routines.

The workaround is to export LIBS=-lpthread, however, this does leave a number
of
option unrecognized warnings during the build.

I'm not sure if there might be a newer configure/autoconf out there that better

deals with HP-UX 11 or if that might be the way to go.
Comment 1 Kurt Zeilenga 2000-07-30 08:37:19 UTC
changed notes
changed state Open to Closed
Comment 2 Kurt Zeilenga 2000-07-30 15:32:32 UTC
At 05:55 PM 7/28/00 +0000, raj@cup.hp.com wrote:
>Full_Name: rick jones
>Version: 1.2.11
>OS: HP-UX 11.00
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (156.153.255.130)
>
>
>The configure script seems to look for assorted pthread routines with a
>"-kthread."
>mechanism. This -k option is not recognized by the HP-UX linker, and su the
>script
>is unable to find those pthread routines.

This should result in -kthread no being used to select threads.
The configure script should then attempt other flags.  You can
disable the -kthread test:
  env ol_cv_kthread_flag=no ... ./configure ...



>The workaround is to export LIBS=-lpthread,

In general, it is better to force tests to be true or false
then to use LIBS.

Comment 3 OpenLDAP project 2014-08-01 21:06:11 UTC
provided workaround