Operating System - HP-UX
1833176 Members
3051 Online
110051 Solutions
New Discussion

Re: Problem with pthreads on hp-ux 10.20

 
Sonison James
Frequent Advisor

Problem with pthreads on hp-ux 10.20

Hello,

I am having some problem with compiling HP-UX 11i code on 10.20. I followed some pthread realted posts here and found that I need to use DCE threads. I found the dce libs (and also cma libs) but I am not able to find pthread.h. Due to some reason (at least for some time) I will not be able to install these tools from the OS CDs. Could you please let me know what I am missing and if possible any site from where I can download the libs and the headers.

Thanks and regards
Sonison James
3 REPLIES 3
James Lynch
Valued Contributor

Re: Problem with pthreads on hp-ux 10.20

On HP-UX 10.20 you need to make sure that the DCE-CoreTools product is installed as well as the the following sub-products:
Development
DCE-BPRG
Files

This software can be found on the Operating System (OS) core media.

see the following link for more details: http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066921263

JL
Wild turkey surprise? I love wild turkey surprise!
Umapathy S
Honored Contributor

Re: Problem with pthreads on hp-ux 10.20

10.2 kernel is not multithreaded. So you need dce which has the user level threads implementation. The libdce.a/sl has those pthread library implemetations.

You need
DCE-Core and DCE-CoreTools atleast. Normally it comes with the OS and installed as part of OS. Check for /opt/dce. pthread.h is in /opt/dce/include.

You may need to rewrite code also as some API signatures vary.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Sonison James
Frequent Advisor

Re: Problem with pthreads on hp-ux 10.20

Hello James and Umapathy,

Thanks for the info.