Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jul 2008 02:18:21 -0700 (PDT)
From:      Unga <unga888@yahoo.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Library mapping question
Message-ID:  <115118.71641.qm@web57010.mail.re3.yahoo.com>
In-Reply-To: <20080711110906.57dd9de3.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
--- On Fri, 7/11/08, Polytropon <freebsd@edvax.de> wrote:

> From: Polytropon <freebsd@edvax.de>
> 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
> <unga888@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


      



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