- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pthread and compile error
Operating System - HP-UX
1754371
Members
3244
Online
108813
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
09-26-2005 06:50 PM
09-26-2005 06:50 PM
pthread and compile error
Platform: Dec Alpha v5.1
Had written an application using POSIX thread. Eventhough I had include the required -pthread flag into the C compiler (cc), the compiler complains the following error.
cc: Error: /usr/include/pthread.h, line 971: Ill-formed parameter type list. (parmtyplist)
typedef void __pthreadExtDestructorFunc_t (void*, pthread_t, pthread_key_t);
-----------------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1277: Error parsing parameter list. Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_mutex_setprioceiling (pthread_mutex_t*, int, int*);
--------------------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1303: Error parsing parameter list. Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_condattr_init (pthread_condattr_t*);
----------------------------------------------------^
(pls ignore the error point --^)
and many other pthread_ type having the similar error message. From the error message, seem that these pthread_ types are not define.
Think the C compiler in DEC v5.1 support threaded program, as the manual mention the -pthread flag.
Had read newsgroups and DCEThread guide, but found nothing useful.
Would appreciate your diagnotics and hint to resolve it. Thanking in advance
Had written an application using POSIX thread. Eventhough I had include the required -pthread flag into the C compiler (cc), the compiler complains the following error.
cc: Error: /usr/include/pthread.h, line 971: Ill-formed parameter type list. (parmtyplist)
typedef void __pthreadExtDestructorFunc_t (void*, pthread_t, pthread_key_t);
-----------------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1277: Error parsing parameter list. Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_mutex_setprioceiling (pthread_mutex_t*, int, int*);
--------------------------------------------------------^
cc: Error: /usr/include/pthread.h, line 1303: Error parsing parameter list. Found "*" when expecting one of: ",", ")". (notexpecting)
extern int pthread_condattr_init (pthread_condattr_t*);
----------------------------------------------------^
(pls ignore the error point --^)
and many other pthread_ type having the similar error message. From the error message, seem that these pthread_ types are not define.
Think the C compiler in DEC v5.1 support threaded program, as the manual mention the -pthread flag.
Had read newsgroups and DCEThread guide, but found nothing useful.
Would appreciate your diagnotics and hint to resolve it. Thanking in advance
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 09:51 PM
09-26-2005 09:51 PM
Re: pthread and compile error
Besides -pthread option in compiler and linker as describe in newsgroup and DECthread manual i added following to compiler flag to resolve my compilation error,
-D_POSIX_C_SOURCE=199506L
I found useful explanation in /usr/include/pthread.h
-D_POSIX_C_SOURCE=199506L
I found useful explanation in /usr/include/pthread.h
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP