- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: pthread_create() on Itanium 11.23
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 07:48 AM
тАО02-06-2009 07:48 AM
pthread_create() on Itanium 11.23
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?
Regards, Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 08:34 AM
тАО02-06-2009 08:34 AM
Re: pthread_create() on Itanium 11.23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 08:34 AM
тАО02-06-2009 08:34 AM
Re: pthread_create() on Itanium 11.23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 07:33 PM
тАО02-06-2009 07:33 PM
Re: pthread_create() on Itanium 11.23
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.
You may want to use -mt and let the driver add -lpthread.
>the libc library provides stubs for the pthread functions.
Yes, a patch added that on 11.11. Some stubs will return ENOSYS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2009 07:10 AM
тАО02-09-2009 07:10 AM
Re: pthread_create() on Itanium 11.23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2009 03:24 PM
тАО02-09-2009 03:24 PM
Re: pthread_create() on Itanium 11.23
You should be creating your own thread so you can assign points. You can add an URL to this thread if there is any useful info.
There is nothing to be done on the server, the application is broken and needs to be relinked.
That does "chatr executable" show?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2009 03:29 AM
тАО02-10-2009 03:29 AM
Re: pthread_create() on Itanium 11.23
/usr/lib/dld.sl: Unresolved symbol: U_get_unwind_table (code) from /opt/langtools/lib/libpthread_tr.1
/usr/lib/dld.sl: Unresolved symbol: U_get_unwind_table (code) from /opt/langtools/lib/libpthread_tr.1
/usr/lib/dld.sl: Unresolved symbol: U_get_unwind_table (code) from /opt/langtools/lib/libpthread_tr.1
/usr/lib/dld.sl: Unresolved symbol: U_get_unwind_table (code) from /opt/langtools/lib/libpthread_tr.1
Pid 4074 received a SIGSEGV for stack growth failure.
Possible causes: insufficient memory or swap space,
or stack size exceeded maxssiz.
^CSegmentation fault (core dumped)
I am working on hp_unix 11.11 platform. Please find the code below
#include
#include
#include
#define NUM_THREADS 5
void *PrintHello(void *threadid)
{
long tid;
tid = (long)threadid;
printf("Hello World! It's me, thread #%ld!\n", tid);
pthread_exit(NULL);
}
int main(int argc, char *argv[])
{
pthread_t threads[NUM_THREADS];
int rc;
long t;
for(t=0;t
rc = pthread_create(&threads[t], NULL, NULL, (void *)t);
if (rc){
printf("ERROR; return code from pthread_create() is %d\n", rc);
exit(-1);
}
}
pthread_exit(NULL);
}
Compilation - g++ -lpthread hello.cpp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2009 04:40 AM
тАО02-10-2009 04:40 AM
Re: pthread_create() on Itanium 11.23
Please create your own thread in the "languages and scripting" forum. This is completely unrelated to this thread.