From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 7 12:20:01 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 803931065675 for ; Fri, 7 Mar 2008 12:20:01 +0000 (UTC) (envelope-from adrianosf@uol.com.br) Received: from smtp.uol.com.br (smtps.uol.com.br [200.221.4.131]) by mx1.freebsd.org (Postfix) with ESMTP id 382228FC26 for ; Fri, 7 Mar 2008 12:20:00 +0000 (UTC) (envelope-from adrianosf@uol.com.br) Received: from localhost (localhost [127.0.0.1]) by socom8.uol.com.br (Postfix) with ESMTP id AFFDD1C000C41; Fri, 7 Mar 2008 09:19:59 -0300 (BRT) Received: from [192.200.1.46] (mail.mococa.com [200.153.112.18]) by socom8.uol.com.br (Postfix) with ESMTP id 413B71C00007F; Fri, 7 Mar 2008 09:19:58 -0300 (BRT) Message-ID: <47D1330B.3030509@uol.com.br> Date: Fri, 07 Mar 2008 09:20:27 -0300 From: Adriano dos Santos Fernandes User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Jeremy Chadwick References: <47D0A857.7080803@uol.com.br> <20080307025355.GA9876@eos.sc1.parodius.com> In-Reply-To: <20080307025355.GA9876@eos.sc1.parodius.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SIG5: afa3fe21027bc8b777786d2701e65ea3 Cc: freebsd-hackers@freebsd.org Subject: Re: Versioned symbols X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 12:20:01 -0000 Jeremy Chadwick escreveu: > On Thu, Mar 06, 2008 at 11:28:39PM -0300, Adriano dos Santos Fernandes wrote: > >> I want to make versioned symbols as they work in Linux, but I had no >> success with FreeBSD. >> > > This seems quite relevant, specific to RELENG_7. (Said feature isn't > available in earlier releases): Thanks Jeremy... My usage for versioned symbols would be to have multiple shared libraries implementing the same entrypoints... For dlopen'ed libraries, I suppose there is no problem with unversioned symbols, correct? But I want a kind of Windows DLL semantics... If my app dynamic loads lib1 and lib2, that implements the same functions and latter it loads lib3, a different library linked against lib2 (-l2). I want that calls from lib3 always go to lib2. Are versioned symbols the only way to achieve that or there is another way? Thanks, Adriano