Re: switching threading libraries

From: Daniel Eischen <deischen_at_freebsd.org>
Date: Fri, 7 Apr 2006 09:10:56 -0400 (EDT)
On Fri, 7 Apr 2006, Csaba Henk wrote:

> Hi!
>
> Compiling a threaded program foo with "-pthread", if I want to run it
> like
>
>   LD_LIBMAP=libpthread.so.2=libc_r.so foo
>
> then it will complain
>
>   /libexec/ld-elf.so.1: /usr/lib/libc_r.so: version LIBTHREAD_1_0 required by foo not defined
>
> I know it's because symbol versioning has entered the scene... I just
> wonder if there is some workaround... Some way to trasparently switch
> between threading libs?

Only between libthr and libpthread.  libc_r doesn't have symbol
versioning.

-- 
DE
Received on Fri Apr 07 2006 - 11:11:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:54 UTC