[pulseaudio-tickets] [PulseAudio] #152: PulseAudio 0.97 refuses to link on Centos-4.5 (undefined reference to `_tls_get_addr')

PulseAudio trac-noreply at tango.0pointer.de
Fri Nov 9 17:46:46 PST 2007


#152: PulseAudio 0.97 refuses to link on Centos-4.5 (undefined reference to
`_tls_get_addr')
---------------------+------------------------------------------------------
  Reporter:  al3x    |       Owner:  lennart                              
      Type:  defect  |      Status:  new                                  
  Priority:  normal  |   Milestone:                                       
 Component:  daemon  |    Severity:  major                                
Resolution:          |    Keywords:  ___tls_get_addr,pa_thread_mq_install,
---------------------+------------------------------------------------------
Comment (by bunjiboys):

 I had the same problem on a Debian 4.0. After a LOT of googling i found a
 solution that allowed me to compile it properly. The problems is that
 there are some options passed to the linker which makes it croak on this
 error (-Wl,-no-undefined). So what you can do is to tell the linker to
 ignore this but changing /usr/lib/libc.so (this is a text file). Normally
 the content would be something like:
 {{{
 /* GNU ld script
    Use the shared library, but some functions are only in
    the static library, so try that secondarily.  */
 OUTPUT_FORMAT(elf32-i386)
 GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )
 }}}
 You now change it to:
 {{{
 /* GNU ld script
    Use the shared library, but some functions are only in
    the static library, so try that secondarily.  */
 OUTPUT_FORMAT(elf32-i386)
 GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld-
 linux.so.2 ) )
 }}}
 If you are running on a 64bit system you might need to change the /lib/ld-
 linux.so.2 reference to /lib64/ld-linux-x86-64.so.2. If you wanna dig
 around, i found the "solution" at
 http://www.mailinglistarchive.com/gcc@gcc.gnu.org/msg04203.html

-- 
Ticket URL: <http://www.pulseaudio.org/ticket/152#comment:1>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list