Date: Fri, 11 Jul 2008 20:43:47 -0700 (PDT) From: Unga <unga888@yahoo.com> To: "N. Raghavendra" <raghu@mri.ernet.in> Cc: freebsd-questions@freebsd.org Subject: Re: Library mapping question Message-ID: <5090.1044.qm@web57009.mail.re3.yahoo.com> In-Reply-To: <864p6wzhb7.fsf@riemann.mri.ernet.in>
next in thread | previous in thread | raw e-mail | index | archive | help
--- On Fri, 7/11/08, N. Raghavendra <raghu@mri.ernet.in> wrote: > From: N. Raghavendra <raghu@mri.ernet.in> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5090.1044.qm>