1753607 Members
6057 Online
108797 Solutions
New Discussion юеВ

Re: pthread support

 
SOLVED
Go to solution
Randy_9
Regular Advisor

pthread support

One of our developers, working on a 10.20
system (aCC++ A.01.15) is asking me the following question (as if I have a clue), I've
also attached a file documenting the error he is seeing:


Developers question?

Is there a different lib we should be using for pthread support for Native compiler environment.
Is C context significant to mangled names (we saw that issue, with SAS, it does)
We are seeking mangled names that seem not to exist in the CMS lib we use.


Thanks for your help,

Randy
3 REPLIES 3
H.Merijn Brand (procura
Honored Contributor
Solution

Re: pthread support

From my entry in perl's README.hpux:

--8<---
=head2 Threaded Perl on HP-UX

It is possible to compile a version of threaded Perl on any version of
HP-UX before 10.30, but it is strongly suggested that you be running on
HP-UX 11.00 at least.

To compile Perl with threads, add -Dusethreads to the arguments of
Configure. Verify that the -D_POSIX_C_SOURCE=199506L compiler flag is
automatically added to the list of flags. Also make sure that -lpthread
is listed before -lc in the list of libraries to link Perl with. The
hints provided for HP-UX during Configure will try very hard to get
this right for you.

HP-UX versions before 10.30 require a separate installation of a POSIX
threads library package. Two examples are the HP DCE package, available
on "HP-UX Hardware Extensions 3.0, Install and Core OS, Release 10.20,
April 1999 (B3920-13941)" or the Freely available PTH package, available
though worldwide HP-UX mirrors of precompiled packages
(e.g. http://hpux.tn.tudelft.nl/hppd/hpux/)

If you are going to use the HP DCE package, the library used for threading
is /usr/lib/libcma.sl, but there have been multiple updates of that
library over time. Perl will build with the first version, but it
will not pass the test suite. Older Oracle versions might be a compelling
reason not to update that library, otherwise please find a newer version
in one of the following patches: PHSS_19739, PHSS_20608, or PHSS_23672

reformatted output:

reformatted output:

d3:/usr/lib 106 > what libcma-*.1
libcma-00000.1:
HP DCE/9000 1.5 Module: libcma.sl (Export)
Date: Apr 29 1996 22:11:24
libcma-19739.1:
HP DCE/9000 1.5 PHSS_19739-40 Module: libcma.sl (Export)
Date: Sep 4 1999 01:59:07
libcma-20608.1:
HP DCE/9000 1.5 PHSS_20608 Module: libcma.1 (Export)
Date: Dec 8 1999 18:41:23
libcma-23672.1:
HP DCE/9000 1.5 PHSS_23672 Module: libcma.1 (Export)
Date: Apr 9 2001 10:01:06
d3:/usr/lib 107 >
Enjoy, Have FUN! H.Merijn
Jeff Billman
Frequent Advisor

Re: pthread support

What library are you linking with? Under 10.20 you would need to use libcma to get user thread support.

Also make sure you are programming to the 10.20 thread API's. 11.0 and later support POSIX threads which is a later implementation of threads on HP-UX.
Randy_9
Regular Advisor

Re: pthread support

Per my deleoper, he seems to be alright now.
I want to thanks everyone for your help.

Developers Reply this morning:

We determined that we did not need the initializers that was causing the problem to be apparent,

A difference in implementation between GNU and Native compilers.

We therefore changed the code, removing the old GNU style interfaces, the Native compiler took care of it.

So we can ignore this problem. (at this time and hopefully we won't need it later either).


Randy