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
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:
and in the Arch Linux Wiki:

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/'
[dll] load: couldn't open `/usr/lib/' (No such
file or directory)
[dll] load: trying to load `/usr/lib64/sane/'
[dll] load: dlopen()ing `/usr/lib64/sane/'
[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
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:
Find the GDB manual and other documentation resources online at:

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/".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff755b94e in IOComm::getScanners(char***, int*, void*) () from
(gdb) where
#0  0x00007ffff755b94e in IOComm::getScanners(char***, int*, void*) ()
from /usr/lib64/sane/
#1  0x00007ffff75718f1 in Device::getScanners(char***, int*, void*, int,
char const*) () from /usr/lib64/sane/
#2  0x00007ffff75712ed in Device::getScanners(char***, int*, void*, int)
() from /usr/lib64/sane/
#3  0x00007ffff7571145 in Device::getScanners(char***, int*, void*) ()
from /usr/lib64/sane/
#4  0x00007ffff757af32 in ScanLib::GetScanners(char***, int*) () from
#5  0x00007ffff7582937 in sane_ScanLib_get_devices(SANE_Device const***,
int) () from /usr/lib64/sane/
#6  0x00007ffff7591250 in sane_lexmark_nscan_get_devices () from
#7  0x00007ffff7f75b36 in sane_dll_get_devices
(device_list=0x7fffffffba78, local_only=0) at
#8  0x00005555555566fb in main (argc=2, argv=0x7fffffffdec8) at

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

Best regards