Library mapping question
Unga
unga888 at yahoo.com
Fri Jul 11 09:18:23 UTC 2008
--- On Fri, 7/11/08, Polytropon <freebsd at edvax.de> wrote:
> From: Polytropon <freebsd at edvax.de>
> Subject: Re: Library mapping question
> To: freebsd-questions at freebsd.org
> Cc: unga888 at yahoo.com
> Date: Friday, July 11, 2008, 5:09 PM
> Hi.
>
> On Fri, 11 Jul 2008 01:22:21 -0700 (PDT), Unga
> <unga888 at yahoo.com> 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
More information about the freebsd-questions
mailing list