Gentoo Archives: gentoo-user

From: Jens Pelzetter <jens.pelzetter@××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Anyone got the Lexmark Network Scanner Driver to work with Gentoo
Date: Mon, 02 Dec 2019 20:16:29
Message-Id: b837966a-fc6e-54dd-c75f-725d82d9f4e6@googlemail.com
Hello all,

Lexmark provides Linux Drivers for their Scanners/MFPs as RPM and Deb
packages. I was able to install the drivers on Gentoo (in a similar way
described in the Gentoo Wiki for Brother devices:
https://wiki.gentoo.org/wiki/Brother_networked_printer#Alternative:_rpm_installation
and in the Arch Linux Wiki:
https://wiki.archlinux.org/index.php/SANE/Scanner-specific_problems#Lexmark)


scanimage finds the the driver and tries using it, but then Segfaults:

# SANE_DEBUG_DLL=4 scanimage -L
[sanei_debug] Setting debug level of dll to 4.
[dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.27
[dll] sane_init/read_dlld: attempting to open directory `./dll.d'
[dll] sane_init/read_dlld: attempting to open directory `/etc/sane.d/dll.d'
[dll] sane_init/read_dlld: using config directory `/etc/sane.d/dll.d'
[dll] add_backend: adding backend `lexmark_nscan'
[dll] sane_get_devices
[dll] load: searching backend `lexmark_nscan' in `/usr/lib:/usr/lib64/sane'
[dll] load: trying to load `/usr/lib/libsane-lexmark_nscan.so.1'
[dll] load: couldn't open `/usr/lib/libsane-lexmark_nscan.so.1' (No such
file or directory)
[dll] load: trying to load `/usr/lib64/sane/libsane-lexmark_nscan.so.1'
[dll] load: dlopen()ing `/usr/lib64/sane/libsane-lexmark_nscan.so.1'
[dll] init: initializing backend `lexmark_nscan'
[dll] init: backend `lexmark_nscan' is version 1.0.1
Speicherzugriffsfehler (Speicherabzug geschrieben)

GDB shows the following:

Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from scanimage...
Reading symbols from /usr/lib/debug//usr/bin/scanimage.debug...
(gdb) r
Starting program: /usr/bin/scanimage -L
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff755b94e in IOComm::getScanners(char***, int*, void*) () from
/usr/lib64/sane/libsane-lexmark_nscan.so.1
(gdb) where
#0  0x00007ffff755b94e in IOComm::getScanners(char***, int*, void*) ()
from /usr/lib64/sane/libsane-lexmark_nscan.so.1
#1  0x00007ffff75718f1 in Device::getScanners(char***, int*, void*, int,
char const*) () from /usr/lib64/sane/libsane-lexmark_nscan.so.1
#2  0x00007ffff75712ed in Device::getScanners(char***, int*, void*, int)
() from /usr/lib64/sane/libsane-lexmark_nscan.so.1
#3  0x00007ffff7571145 in Device::getScanners(char***, int*, void*) ()
from /usr/lib64/sane/libsane-lexmark_nscan.so.1
#4  0x00007ffff757af32 in ScanLib::GetScanners(char***, int*) () from
/usr/lib64/sane/libsane-lexmark_nscan.so.1
#5  0x00007ffff7582937 in sane_ScanLib_get_devices(SANE_Device const***,
int) () from /usr/lib64/sane/libsane-lexmark_nscan.so.1
#6  0x00007ffff7591250 in sane_lexmark_nscan_get_devices () from
/usr/lib64/sane/libsane-lexmark_nscan.so.1
#7  0x00007ffff7f75b36 in sane_dll_get_devices
(device_list=0x7fffffffba78, local_only=0) at
/var/tmp/portage/media-gfx/sane-backends-1.0.27-r3/work/sane-backends-1.0.27/backend/dll.c:1081
#8  0x00005555555566fb in main (argc=2, argv=0x7fffffffdec8) at
/var/tmp/portage/media-gfx/sane-backends-1.0.27-r3/work/sane-backends-1.0.27/frontend/scanimage.c:2102

Does anyone have idea whats wrong. Is the driver from Lexmark simply
faulty/not compatible with some libraries?

Best regards

Jens