[Techtalk] Glibc Posix Threads Add ons

raen7 at ihug.com.au raen7 at ihug.com.au
Sat Aug 17 20:02:24 EST 2002


Dear TTLcx

Thanks to evyone who gave advice on kio-audio. I have another  sound 
problem.

I am installing Vorbis1.0 on SuSE 7.3. So far Libao, Libogg and 
Libvorbisens are all OK but in vorbis-tools I have hit a Posix thread 
problem at configure, viz.,

lpthreads  1>&5
/usr/i486-suse-linux/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
configure: failed program was:
#line 8310 "configure"
#include "confdefs.h"
#include <pthread.h>
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_cancel(0); pthread_cleanup_pop(0);
; return 0; }
configure:8279: checking whether pthreads work without any flags
configure:8320: gcc -o conftest -O20 -ffast-math -fsigned-char      
conftest.c
 1>&5
/tmp/ccfU3egR.o: In function `main':
/tmp/ccfU3egR.o(.text+0xe): undefined reference to `pthread_join'
/tmp/ccfU3egR.o(.text+0x2b): undefined reference to 
`_pthread_cleanup_push'
/tmp/ccfU3egR.o(.text+0x38): undefined reference to `pthread_create'
/tmp/ccfU3egR.o(.text+0x45): undefined reference to `pthread_cancel'
/tmp/ccfU3egR.o(.text+0x50): undefined reference to 
`_pthread_cleanup_pop'
collect2: ld returned 1 exit status
configure: failed program was:
#line 8310 "configure"
#include "confdefs.h"
#include <pthread.h>
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_cancel(0); pthread_cleanup_pop(0);
; return 0; }
configure:8284: checking whether pthreads work with -Kthread
configure:8320: gcc -o conftest -O20 -ffast-math -fsigned-char  -Kthread  
  conftest.c   1>&5
gcc: unrecognized option `-Kthread'
/tmp/ccKHvYeP.o: In function `main':
/tmp/ccKHvYeP.o(.text+0xe): undefined reference to `pthread_join'
/tmp/ccKHvYeP.o(.text+0x2b): undefined reference to 
`_pthread_cleanup_push'
/tmp/ccKHvYeP.o(.text+0x38): undefined reference to `pthread_create'
/tmp/ccKHvYeP.o(.text+0x45): undefined reference to `pthread_cancel'
/tmp/ccKHvYeP.o(.text+0x50): undefined reference to 
`_pthread_cleanup_pop'

These pthreads are at:

/usr/share/man/man3/pthread_atfork.3thr.gz
/usr/share/man/man3/pthread_attr_destroy.3thr.gz
/usr/share/man/man3/pthread_attr_getdetachstate.3thr.gz
/usr/share/man/man3/pthread_attr_getinheritsched.3thr.gz
/usr/share/man/man3/pthread_attr_getschedparam.3thr.gz
/usr/share/man/man3/pthread_attr_getschedpolicy.3thr.gz
/usr/share/man/man3/pthread_attr_getscope.3thr.gz
/usr/share/man/man3/pthread_attr_init.3thr.gz
/usr/share/man/man3/pthread_attr_setdetachstate.3thr.gz
/usr/share/man/man3/pthread_attr_setinheritsched.3thr.gz
/usr/share/man/man3/pthread_attr_setschedparam.3thr.gz
/usr/share/man/man3/pthread_attr_setschedpolicy.3thr.gz
/usr/share/man/man3/pthread_attr_setscope.3thr.gz
/usr/share/man/man3/pthread_cancel.3thr.gz
/usr/share/man/man3/pthread_cleanup_pop.3thr.gz
/usr/share/man/man3/pthread_cleanup_pop_restore_np.3thr.gz
/usr/share/man/man3/pthread_cleanup_push.3thr.gz
/usr/share/man/man3/pthread_cleanup_push_defer_np.3thr.gz
/usr/share/man/man3/pthread_condattr_destroy.3thr.gz
/usr/share/man/man3/pthread_condattr_init.3thr.gz
/usr/share/man/man3/pthread_cond_broadcast.3thr.gz
/usr/share/man/man3/pthread_cond_destroy.3thr.gz
/usr/share/man/man3/pthread_cond_init.3thr.gz
/usr/share/man/man3/pthread_cond_signal.3thr.gz
/usr/share/man/man3/pthread_cond_timedwait.3thr.gz
/usr/share/man/man3/pthread_cond_wait.3thr.gz
/usr/share/man/man3/pthread_create.3thr.gz
/usr/share/man/man3/pthread_detach.3thr.gz
/usr/share/man/man3/pthread_equal.3thr.gz
/usr/share/man/man3/pthread_exit.3thr.gz
/usr/share/man/man3/pthread_getschedparam.3thr.gz
/usr/share/man/man3/pthread_join.3thr.gz
/usr/share/man/man3/pthread_key_create.3thr.gz
/usr/share/man/man3/pthread_kill.3thr.gz
/usr/share/man/man3/pthread_kill_other_threads_np.3thr.gz
/usr/share/man/man3/pthread_mutexattr_destroy.3thr.gz
/usr/share/man/man3/pthread_mutexattr_getkind_np.3thr.gz
/usr/share/man/man3/pthread_mutexattr_init.3thr.gz
/usr/share/man/man3/pthread_mutexattr_setkind_np.3thr.gz
/usr/share/man/man3/pthread_mutex_destroy.3thr.gz
/usr/share/man/man3/pthread_mutex_init.3thr.gz
/usr/share/man/man3/pthread_mutex_lock.3thr.gz
/usr/share/man/man3/pthread_mutex_trylock.3thr.gz
/usr/share/man/man3/pthread_mutex_unlock.3thr.gz
/usr/share/man/man3/pthread_once.3thr.gz
/usr/share/man/man3/pthread_self.3thr.gz
/usr/share/man/man3/pthread_setcancelstate.3thr.gz
/usr/share/man/man3/pthread_setcanceltype.3thr.gz
/usr/share/man/man3/pthread_setschedparam.3thr.gz
/usr/share/man/man3/pthread_sigmask.3thr.gz
/usr/share/man/man3/pthread_testcancel.3thr.gz

Can anyone help me to introduce these pthreads (add-ons)to Vorbis-tools?

Many thanks,






More information about the Techtalk mailing list