public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/13185] New: Parse error in pthread.h
@ 2003-11-25  8:00 oswald dot klackl at bs-ag dot com
  2003-11-25  8:05 ` [Bug c/13185] " pinskia at gcc dot gnu dot org
  2003-11-30  8:14 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: oswald dot klackl at bs-ag dot com @ 2003-11-25  8:00 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c/13185] Parse error in pthread.h
  2003-11-25  8:00 [Bug c/13185] New: Parse error in pthread.h oswald dot klackl at bs-ag dot com
@ 2003-11-25  8:05 ` pinskia at gcc dot gnu dot org
  2003-11-30  8:14 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-25  8:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-25 08:05 -------
Most likely not GCC's fault (as it looks like pthread_rwlock_t is not being declared any where but 
since there is no preprocessed source, I cannot tell).


Can you provide the preprocessed source file (read <http://gcc.gnu.org/bugs.html> for more 
help).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13185


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c/13185] Parse error in pthread.h
  2003-11-25  8:00 [Bug c/13185] New: Parse error in pthread.h oswald dot klackl at bs-ag dot com
  2003-11-25  8:05 ` [Bug c/13185] " pinskia at gcc dot gnu dot org
@ 2003-11-30  8:14 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-30  8:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-30 08:14 -------
Invalid as compiling gcc will cause the inclusion of pthread.h so something is wrong with 
the sources you are using.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13185


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-11-30  8:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-25  8:00 [Bug c/13185] New: Parse error in pthread.h oswald dot klackl at bs-ag dot com
2003-11-25  8:05 ` [Bug c/13185] " pinskia at gcc dot gnu dot org
2003-11-30  8:14 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).