I am trying to compile spcaview on my Kubuntu system. when I try to 'make', I get a series of errors from the included pthread.h:
Code:
gcc -DUSE_SDL -O2 -DLINUX -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_SDL -O2 -DLINUX -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o spcaview.o spcaview.c
In file included from spcaview.c:32:
/usr/include/pthread.h:285: error: conflicting types for ‘pthread_t’
/usr/include/bits/pthreadtypes.h:36: error: previous declaration of ‘pthread_t’ was here
/usr/include/pthread.h:286: error: conflicting types for ‘pthread_attr_t’
/usr/include/bits/pthreadtypes.h:43: error: previous declaration of ‘pthread_attr_t’ was here
/usr/include/pthread.h:287: error: conflicting types for ‘pthread_key_t’
/usr/include/bits/pthreadtypes.h:109: error: previous declaration of ‘pthread_key_t’ was here
/usr/include/pthread.h:289: error: conflicting types for ‘pthread_mutexattr_t’
/usr/include/bits/pthreadtypes.h:79: error: previous declaration of ‘pthread_mutexattr_t’ was here
/usr/include/pthread.h:290: error: conflicting types for ‘pthread_mutex_t’
/usr/include/bits/pthreadtypes.h:73: error: previous declaration of ‘pthread_mutex_t’ was here
/usr/include/pthread.h:291: error: conflicting types for ‘pthread_condattr_t’
/usr/include/bits/pthreadtypes.h:105: error: previous declaration of ‘pthread_condattr_t’ was here
/usr/include/pthread.h:292: error: conflicting types for ‘pthread_cond_t’
/usr/include/bits/pthreadtypes.h:99: error: previous declaration of ‘pthread_cond_t’ was here
/usr/include/pthread.h:293: error: conflicting types for ‘pthread_rwlockattr_t’
/usr/include/bits/pthreadtypes.h:142: error: previous declaration of ‘pthread_rwlockattr_t’ was here
/usr/include/pthread.h:294: error: conflicting types for ‘pthread_rwlock_t’
/usr/include/bits/pthreadtypes.h:136: error: previous declaration of ‘pthread_rwlock_t’ was here
make: *** [spcaview.o] Error 1
I get similar results when trying to build other software that uses pthread.
I have searched both this forum and the web, without really getting anything useful.
Anyone seen similar problems before?