From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 7 02:42:59 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 36CB3106566C for ; Fri, 7 Mar 2008 02:42:59 +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 EC51A8FC13 for ; Fri, 7 Mar 2008 02:42:58 +0000 (UTC) (envelope-from adrianosf@uol.com.br) Received: from localhost (localhost [127.0.0.1]) by socom6.uol.com.br (Postfix) with ESMTP id 0996FE00063D for ; Thu, 6 Mar 2008 23:30:22 -0300 (BRT) Received: from [201.26.40.20] (201-26-40-20.dsl.telesp.net.br [201.26.40.20]) by socom6.uol.com.br (Postfix) with ESMTP id 91E60E000516 for ; Thu, 6 Mar 2008 23:30:21 -0300 (BRT) Message-ID: <47D0A857.7080803@uol.com.br> Date: Thu, 06 Mar 2008 23:28:39 -0300 From: Adriano dos Santos Fernandes User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SIG5: 6d0a26c28d92c7d79d32db916ac7c2b8 Subject: 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 02:42:59 -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