Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 744991 - net-print/hplip-3.20.6-r1 : hpaio: undefined symbol: _DBG
Summary: net-print/hplip-3.20.6-r1 : hpaio: undefined symbol: _DBG
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-28 01:46 UTC by Ed Santiago
Modified: 2020-09-28 18:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Santiago 2020-09-28 01:46:47 UTC
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
Comment 1 Ed Santiago 2020-09-28 11:32:58 UTC
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.
Comment 2 Daniel Pielmeier gentoo-dev 2020-09-28 18:24:07 UTC
Have you tried hplip-3.20.6-r2?
Comment 3 Ed Santiago 2020-09-28 18:47:19 UTC
>Have you tried hplip-3.20.6-r2?

I just did, and it works fine.
Comment 4 Daniel Pielmeier gentoo-dev 2020-09-28 18:54:16 UTC
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