Author |
Message |
kijjaz
Joined: Sep 20, 2004 Posts: 765 Location: bangkok, thailand
Audio files: 4
|
Posted: Thu Aug 30, 2007 3:50 pm Post subject:
Error compiling ChucK on linux, pthread problem Subject description: I guess there's a problem on my linux box. |
|
|
Today I'm compiling the new ChucK on my Ubuntu Linux notebook..
but I found this error:
Code: | $ make linux-alsa
make -f makefile.alsa
make[1]: Entering directory `/home/kijjaz/download/source/chuck-1.2.1.0/src'
bison -dv -b chuck chuck.y
cc -D__LINUX_ALSA__ -c -O3 -D__CK_SNDFILE_NATIVE__ chuck.tab.c
flex -ochuck.yy.c chuck.lex
cc -D__LINUX_ALSA__ -c -O3 -D__CK_SNDFILE_NATIVE__ chuck.yy.c
g++ -D__LINUX_ALSA__ -c -O3 -D__CK_SNDFILE_NATIVE__ chuck_absyn.cpp
g++ -D__LINUX_ALSA__ -c -O3 -D__CK_SNDFILE_NATIVE__ chuck_parse.cpp
/usr/include/pthread.h:285: error: conflicting declaration ‘typedef struct pthread_st* pthread_t’
/usr/include/bits/pthreadtypes.h:36: error: ‘pthread_t’ has a previous declaration as ‘typedef long unsigned int pthread_t’
/usr/include/pthread.h:286: error: conflicting declaration ‘typedef struct pthread_attr_st* pthread_attr_t’
/usr/include/bits/pthreadtypes.h:43: error: ‘pthread_attr_t’ has a previous declaration as ‘typedef union pthread_attr_t pthread_attr_t’
/usr/include/pthread.h:287: error: conflicting declaration ‘typedef int pthread_key_t’
/usr/include/bits/pthreadtypes.h:109: error: ‘pthread_key_t’ has a previous declaration as ‘typedef unsigned int pthread_key_t’
/usr/include/pthread.h:289: error: conflicting declaration ‘typedef int pthread_mutexattr_t’
/usr/include/bits/pthreadtypes.h:79: error: ‘pthread_mutexattr_t’ has a previous declaration as ‘typedef union pthread_mutexattr_t pthread_mutexattr_t’
/usr/include/pthread.h:290: error: conflicting declaration ‘typedef struct pthread_mutex_st* pthread_mutex_t’
/usr/include/bits/pthreadtypes.h:73: error: ‘pthread_mutex_t’ has a previous declaration as ‘typedef union pthread_mutex_t pthread_mutex_t’
/usr/include/pthread.h:291: error: conflicting declaration ‘typedef int pthread_condattr_t’
/usr/include/bits/pthreadtypes.h:105: error: ‘pthread_condattr_t’ has a previous declaration as ‘typedef union pthread_condattr_t pthread_condattr_t’
/usr/include/pthread.h:292: error: conflicting declaration ‘typedef struct pthread_cond_st* pthread_cond_t’
/usr/include/bits/pthreadtypes.h:99: error: ‘pthread_cond_t’ has a previous declaration as ‘typedef union pthread_cond_t pthread_cond_t’
/usr/include/pthread.h:293: error: conflicting declaration ‘typedef int pthread_rwlockattr_t’
/usr/include/bits/pthreadtypes.h:142: error: ‘pthread_rwlockattr_t’ has a previous declaration as ‘typedef union pthread_rwlockattr_t pthread_rwlockattr_t’
/usr/include/pthread.h:294: error: conflicting declaration ‘typedef struct pthread_rwlock_st* pthread_rwlock_t’
/usr/include/bits/pthreadtypes.h:136: error: ‘pthread_rwlock_t’ has a previous declaration as ‘typedef union pthread_rwlock_t pthread_rwlock_t’
make[1]: *** [chuck_parse.o] Error 1
make[1]: Leaving directory `/home/kijjaz/download/source/chuck-1.2.1.0/src'
make: [linux-alsa] Error 2 (ignored) |
It also happens with older ChucK.
But ChucK compiles well on other Linux machine,
so it's not ChucK source's problem,
but can anyone point out what should I do to fix?
I just can't figure out how to fix.
Thank you. |
|
Back to top
|
|
|
kijjaz
Joined: Sep 20, 2004 Posts: 765 Location: bangkok, thailand
Audio files: 4
|
Posted: Thu Aug 30, 2007 3:54 pm Post subject:
|
|
|
I finally got in compiled successfully after doing this:
Code: | The following packages will be REMOVED:
libpthread-dev* libpthread-stubs0* libpthread-stubs0-dev* libpthread20* |
Cheers, folks -_-" i'm such a linux newbie I didn't know what I did hahhaha. |
|
Back to top
|
|
|
|