Issue 139 - Digital UNIX changes
Summary: Digital UNIX changes
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: 1999-04-27 02:02 UTC by karl@matthias.org
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 karl@matthias.org 1999-04-27 02:02:16 UTC
Full_Name: Karl N. Matthias
Version: 1.2.1 Full Release
OS: Digital UNIX 4.0E
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (24.93.105.204)


It's not a problem, per se.  I just thought you would appreciate knowing that
the
software doesn't compile out of the box, and thought I would tell you what I did
to
get it to compile.

First, it requires the use of the system 'cc' compiler as gcc has some issues
with a
few of the system headers which are required for this code.

Second, it misconfigures and believes that certain of the POSIX thread functions
are
not found or not working.  I hacked configure to not really check for these and
was
able to get it working.

Third it doesn't know to link in some of the appropriate libraries for Digital
UNIX.
I supplemented the line containing -lpthreads in each Makefile with the
following:
-lpthread -lpthreads -lmach -lexc -lc        as per the Digital web site.  You
can
find more information if you are interested at:
http://www.unix.digital.com/faqs/publications/base_doc/DOCUMENTATION/HTML/AA-Q2DPC-TKT1_html/thrd00001.html

Otherwise the compile ran without a hitch.

Thanks!

Karl
Comment 1 Kurt Zeilenga 1999-04-27 02:40:15 UTC
At 02:02 AM 4/27/99 GMT, you wrote:
>It's not a problem, per se.  I just thought you would appreciate knowing that
>the
>software doesn't compile out of the box, and thought I would tell you what I did
>to
>get it to compile.

We know.  configure requires help on some systems.  Per our FAQ
(http://www.openldap.org/faq/index.cgi?file=89), you might try:

	CC=cc CFLAGS=-pthread ./configure

Should do the trick under Digital Unix (or whatever it's called this week).

We currently testing a new pthread tests which should minimize the amount
of hinting required.

>First, it requires the use of the system 'cc' compiler as gcc has some issues
>with a few of the system headers which are required for this code.

Under -devel, we are experimenting with not promoting CC to gcc when undefined.

>Second, it misconfigures and believes that certain of the POSIX thread functions
>are not found or not working.  I hacked configure to not really check for these and
>was able to get it working.

We currently testing a new pthread tests which should minimize the amount
of hinting required.

>Third it doesn't know to link in some of the appropriate libraries for Digital
>UNIX.
>I supplemented the line containing -lpthreads in each Makefile with the
>following:
>-lpthread -lpthreads -lmach -lexc -lc        as per the Digital web site.  You
>can
>find more information if you are interested at:
>http://www.unix.digital.com/faqs/publications/base_doc/DOCUMENTATION/HTML/AA-Q2DPC-TKT1_html/thrd00001.html

I recommend using compiler flags (-pthread under Digital Unix) instead
of specifying libraries.

Kurt

Comment 2 Kurt Zeilenga 1999-04-27 03:07:35 UTC
changed notes
changed state Open to Closed
Comment 3 OpenLDAP project 2014-08-01 21:06:07 UTC
FAQ already has hint.