Only FYI: # strace xsane 2>&1 | egrep 'libsane|libhp' resulted exactly the same used libraries as lsof shows (I just somehow preferred the lsof output).