Bug 135119 - portaudio library needs to link with -lpthread
Bug#: 135119 Product:  Gentoo Linux Version: 2006.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: sound@gentoo.org Reported By: h.mth@web.de
Component: Ebuilds
URL: 
Summary: portaudio library needs to link with -lpthread
Keywords:  
Status Whiteboard: 
Opened: 2006-06-01 02:08 0000
Description:   Opened: 2006-06-01 02:08 0000
... otherwise, for example a configure check without LIBS="-lpthread", fails
with undefined references to pthread_* functions.

(Like -lxml2 pulls in -lz automagically.)

Please fix this. Thanks!

------- Comment #1 From Jakub Moc (RETIRED) 2006-06-01 02:19:03 0000 -------
*** Bug 135120 has been marked as a duplicate of this bug. ***

------- Comment #2 From Hanno Meyer-Thurow 2006-07-12 10:21:50 0000 -------
Created an attachment (id=91580) [details]
link libportaudio.so to LIBS

------- Comment #3 From Hanno Meyer-Thurow 2006-08-21 14:43:39 0000 -------
Is there any reason not to apply this fix?

------- Comment #4 From William Hubbs 2006-09-13 16:28:36 0000 -------
I am also intrested in seeing this fixed; I have a software speech synthesizer
that uses portaudio which I want to put in portage, but I can't get it to link
due to this same error.  Thanks.

------- Comment #5 From Andreas Proschofsky 2006-09-14 02:22:50 0000 -------
We would also need this soonish as the upcoming version of openoffice is going
to use portaudio from system and suffers from the same problem. As the fix is
trivial enough, could someone please go ahead and commit it?

------- Comment #6 From William Hubbs 2006-09-28 16:29:17 0000 -------
Can someone who is a maintainer for the sound herd give an update for this?  

Thanks much.

------- Comment #7 From Paul Bredbury 2006-10-12 05:16:58 0000 -------
This patch to portaudio is necessary for *espeak*-1.16 to compile, otherwise it
moans about pthreads:

/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libportaudio.so: undefined
reference to `pthread_create'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libportaudio.so: undefined
reference to `pthread_cancel'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libportaudio.so: undefined
reference to `pthread_kill'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libportaudio.so: undefined
reference to `pthread_join'

------- Comment #8 From Alexis Ballier 2006-10-22 07:57:19 0000 -------
This has been fixed in portaudio-18.1-r5. Thanks for your help there.