<div dir="ltr"><div dir="ltr">Hi,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 25, 2022 at 2:36 PM Wes Rishel <<a href="mailto:wrishel@gmail.com">wrishel@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-size:small">Thanks. This all worked now and I am a bit puzzled about testing.</div><div style="font-size:small"> It is a little difficult to know whether I am testing my temporary version or the system version. The which command makes it look like the system version will run and there is no change in the version number. Does the which command not work when LD_LIBRARY_PATH is set?</div><div style="font-size:small"><br></div><div style="font-size:small">tevs@tevs-SEi:~/HETP/sane_install_220525c/backends$ env | grep LD_<br><font color="#ff9900">LD_LIBRARY_PATH=/home/tevs/HETP/sane_install_220525c_output/lib/sane</font><br>tevs@tevs-SEi:~/HETP/sane_install_220525c/backends$<b> ls -l /home/tevs/HETP/sane_install_220525c_output/bin <br>total 1096<br>-rwxr-xr-x 1 tevs tevs  20144 May 25 14:20 gamma4scanimage<br>-rwxr-xr-x 1 tevs tevs   2723 May 25 14:20 sane-config<br>-rwxr-xr-x 1 tevs tevs 359528 May 25 14:20 sane-find-scanner<br><font color="#ff9900">-rwxr-xr-x 1 tevs tevs 213416 May 25 14:20 scanimage</font><br>-rwxr-xr-x 1 tevs tevs 519648 May 25 14:20 umax_pp<br>tevs@tevs-SEi:</b>~/HETP/sane_install_220525c/backends$ <font color="#ff9900">which scanimage</font><br><font color="#ff0000">/usr/local/bin/scanimage</font><br>tevs@tevs-SEi:<br></div><br></div></blockquote><div>That's a good question. LD_LIBRARY_PATH influences the choice for the loading of shared objects.</div><div>If you want to be sure about what is being loaded, you can use the SANE_DEBUG_DLL debug variable in your terminal where you have LD_LIBRARY_PATH set:</div><div><br></div><div>SANE_DEBUG_DLL=3 scanimage -L 2>&1 |  grep fujitsu</div><div><br></div><div>Hopefully, the path that you see being dlopen'ed is pointing to the backend that you built.</div><div><br></div><div>For me, I see this:</div><div><br></div><div>rlittle@rlittlelaptop ~/play/sane/backends $ SANE_DEBUG_DLL=3 scanimage -L 2>&1 |  grep fujitsu<br>[14:52:12.843615] [dll] add_backend: adding backend `fujitsu'<br>[14:52:23.587054] [dll] load: searching backend `fujitsu' in `/home/rlittle/sane-install/lib/sane:/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane'<br>[14:52:23.587103] [dll] load: dlopen()ing `/home/rlittle/sane-install/lib/sane/libsane-fujitsu.so.1'<br>[14:52:23.587453] [dll] init: initializing backend `fujitsu'<br>[14:52:29.831289] [dll] sane_exit: calling backend `fujitsu's exit function<br></div><div><br></div><div>Cheers,</div><div>Ralph<br></div><div><br></div><div> <br></div></div></div>