SANE scanning (hpaio, network printer) no longer works with net-print/hplip-3.20.6-r1: # SANE_DEBUG_DLL=128 scanimage -L [19:30:23.614734] [sanei_debug] Setting debug level of dll to 128. [19:30:23.614792] [dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.30 [19:30:23.614807] [dll] sane_init/read_dlld: attempting to open directory `./dll.d' [19:30:23.614834] [dll] sane_init/read_dlld: attempting to open directory `/etc/sane.d/dll.d' [19:30:23.614856] [dll] sane_init/read_dlld: using config directory `/etc/sane.d/dll.d' [19:30:23.614878] [dll] sane_init/read_dlld: done. [19:30:23.614898] [dll] sane_init/read_config: reading dll.conf [19:30:23.614919] [dll] add_backend: adding backend `hpaio' [19:30:23.614939] [dll] sane_get_devices [19:30:23.614948] [dll] load: searching backend `hpaio' in `/usr/lib64/sane' [19:30:23.614957] [dll] load: trying to load `/usr/lib64/sane/libsane-hpaio.so.1' [19:30:23.614975] [dll] load: dlopen()ing `/usr/lib64/sane/libsane-hpaio.so.1' [19:30:23.619640] [dll] load: dlopen() failed (/usr/lib64/sane/libsane-hpaio.so.1: undefined symbol: _DBG) [19:30:23.619669] [dll] sane_get_devices: found 0 devices No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). [19:30:23.619697] [dll] sane_exit: exiting [19:30:23.619707] [dll] sane_exit: finished # objdump -R /usr/lib64/sane/libsane-hpaio.so.1.0.0|grep DBG 0000000000037df0 R_X86_64_JUMP_SLOT _DBG (This is a preprocessor macro, somewhere it is probably not being #included). Workaround: revert to 3.19.12-r1
Update (it was late when I filed last night): USE= fax hpcups hpijs libnotify scanner snmp -doc -kde -libressl -libusb0 -minimal -parport -policykit -qt5 -static-ppds Culprit seems to be: # ebuild hplip-3.20.6-r1.ebuild compile ... # for i in $(find . -name '*.o');do ;nm $i|grep _DBG && echo $i;done U _DBG ./.libs/libsane_hpaio_la-orblite.o # grep -3n _DBG scan/sane/orblite.c 195- 196-static int bb_unload(SANE_THandle ps) 197-{ 198: _DBG("Calling orblite bb_unload: \n"); 199- if (ps->bb_handle) 200- { 201- dlclose(ps->bb_handle); Suggestion: just epatch that _DBG out. _DBG seems to be defined ad-hoc by modules that need it; there doesn't seem to be a global package-level _DBG for use in orblite.c or other places.
Have you tried hplip-3.20.6-r2?
>Have you tried hplip-3.20.6-r2? I just did, and it works fine.
Fine, thanks for confirming! But please next time just try the highest version before reporting a bug! This potentially saves all of us some time! Just for reference. This has been reported upstream here: https://bugs.launchpad.net/hplip/+bug/1880065 Ans solved here: https://bugs.launchpad.net/hplip/+bug/1879445