OpenBSD will not make B load C just by A loading B, so the program A needs to ask for both B and C while being linked in order to work.
2016-07-03 16:49 GMT+02:00 Tinker <ti...@openmailbox.org>: > Am debugging something and am not quite clear about details. > > > My executable A loads library B dynamically, and B depends on library C. > > C is located in /usr/local/lib/ . > > When I run A with "LD_PRELOAD=/usr/local/lib/C.so", A works. > > When I run A with "LD_LIBRARY_PATH=/usr/local/lib/", A does not work > (loading/initializing B fails somehow). > > And when I just run A, A does not work (same reason). > > > Any thought about what I missed? > > Also, just for clarity, is /usr/local/lib/ in the default search path for > library files? > > > Thanks! > Tinker > > -- May the most significant bit of your life be positive.