> > When loading a library "libfoo.so" (depending on "libbar.so", located in > > an > > entirely different folder), with a LD_LIBRARY_PATH=/path/to/libfoo.so", it > > > > returns an error: > > EAL: ./libfoo.so: cannot open shared object file: No such file or > > directory > > > > If the first dlopen() fails (here, because it can't find all > > dependencies), > > the code requires for a second dlopen() that looks for "./libfoo.so". It > > turns on pathname matching, which does not use LD_LIBRARY_PATH. As a > > result, it fails because it cannot find "./libfoo.so". > > > > The error message matches the error of the second dlopen(), not the > > first's. > > > > Do not try to look for a different library ("./"-prefixed) than the one > > provided in argument. Let the dynamic library management handle it, just > > provide an appropriate LD_LIBRARY_PATH. > > > > Signed-off-by: Pascal Mazon <pascal.mazon at 6wind.com> > > Acked-by: Neil Horman <nhorman at tuxdriver.com>
Applied for version 1.6.0r2. Thanks, it's a good usability improvement (simpler is better :) -- Thomas