This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/13185] New: Parse error in pthread.h
- From: "oswald dot klackl at bs-ag dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Nov 2003 08:00:12 -0000
- Subject: [Bug c/13185] New: Parse error in pthread.h
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I use gcc instead of the IBM-xlC-Compiler to build the IBM-Workload-Driver for
CICS. All C-programs where delivered by IBM.
On compiling I get the following error-messages:
In file included from epiload_int.h:57,
from epiload_addTerminal.c:62:
/usr/include/pthread.h:554: error: parse error before '*' token
/usr/include/pthread.h:558: error: parse error before '*' token
/usr/include/pthread.h:561: error: parse error before '*' token
/usr/include/pthread.h:564: error: parse error before '*' token
/usr/include/pthread.h:567: error: parse error before '*' token
/usr/include/pthread.h:570: error: parse error before '*' token
/usr/include/pthread.h:573: error: parse error before '*' token
/usr/include/pthread.h:576: error: parse error before '*' token
/usr/include/pthread.h:580: error: parse error before '*' token
/usr/include/pthread.h:583: error: parse error before '*' token
/usr/include/pthread.h:587: error: parse error before '*' token
make: 1254-004 The error code from the last command is 1.
The incorrect lines in pthread.h are:
<<<<<<<<<< Line 547 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
/* -----------------------------------------------------------------------------
* Read / Write Lock
*/
#ifndef _AIX_PTHREADS_D7
#if (_XOPEN_SOURCE >= 500)
extern int
pthread_rwlock_destroy __((pthread_rwlock_t *));
extern int
pthread_rwlock_init __((pthread_rwlock_t *__restrict__,
const pthread_rwlockattr_t *__restrict__));
extern int
pthread_rwlock_rdlock __((pthread_rwlock_t *));
extern int
pthread_rwlock_tryrdlock __((pthread_rwlock_t *));
extern int
pthread_rwlock_trywrlock __((pthread_rwlock_t *));
extern int
pthread_rwlock_unlock __((pthread_rwlock_t *));
extern int
pthread_rwlock_wrlock __((pthread_rwlock_t *));
extern int
pthread_rwlockattr_destroy __((pthread_rwlockattr_t *));
extern int
pthread_rwlockattr_getpshared __((const pthread_rwlockattr_t *__restrict__,
int *__restrict__));
extern int
pthread_rwlockattr_init __((pthread_rwlockattr_t *));
extern int
pthread_rwlockattr_setpshared __((pthread_rwlockattr_t *,
int));
#endif /* _XOPEN_SOURCE >= 500 */
<<<<<<<<<< Line 589 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
--
Summary: Parse error in pthread.h
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: oswald dot klackl at bs-ag dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13185