From owner-freebsd-questions@FreeBSD.ORG Tue Mar 4 02:07:13 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8031106566C for ; Tue, 4 Mar 2008 02:07:13 +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 AA6E68FC17 for ; Tue, 4 Mar 2008 02:07:13 +0000 (UTC) (envelope-from adrianosf@uol.com.br) Received: from localhost (localhost [127.0.0.1]) by socom10.uol.com.br (Postfix) with ESMTP id D5B229C9 for ; Mon, 3 Mar 2008 22:48:39 -0300 (BRT) Received: from [201.43.14.234] (201-43-14-234.dsl.telesp.net.br [201.43.14.234]) by socom10.uol.com.br (Postfix) with ESMTP id 4FDDCCFD for ; Mon, 3 Mar 2008 22:48:39 -0300 (BRT) Message-ID: <47CCAA12.6070007@uol.com.br> Date: Mon, 03 Mar 2008 22:46:58 -0300 From: Adriano dos Santos Fernandes User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SIG5: 14303af61f9728e75736046e6fce32b7 Subject: Versioned symbols X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 02:07:13 -0000 Hi! First, sorry if this shouldn't belong to this list. If this is the case, please point me to the appropriate list. I want to make versioned symbols as they work in Linux, but I had no success with FreeBSD. Let me say, I've app, lib1 and lib2. lib1 and lib2 have two different functions, and I link app with both. They use the following version scripts: lib1.vers ---------- lib1 { *; }; lib2.vers ---------- lib2 { *; }; Then, I rebuild lib2 to have the same lib1 function, and when app calls that function (that nows exists in lib1 and lib2) the call go to lib2. I suppose the app should call the lib1 function, as the imported function is defined with lib1 "namespace". If you want, I can post a small test case. Do exists any different on Linux and FreeBSD re. versioned symbols? Is there a way to achieve what I want? Thanks, Adriano