From owner-freebsd-questions@FreeBSD.ORG Sat Jul 12 03:43:49 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 41647106567D for ; Sat, 12 Jul 2008 03:43:49 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57009.mail.re3.yahoo.com (web57009.mail.re3.yahoo.com [66.196.97.113]) by mx1.freebsd.org (Postfix) with SMTP id CED278FC18 for ; Sat, 12 Jul 2008 03:43:48 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 1087 invoked by uid 60001); 12 Jul 2008 03:43:48 -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=E1te4HhMjunAPVjaVbbvesr/gYVNjLcQGPrA1sDKi/vznBiEXG3HLwKgKmzThNYSTHlID30Sa382kyo7NKVmYOsnaZSNWsK/VycErUVfAcSqK3RfvYAnna6LSG4+zEstelR9Jt31ZUuMwtxR1oPFInhMlK8RC/IpoLJUZ05HyHA=; Received: from [165.21.155.69] by web57009.mail.re3.yahoo.com via HTTP; Fri, 11 Jul 2008 20:43:47 PDT X-Mailer: YahooMailWebService/0.7.199 Date: Fri, 11 Jul 2008 20:43:47 -0700 (PDT) From: Unga To: "N. Raghavendra" In-Reply-To: <864p6wzhb7.fsf@riemann.mri.ernet.in> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <5090.1044.qm@web57009.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: Sat, 12 Jul 2008 03:43:49 -0000 --- On Fri, 7/11/08, N. Raghavendra wrote: > From: N. Raghavendra > Subject: Re: Library mapping question > To: unga888@yahoo.com > Cc: freebsd-questions@freebsd.org > Date: Friday, July 11, 2008, 9:22 PM > At 2008-07-11T02:18:21-07:00, Unga wrote: > > > [/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? > > In all the examples I've seen, the "mapping" > entries in > libmap.conf(5), i.e., the ones in the second column, are > relative to > the search path for libraries. Further, it is better to > use only the > basename of the executable in the constraint of the mapping > --- the > part enclosed by square brackets. So, the following may > work: > > cd /usr/local/lib && ln -s libXXX.so libFOO.so > > to distinguish it from the one in `/usr/lib', which > directory comes > earlier in the search path. Then, append these two lines > to > `/etc/libmap.conf': > > [app2] > libXXX.so libFOO.so > > HTH, > Raghavendra. > Hi Raghavendra Thanks for the reply. It's most promising for the moment. Mel's method may be used next time when I build the app. Best Regards Unga