From owner-freebsd-ports@FreeBSD.ORG Mon Jul 3 09:40:27 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5667616A412; Mon, 3 Jul 2006 09:40:27 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9ACC943D49; Mon, 3 Jul 2006 09:40:26 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D4E1.dip.t-dialin.net [84.165.212.225]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k639Wr7O052811; Mon, 3 Jul 2006 11:32:53 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k639eR84055856; Mon, 3 Jul 2006 11:40:27 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Mon, 03 Jul 2006 11:40:27 +0200 Message-ID: <20060703114027.tj9s4h5mog8ww0ck@netchild.homeip.net> X-Priority: 3 (Normal) Date: Mon, 03 Jul 2006 11:40:27 +0200 From: Alexander Leidinger To: Alejandro Pulver References: <20060701202522.00da2f4e@phobos.mars.bsd> In-Reply-To: <20060701202522.00da2f4e@phobos.mars.bsd> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: ports@freebsd.org Subject: Re: Renaming and symlinking shared libraries X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jul 2006 09:40:27 -0000 Quoting Alejandro Pulver (from Sat, 1 Jul 2006 20:25:22 -0300): > AFAIK the symlinks would be (under lib/, in src->dest form) the > following. This shows the renaming of libtest to libtest-2, with major > version of 2. > > libtest-2.so -> libtest-2.so.2 > libtest-2.so.2 -> test2/libtest-2.so.2 (real) > > Inside test2/. > > libtest.so -> libtest-2.so > libtest-2.so -> libtest-2.so.2 (real) > > Then I link a program with "cc -o test -L/usr/local/lib/test2 -ltest". > I did it with lua4 but after linking 'ldd' says it can't find > "libtest.so". > > Have I missed something? You have to ldconfig the test2 directory, else the run-time linker will not find the lib (it doesn't know where to search for it). Bye, Alexander. -- Atlee is a very modest man. And with reason. -- Winston Churchill http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137