| #define HAVE_SPEEX 1 | /* end confdefs.h. */ | #include | int | main () | { | pthread_t th; pthread_join(th, 0); | pthread_attr_init(0); pthread_cleanup_push(0, 0); | pthread_create(0,0,0,0); pthread_cleanup_pop(0); | ; | return 0; | } configure:22870: result: no configure:22800: checking for the pthreads library -lpthread configure:22838: gcc -o conftest -g -O2 conftest.c -lpthread >&5 In file included from /usr/local/include/bits/mutex.h:31, from /usr/local/include/pthread/pthread.h:295, from /usr/local/include/pthread.h:2, from conftest.c:52: /usr/local/include/bits/spin-lock.h:24:57: error: machine-lock.h: No such file or directory In file included from /usr/local/include/bits/mutex.h:31, from /usr/local/include/pthread/pthread.h:295, from /usr/local/include/pthread.h:2, from conftest.c:52: /usr/local/include/bits/spin-lock.h:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__pthread_spinlock_t' /usr/local/include/bits/spin-lock.h:33:2: error: #error __SPIN_LOCK_INITIALIZER undefined: should be defined by . In file included from /usr/local/include/bits/mutex.h:31, from /usr/local/include/pthread/pthread.h:295, from /usr/local/include/pthread.h:2, from conftest.c:52: /usr/local/include/bits/spin-lock.h:47: error: expected ')' before '*' token /usr/local/include/bits/spin-lock.h:50: error: expected ')' before '*' token /usr/local/include/bits/spin-lock.h:55: error: expected ')' before '*' token /usr/local/include/bits/spin-lock.h:59: error: expected ')' before '*' token /usr/local/include/bits/spin-lock.h:65: error: expected ')' before '*' token /usr/local/include/bits/spin-lock.h:68: error: expected ')' before '*' token /usr/local/include/bits/spin-lock.h:73: error: expected ')' before '*' token /usr/local/include/bits/spin-lock.h:74: error: expected ')' before '*' token /usr/local/include/bits/spin-lock.h:77: error: expected ')' before '*' token /usr/local/include/bits/spin-lock.h:84: error: expected ')' before '*' token /usr/local/include/bits/spin-lock.h:87: error: expected ')' before '*' token In file included from /usr/local/include/pthread/pthread.h:295, from /usr/local/include/pthread.h:2, from conftest.c:52: /usr/local/include/bits/mutex.h:37: error: expected specifier-qualifier-list before '__pthread_spinlock_t' In file included from /usr/local/include/pthread/pthread.h:295, from /usr/local/include/pthread.h:2, from conftest.c:52: /usr/local/include/bits/mutex.h: In function 'pthread_mutex_init': /usr/local/include/bits/mutex.h:75: error: '__SPIN_LOCK_INITIALIZER' undeclared (first use in this function) /usr/local/include/bits/mutex.h:75: error: (Each undeclared identifier is reported only once /usr/local/include/bits/mutex.h:75: error: for each function it appears in.) /usr/local/include/bits/mutex.h: In function 'pthread_mutex_destroy': /usr/local/include/bits/mutex.h:92: error: 'struct __pthread_mutex' has no member named 'attr' /usr/local/include/bits/mutex.h:92: error: 'struct __pthread_mutex' has no member named 'data' /usr/local/include/bits/mutex.h: In function '__pthread_mutex_lock': /usr/local/include/bits/mutex.h:103: error: 'struct __pthread_mutex' has no member named 'attr' /usr/local/include/bits/mutex.h:104: error: 'struct __pthread_mutex' has no member named 'data' /usr/local/include/bits/mutex.h:105: error: 'struct __pthread_mutex' has no member named '__held' /usr/local/include/bits/mutex.h: In function '__pthread_mutex_trylock': /usr/local/include/bits/mutex.h:116: error: 'struct __pthread_mutex' has no member named 'attr' /usr/local/include/bits/mutex.h:117: error: 'struct __pthread_mutex' has no member named 'data' /usr/local/include/bits/mutex.h:118: error: 'struct __pthread_mutex' has no member named '__held' In file included from /usr/local/include/pthread/pthread.h:371, from /usr/local/include/pthread.h:2, from conftest.c:52: /usr/local/include/bits/condition.h: At top level: /usr/local/include/bits/condition.h:28: error: expected specifier-qualifier-list before '__pthread_spinlock_t' In file included from /usr/local/include/pthread.h:2, from conftest.c:52: /usr/local/include/pthread/pthread.h:410: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pthread_spinlock_t' /usr/local/include/pthread/pthread.h:415: error: expected ')' before '*' token /usr/local/include/pthread/pthread.h:419: error: expected ')' before '*' token /usr/local/include/pthread/pthread.h:423: error: expected ')' before '*' token /usr/local/include/pthread/pthread.h:427: error: expected ')' before '*' token /usr/local/include/pthread/pthread.h:430: error: expected ')' before '*' token /usr/local/include/pthread/pthread.h:435: error: expected ')' before '*' token /usr/local/include/pthread/pthread.h:441: error: expected ')' before '*' token /usr/local/include/pthread/pthread.h:447: error: expected ')' before '*' token /usr/local/include/pthread/pthread.h:453: error: expected ')' before '*' token /usr/local/include/pthread/pthread.h:459: error: expected ')' before '*' token In file included from /usr/local/include/pthread/pthread.h:496, from /usr/local/include/pthread.h:2, from conftest.c:52: /usr/local/include/bits/rwlock.h:32: error: expected specifier-qualifier-list before '__pthread_spinlock_t' /usr/local/include/bits/rwlock.h: In function 'pthread_rwlock_init': /usr/local/include/bits/rwlock.h:50: error: '__SPIN_LOCK_INITIALIZER' undeclared (first use in this function) /usr/local/include/bits/rwlock.h: In function 'pthread_rwlock_destroy': /usr/local/include/bits/rwlock.h:66: error: 'struct __pthread_rwlock' has no member named '__attr' /usr/local/include/bits/rwlock.h:67: error: 'struct __pthread_rwlock' has no member named '__data' In file included from /usr/local/include/pthread/pthread.h:596, from /usr/local/include/pthread.h:2, from conftest.c:52: /usr/local/include/bits/barrier.h: At top level: /usr/local/include/bits/barrier.h:28: error: expected specifier-qualifier-list before '__pthread_spinlock_t' In file included from /usr/local/include/pthread/pthread.h:641, from /usr/local/include/pthread.h:2, from conftest.c:52: /usr/local/include/bits/once.h:28: error: expected specifier-qualifier-list before '__pthread_spinlock_t' configure:22844: $? = 1 configure: failed program was: | /* confdefs.h. */