Scanner's HP Laser MFP 137fnw

Kernels & Hardware, configuring network, installing services

Re: Scanner's HP Laser MFP 137fnw

Postby brian_p » 2020-06-08 12:42

Nope, it is searched by the SANE -> see the above posts -> the libsane-smfp.so.1.0.1 is correctly installed, and SANE can find the library, but it can't load/initialize it ->because the required plugin interface functions are missing.


Thank you for focusing my attention. I did what I should have previous done and
installed the ULD scanner driver on my i386 machine. The backend is linked from
/usr/lib/sane, which SANE does search.

Code: Select all
$ SANE_DEBUG_DLL=5 scanimage -L 2>&1 | grep smfp > scanner.txt
$ cat scanner.txt
[dll] add_backend: adding backend `smfp'
[dll] load: searching backend `smfp' in `/usr/lib/i386-linux-gnu/sane:/usr/lib/sane'
[dll] load: trying to load `/usr/lib/i386-linux-gnu/sane/libsane-smfp.so.1'
[dll] load: couldn't open `/usr/lib/i386-linux-gnu/sane/libsane-smfp.so.1' (No such file or directory)
[dll] load: trying to load `/usr/lib/sane/libsane-smfp.so.1'
[dll] load: dlopen()ing `/usr/lib/sane/libsane-smfp.so.1'
[dll] init: initializing backend `smfp'
[dll] init: backend `smfp' is version 1.0.1
[dll] sane_exit: calling backend `smfp's exit function


Perhaps the difference between my output and capcia's isn't important?

More puzzling is

Code: Select all
$ readelf --dyn-syms /usr/lib/i386-linux-gnu/sane/libsane-hpaio.so.1.0.0 | grep hpaio_init
   202: 00004580   101 FUNC    GLOBAL DEFAULT   12 sane_hpaio_init


This is a known working backend on this system.
--
Brian.
brian_p
 
Posts: 91
Joined: 2015-11-05 10:32

Re: Scanner's HP Laser MFP 137fnw

Postby LE_746F6D617A7A69 » 2020-06-08 13:49

brian_p wrote:Perhaps the difference between my output and capcia's isn't important?

Your result means, that plugin interface in i386 version of the backend is correctly implemented.

EDIT: removed old content, because It turns out that I'm an idiot... /EDIT
Last edited by LE_746F6D617A7A69 on 2020-06-08 15:32, edited 2 times in total.
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed
LE_746F6D617A7A69
 
Posts: 169
Joined: 2020-05-03 14:16

Re: Scanner's HP Laser MFP 137fnw

Postby brian_p » 2020-06-08 15:27

Code: Select all
brian@test:~$ readelf --dyn-syms /usr/lib/sane/libsane-smfp.so.1.0.1 | grep sane                                       
   482: 00081000   171 FUNC    GLOBAL DEFAULT   10 sane_smfp_cancel                                                     
   940: 00080e80   178 FUNC    GLOBAL DEFAULT   10 sane_smfp_get_select_fd                                             
  1112: 00081320    42 FUNC    GLOBAL DEFAULT   10 sane_smfp_get_option_desc                                           
  1336: 000812e0    63 FUNC    GLOBAL DEFAULT   10 sane_smfp_control_option                                             
  1797: 00081230   172 FUNC    GLOBAL DEFAULT   10 sane_smfp_get_parameters                                             
  2148: 00080dc0     5 FUNC    GLOBAL DEFAULT   10 sane_smfp_exit                                                       
  2546: 00081350    33 FUNC    GLOBAL DEFAULT   10 sane_smfp_close                                                     
  3024: 00080f40   185 FUNC    GLOBAL DEFAULT   10 sane_smfp_set_io_mode                                               
  3031: 00081500   244 FUNC    GLOBAL DEFAULT   10 sane_smfp_init                                                       
  3203: 00081180   171 FUNC    GLOBAL DEFAULT   10 sane_smfp_start                                                     
  3358: 00081440   178 FUNC    GLOBAL DEFAULT   10 sane_smfp_get_devices                                               
  3854: 00081380   185 FUNC    GLOBAL DEFAULT   10 sane_smfp_open                                                       
  3863: 000810b0   193 FUNC    GLOBAL DEFAULT   10 sane_smfp_read                                                       
  4153: 00080dd0   166 FUNC    GLOBAL DEFAULT   10 sane_samsung_strstatus                                               
brian@test:~$
--
Brian.
brian_p
 
Posts: 91
Joined: 2015-11-05 10:32

Re: Scanner's HP Laser MFP 137fnw

Postby LE_746F6D617A7A69 » 2020-06-08 15:32

The result reported by brian_p have triggered my attention: how it is possible that i386 version works with sane?

So, I have downloaded full sane project from gitlab, and I've analysed the code again.
The scanimage is using libdll.a (backends-master/backend/dll.c) to load backends, and the backend functions names to be dlopen()-ed are dynamically constructed, based on backend type. Only native SANE backends have static function names: sane_xxxx().
The scanimage uses the dll wrapper to call backend functions using default SANE functions names (previously I've only checked that it calls the sane_init() function -> I've missed the fact that there is a name-wrapper)

The function names in HP ULD backend are correct -> so I must apologize for accusing HP of lacking QA, the SMFP interface is valid

I have also installed the HP drivers on 2 machines: Debian10 64 bit and Debian9 32bit -> in both cases the HP backend driver is correctly loaded and initialized by SANE.

Conclusion:
1. There's something wrong with the capcla's OS -> we have to investigate this case again.
2. I'm an idiot, who have wasted a lot of time for useless research...

Regards.
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed
LE_746F6D617A7A69
 
Posts: 169
Joined: 2020-05-03 14:16

Re: Scanner's HP Laser MFP 137fnw

Postby brian_p » 2020-06-10 14:52

... definitely the "driverless" solution might work in this case.


Another success for sane-airscan! :D Message #10 at https://bugs.launchpad.net/hplip/+bug/1882390.
--
Brian.
brian_p
 
Posts: 91
Joined: 2015-11-05 10:32

Re: Scanner's HP Laser MFP 137fnw

Postby LE_746F6D617A7A69 » 2020-06-10 22:22

brian_p wrote:Another success for sane-airscan!


That's really fantastic - but still, I would like to see the results for the ULD HP drivers -> because they seem to work with the latest version of Debian system -> ofc, that would require to find a person or a compny who have actually tested this ... (and I don't have the HW to test... )

Regards.
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed
LE_746F6D617A7A69
 
Posts: 169
Joined: 2020-05-03 14:16

Previous

Return to System configuration

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable