Operating System - HP-UX
1832872 Members
2762 Online
110048 Solutions
New Discussion

Re: pthread problem on itanium

 
Alok Chugh
New Member

pthread problem on itanium

Hello,

I am facing a problem in my code while migrating to HP11iv2 Itanium env. On a pthread_create() call I get the return value 251. And the desired thread fails to spawn. Could somebody help me out on this. What could be the problem missing patch etc.?

Thanks very much,
Alok
5 REPLIES 5
Muthukumar_5
Honored Contributor

Re: pthread problem on itanium

251 error is nothing but,

#define ENOSYS 251 /* Function not implemented */

Did you include -lpthread library during compilation??

hth.
Easy to suggest when don't know about the problem!
RAC_1
Honored Contributor

Re: pthread problem on itanium

The OS error 251 is as follows.

#define ENOSYS 251 /* Function not implemented */

what are you kernel settings for max_thread_proc and nkthread??
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: pthread problem on itanium

Similar problem,

http://h21007.www2.hp.com/dspp/ml/showArchiveMessage/1,,24!00!01!0025,00.html

It is better to post this question into cxx-dev list sponsored by HP.

http://h21007.www2.hp.com/dspp/comm/comm_Community_Home_IDX/1,1273,,00.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Alok Chugh
New Member

Re: pthread problem on itanium

Hi,

Thanks for the reply. The kernel parameters for my system are :

max_thread_proc - 3000
nkthread - 8416

The link line for generating the shared library is :

/opt/aCC/bin/aCC -b +DD64 -AP -DPTHREAD_COMPAT_MODE -Wl,+e,AgentApi_I
nit, -Wl ,+e,__StaticCtorTable_Start,+e,__ZStaticCtorTable_End,+e,__StaticCtorTable_End,+e,__ZStaticCtorTable_Start,+e,_shlInit -o mylib.so AgentAPI.o WinRegistry.o AgentConfig.o -lstd -lstream -lCsup -lunwind -lm -lnsl -lpthread

Do you see something fishy here..

Thanks very much,
Alok

Arunvijai_4
Honored Contributor

Re: pthread problem on itanium

I dont see anything fishy out there. As i said, HP's C++ dev-list is most active and you can get good answers' there.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"