Library mapping question

2008-07-11 Thread Unga
Hi all I have same name libraries in two different locations, eg. /usr/lib/libXXX.so and /usr/local/lib/libXXX.so. They were created using same sources and the same compiler. The app1 is linked with /usr/lib/libXXX.so and app2 is linked with /usr/local/lib/libXXX.so. When app2 is run, the

Re: Library mapping question

2008-07-11 Thread Polytropon
Hi. On Fri, 11 Jul 2008 01:22:21 -0700 (PDT), Unga [EMAIL PROTECTED] 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

Re: Library mapping question

2008-07-11 Thread Unga
--- On Fri, 7/11/08, Polytropon [EMAIL PROTECTED] wrote: From: Polytropon [EMAIL PROTECTED] Subject: Re: Library mapping question To: freebsd-questions@freebsd.org Cc: [EMAIL PROTECTED] Date: Friday, July 11, 2008, 5:09 PM Hi. On Fri, 11 Jul 2008 01:22:21 -0700 (PDT), Unga [EMAIL

Re: Library mapping question

2008-07-11 Thread Mel
On Friday 11 July 2008 10:22:21 Unga wrote: Hi all I have same name libraries in two different locations, eg. /usr/lib/libXXX.so and /usr/local/lib/libXXX.so. They were created using same sources and the same compiler. The app1 is linked with /usr/lib/libXXX.so and app2 is linked with

Re: Library mapping question

2008-07-11 Thread N. Raghavendra
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

Re: Library mapping question

2008-07-11 Thread Unga
--- On Fri, 7/11/08, N. Raghavendra [EMAIL PROTECTED] wrote: From: N. Raghavendra [EMAIL PROTECTED] Subject: Re: Library mapping question To: [EMAIL PROTECTED] 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