From owner-freebsd-questions@FreeBSD.ORG Fri Jul 11 09:18:23 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 47774106567E for ; Fri, 11 Jul 2008 09:18:23 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57010.mail.re3.yahoo.com (web57010.mail.re3.yahoo.com [66.196.97.114]) by mx1.freebsd.org (Postfix) with SMTP id E39048FC18 for ; Fri, 11 Jul 2008 09:18:22 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 72519 invoked by uid 60001); 11 Jul 2008 09:18:22 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=RZk0nsuD0nI7URu37nLjaqCug57yR0XeC8tGpaT6lS8ngv6s9dwY1WmRWWkgdNYLqct2ws8mWRcEx7+LvybBl7RN19ZQW/SjgWyALup4HQcOR82ZHTwZ4WzJPa6Mu63Fs3wx8hkO/rEjmFi9m/sd1MlD+wleR5IatuvgClL0E3s=; Received: from [220.255.7.243] by web57010.mail.re3.yahoo.com via HTTP; Fri, 11 Jul 2008 02:18:21 PDT X-Mailer: YahooMailWebService/0.7.199 Date: Fri, 11 Jul 2008 02:18:21 -0700 (PDT) From: Unga To: Polytropon In-Reply-To: <20080711110906.57dd9de3.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <115118.71641.qm@web57010.mail.re3.yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: Library mapping question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: unga888@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2008 09:18:23 -0000 --- On Fri, 7/11/08, Polytropon wrote: > From: Polytropon > Subject: Re: Library mapping question > To: freebsd-questions@freebsd.org > Cc: unga888@yahoo.com > Date: Friday, July 11, 2008, 5:09 PM > Hi. > > On Fri, 11 Jul 2008 01:22:21 -0700 (PDT), Unga > wrote: > > How do I get the app2 to refer to > /usr/local/lib/libXXX.so? > > > > In FreeBSD, is there a way to instruct the dynamic > linker > > (ld-elf.so.1) to continue to search for the same > library > > name in different locations? > > Maybe an entry in /etc/libmap.conf (man 5 libmap.conf) will > reveal a possible solution? > Hi I was just now trying it after reading the libmap.conf(5). I specified following in /etc/libmap.conf: [/usr/bin/app2/] libXXX.so /usr/local/lib/libXXX.so Now when run app2 it does not say anymore "undefined references" but it says "Shared object "/usr/local/lib/libXXX.so" not found" ls -l /usr/local/lib/libXXX.so shows its there. Is /etc/libmap.conf specification correct? Regards Unga