From owner-freebsd-current@FreeBSD.ORG Fri Apr 7 13:11:00 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 891EC16A405 for ; Fri, 7 Apr 2006 13:11:00 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2BE043D67 for ; Fri, 7 Apr 2006 13:10:59 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.6/8.13.6/NETPLEX) with ESMTP id k37DAuVj020194; Fri, 7 Apr 2006 09:10:56 -0400 (EDT) Date: Fri, 7 Apr 2006 09:10:56 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Csaba Henk In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-current@freebsd.org Subject: Re: switching threading libraries X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 13:11:00 -0000 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