Library mapping question

Unga unga888 at yahoo.com
Sat Jul 12 03:43:49 UTC 2008


--- On Fri, 7/11/08, N. Raghavendra <raghu at mri.ernet.in> wrote:

> From: N. Raghavendra <raghu at mri.ernet.in>
> Subject: Re: Library mapping question
> To: unga888 at yahoo.com
> Cc: freebsd-questions at 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


      


More information about the freebsd-questions mailing list