AIX 4.3.3 pthread.h and proc.h errors
Vincent Castellano
gvcastellano@hotmail.com
Sat Dec 11 12:10:00 GMT 1999
The following simple c program produces warnings (pthread.h) and
errors (proc.h) when compiled on AIX V4.3.3.
Using gcc 2.95.2, build on AIX 4.3.3.
For cpp output, download ftp://pebbles.ocsystems.com/private/gcc/t.i
Line 203 of proc.h is:
crid_t p_crid; /* CRID of process */
(part of a struct def'n). sys/types/.h has
typedef int crid_t;
which is not copied into the gcc include dir. class_id_t
has the same problem.
In pthread.h, the problematic contructs are of the form:
#define PTHREAD_COND_INITIALIZER\
{\
0, /* not yet in cond list */\
0, /* not yet in cond list */\
0, /* not locked */\
...
$ cat t.c
#include <pthread.h>
#include <sys/proc.h>
int main () {}
$ gcc t.c
In file included from t.c:1:
/usr/include/pthread.h:113: warning: missing white space after `#define
PTHREAD_MUTEX_INITIALIZER'
/usr/include/pthread.h:128: warning: missing white space after `#define
PTHREAD_COND_INITIALIZER'
/usr/include/pthread.h:147: warning: missing white space after `#define
PTHREAD_RWLOCK_INITIALIZER'
/usr/include/pthread.h:157: warning: missing white space after `#define
PTHREAD_ONCE_INIT'
In file included from /usr/include/sys/pri.h:29,
from /usr/include/sys/sched.h:38,
from /usr/include/sched.h:52,
from /usr/include/pthread.h:43,
from t.c:1:
/usr/include/sys/proc.h:203: parse error before `crid_t'
/usr/include/sys/proc.h:203: warning: no semicolon at end of struct or union
/usr/include/sys/proc.h:212: parse error before `p_class'
/usr/include/sys/proc.h:212: warning: data definition has no type or storage
class
/usr/include/sys/proc.h:349: parse error before `}'
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
More information about the Gcc-bugs
mailing list