pthread_create() on Itanium 11.23

Hello,

I have a program that runs on PA-RISC HPUX, AIX, and Solaris that uses threads for communications. I call pthread_create() to get things going. I recently ported this code to HPUX 11.23 Itanium, and when I make the call to pthread_create(), I receive the return code of 251 - "function not implemented".

Does anyone know if/when the pthread functions will be available on Itanium or if I need to use a different threading library?

Re: pthread_create() on Itanium 11.23

This is resolved. I needed to change the link order of the -lpthread and remove the explicit link of -lc. The aCC compiler will add the -lc at the end of the link. By default, the libc library provides stubs for the pthread functions.

Re: pthread_create() on Itanium 11.23

Re: pthread_create() on Itanium 11.23

>I needed to change the link order of the -lpthread and remove the explicit link of -lc.

Right. The latest compiler will now warn if you attempt to add one of the default shlibs:aCC: warning 983: The -lc library specified on the command line is also added automatically by the compiler driver.