Hi,
we have a problem regarding the /usr/include/pthread.h file when using it
with the gnu-gcc/g++-compiler version 2.95.2 (installp from bull).
The preprocessor (cpp) responds with following warnings:
/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'
And compilation will abort when one of these defines is used.
These defines has changed from
#define PTHREAD_ONCE_INIT {0,\
0,\
to this in 4.3.3.3
#define PTHREAD_MUTEX_INITIALIZER\
{\
0, /* no waiters */\
0, /* no waiters */\
There are no blanks anymore...
IBM Software Support USA says: It's a Gnu-C-compiler problem.
A fix is to add 4 blanks to the code.
But on all our machines it much work. IBM will not fix it.
Has anyone an idea how to solve this problem?
With kind regards
Stefan Kirchberg
Medat Computer-Systeme GmbH