Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jul 2008 18:52:36 +0530
From:      "N. Raghavendra" <raghu@mri.ernet.in>
To:        unga888@yahoo.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Library mapping question
Message-ID:  <864p6wzhb7.fsf@riemann.mri.ernet.in>
In-Reply-To: <115118.71641.qm@web57010.mail.re3.yahoo.com> (Unga's message of "Fri, 11 Jul 2008 02:18:21 -0700 (PDT)")
References:  <115118.71641.qm@web57010.mail.re3.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

-- 
N. Raghavendra <raghu@mri.ernet.in> | http://www.retrotexts.net/
Harish-Chandra Research Institute   | http://www.mri.ernet.in/
See message headers for contact and OpenPGP information.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?864p6wzhb7.fsf>