Re: default search path for shared libraries

2020-03-27 Thread Greg Troxel
Jeffrey Walton writes: > Something looks off with NetBSD. It is the only platform I have problems with: > > gcc -g2 -O2 -fPIC -pthread -L/opt/local/lib -Wl,-R,/../lib > -Wl,-R,/opt/local/ > lib -Wl,--enable-new-dtags -o src/bison src/bison-AnnotationList.o > src/bison-Ina > dequacyList.o

Re: default search path for shared libraries

2020-03-27 Thread Martin Husemann
On Fri, Mar 27, 2020 at 02:19:56AM -0400, Jeffrey Walton wrote: > I really don't understand why the loader cannot find these libraries. > They are exactly where they should be. You need to check the binaries (and .so) involved, maybe something went wrong at link time? Martin

Re: default search path for shared libraries

2020-03-27 Thread Jeffrey Walton
On Mon, Mar 23, 2020 at 5:41 AM Martin Husemann wrote: > > On Mon, Mar 23, 2020 at 01:41:52AM -0400, Jeffrey Walton wrote: > > > > Under LD_LIBRARY_PATH, the man page says: > > > > A colon separated list of directories, overriding the > > defa

Re: default search path for shared libraries

2020-03-23 Thread Greg A. Woods
At Mon, 23 Mar 2020 10:41:14 +0100, Martin Husemann wrote: Subject: Re: default search path for shared libraries > > On Mon, Mar 23, 2020 at 01:41:52AM -0400, Jeffrey Walton wrote: > > > > Under LD_LIBRARY_PATH, the man page says: > > > > A colon separated l

Re: default search path for shared libraries

2020-03-23 Thread Martin Husemann
On Mon, Mar 23, 2020 at 01:41:52AM -0400, Jeffrey Walton wrote: > > Under LD_LIBRARY_PATH, the man page says: > > A colon separated list of directories, overriding the > default search path for shared libraries. > > What is the default search path? That is

default search path for shared libraries

2020-03-22 Thread Jeffrey Walton
path for shared libraries. What is the default search path? How is the list of paths formed? The man page also says ld.so.conf(5) is used, but the ELF FAQ says it is not. Also see https://www.netbsd.org/docs/elf.html. Which is correct? Thanks in advance.