electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
Error compiling ChucK on linux, pthread problem
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
kijjaz



Joined: Sep 20, 2004
Posts: 765
Location: bangkok, thailand
Audio files: 4

PostPosted: 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.
Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
kijjaz



Joined: Sep 20, 2004
Posts: 765
Location: bangkok, thailand
Audio files: 4

PostPosted: Thu Aug 30, 2007 3:54 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use