<div dir="ltr">Hi All,<div><br></div><div>I did some more investigation and here are the details in short:</div><div><br></div><div><b><font size="4" color="#0000ff">1. libusb version 0.1-4 is not installed:</font></b></div><div><br></div><div>It has been observed in Ubuntu 17.10 (x86) / (x64) & Ubuntu 18.04 that <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">libusb version 0.1-4<span> </span></span> is not installed properly. Lexmark Scanner drivers require <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">libusb version 0.1-4 for the scanners to get detected.</span></div><div><br></div><div>This seems to be a Ubuntu issue and nothing specific to any application. </div><div><br></div><div><b>Bug logged:</b> <a href="https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/1770653">https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/1770653</a>.</div><div><br></div><div><font size="4" color="#0000ff"><b>2.</b> <b>XSANE looking for driver files in different paths:</b></font></div><div><b><br></b></div><div>Usually XSANE used to look for the driver files in <font color="#000000" face="Arial"><span style="white-space:pre-wrap"> /usr/lib/sane for 32 bit version of the Ubuntu OS and /usr/lib64/sane for the 64 bit version of the Ubuntu OS. This was the case at-least till Ubuntu 14.10. After that there seems to be discrepancies in the locations XSANE is trying to find the driver files. Details mentioned below:</span></font></div><div><font color="#000000" face="Arial"><span style="white-space:pre-wrap"><br></span></font></div><div><table cellspacing="0" cellpadding="0" dir="ltr" border="1" style="table-layout:fixed;font-size:10pt;font-family:arial,sans,sans-serif;width:0px;border-collapse:collapse;border:none"><colgroup><col width="100"><col width="132"><col width="117"><col width="126"><col width="230"></colgroup><tbody><tr style="height:21px"><td style="border:1px solid rgb(0,0,0);overflow:hidden;padding:2px 3px;vertical-align:middle;background-color:rgb(255,255,0);font-family:Arial;font-size:11pt;font-weight:bold;text-align:center" rowspan="2" colspan="1"><span><div style="max-height:42px">OS</div></span></td><td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);overflow:hidden;padding:2px 3px;vertical-align:bottom;background-color:rgb(255,255,0);font-family:Arial;font-size:11pt;font-weight:bold;text-align:center" rowspan="1" colspan="4">OS locations searched by XSANE for the Driver Files</td></tr><tr style="height:21px"><td style="border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);overflow:hidden;padding:2px 3px;vertical-align:bottom;background-color:rgb(255,255,0);font-family:Arial;font-size:11pt;font-weight:bold;text-align:center">Ubuntu 14.10</td><td style="border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);overflow:hidden;padding:2px 3px;vertical-align:bottom;background-color:rgb(255,255,0);font-family:Arial;font-size:11pt;font-weight:bold;text-align:center">Ubuntu 16.04</td><td style="border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);overflow:hidden;padding:2px 3px;vertical-align:bottom;background-color:rgb(255,255,0);font-family:Arial;font-size:11pt;font-weight:bold;text-align:center">Ubuntu 16.10</td><td style="border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);overflow:hidden;padding:2px 3px;vertical-align:bottom;background-color:rgb(255,255,0);font-family:Arial;font-size:11pt;font-weight:bold;text-align:center">Ubuntu 17.10/18.04</td></tr><tr style="height:21px"><td style="border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(0,0,0) rgb(0,0,0);overflow:hidden;padding:2px 3px;vertical-align:bottom;background-color:rgb(255,255,0);font-family:Arial;font-size:11pt;font-weight:bold;text-align:center">x86</td><td style="border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);overflow:hidden;padding:2px 3px;vertical-align:bottom;font-family:Arial;font-size:11pt;font-weight:normal"> /usr/lib/sane</td><td style="border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);overflow:hidden;padding:2px 3px;vertical-align:bottom;font-family:Arial;font-size:11pt;font-weight:normal"> /usr/lib/sane</td><td style="border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);overflow:hidden;padding:2px 3px;vertical-align:bottom;font-family:Arial;font-size:11pt;font-weight:normal"> /usr/lib/sane</td><td style="border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);overflow:hidden;padding:2px 3px;vertical-align:bottom;background-color:rgb(244,204,204);font-family:Arial;font-size:11pt;font-weight:normal">/usr/lib/i386-linux-gnu/sane</td></tr><tr style="height:21px"><td style="border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(0,0,0) rgb(0,0,0);overflow:hidden;padding:2px 3px;vertical-align:bottom;background-color:rgb(255,255,0);font-family:Arial;font-size:11pt;font-weight:bold;text-align:center">x64</td><td style="border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);overflow:hidden;padding:2px 3px;vertical-align:bottom;font-family:Arial;font-size:11pt;font-weight:normal">/usr/lib64/sane</td><td style="border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);overflow:hidden;padding:2px 3px;vertical-align:bottom;background-color:rgb(244,204,204);font-family:Arial;font-size:11pt;font-weight:normal"> /usr/lib/sane</td><td style="border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);overflow:hidden;padding:2px 3px;vertical-align:bottom;background-color:rgb(244,204,204);font-family:Arial;font-size:11pt;font-weight:normal"> /usr/lib/sane</td><td style="border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);overflow:hidden;padding:2px 3px;vertical-align:bottom;background-color:rgb(244,204,204);font-family:Arial;font-size:11pt;font-weight:normal"> /usr/lib/x86_64-linux-gnu/sane</td></tr></tbody></table></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)"><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><br></div></span></div><div><span style="background-color:rgb(255,255,255)">So now the question is which should be the perfect path for XSANE to look for the driver files. If "</span><span style="color:rgb(34,34,34);font-family:Arial;font-size:14.6667px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="background-color:rgb(255,255,255)"><b>/usr/lib/i386-linux-gnu/sane</b>" and "<span style="color:rgb(34,34,34);font-family:Arial;font-size:14.6667px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><b>/usr/lib/x86_64-linux-gnu/sane</b></span><span style="font-weight:400;color:rgb(34,34,34);font-family:Arial;font-size:14.6667px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">" are the confirmed new locations then the driver has to change. Need a confirmation on the same.</span></span></span></div><div><span style="color:rgb(34,34,34);font-family:Arial;font-size:14.6667px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="background-color:rgb(255,255,255)"><span style="font-weight:400;color:rgb(34,34,34);font-family:Arial;font-size:14.6667px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></span></span></div><div><span style="color:rgb(34,34,34);font-family:Arial;font-size:14.6667px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="background-color:rgb(255,255,255)"><span style="color:rgb(34,34,34);font-family:Arial;font-size:14.6667px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><b>Bug logged: </b></span></span></span><font face="Arial"><span style="font-size:14.6667px"><a href="https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/1770656">https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/1770656</a></span></font></div><div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">Aveek</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 8, 2018 at 4:38 AM, Jörn-Ingo Weigert <span dir="ltr"><<a href="mailto:jiweigert@gmail.com" target="_blank">jiweigert@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><br><br><div class="gmail_quote" dir="auto"><div dir="ltr">Aveek Basu <<a href="mailto:aveek.basu@lexmark.com" target="_blank">aveek.basu@lexmark.com</a>> schrieb am Mo., 7. Mai 2018, 14:08:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Olaf \ Suzuki \ <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Jörn</span>,<div><br></div><div>Thanks for all your response. Below are our observations with respect to Ubuntu 16.04(x64), 16.10<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">(x64)</span>, 17.10(x86) & 17.10(x64). Also mentioned are the workarounds which make things working:</div><div></div></div></blockquote></div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div></div></blockquote></div><div dir="auto"><br></div><div dir="auto">Hello Aveek,</div><div dir="auto">either creating a softlink, or manually copying the related lexmark-scanner libraries into the system-specific sane folder would do the trick, yes.</div><div dir="auto">However, the best way would be, if your install script would be kicked out and you use the package scripts for pre- and post installation as favourites and forced by Debian based system using .deb-packaging management (dpkg / apt).</div><div dir="auto"><br></div><div dir="auto">Doing this by a manually created install.sh is really a bad idea, if it is not constantly maintained.</div><div dir="auto"><br></div><div dir="auto">If you are forced by management to use your install-script, then I would recommend, that you update it with a function to find out the correct lib-path to install your driver. An example to do this are listed on the website I send before.</div><div dir="auto"><br></div><div dir="auto">Regarding to libusb-0.1:</div><div dir="auto">Afaik Sane has changed from libusb to libusb-1.x in Sane 1.0.27.</div><div dir="auto">Giving the workaround to parallel install the old version may help but could produce side effects which are not wanted.</div><div dir="auto"><br></div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>What I understand from your earlier notes, there has been some changes in the way how <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Debian based distributions arrange their libraries to add <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">"multiarch" support. So does this simply mean we need to handle it out from our scan driver?</span></span></div></div></blockquote></div><div dir="auto">In the way to update your install script or use the regular install scripts as update your dependencies for libusb to use the actual version, yes.</div><div dir="auto"><br></div><div dir="auto"><br></div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Regards,</div><div>Aveek</div><div></div></div></blockquote></div><div dir="auto"><br></div><div dir="auto">Kind regards,</div><div dir="auto">Jörn-Ingo Weigert</div><div dir="auto"><br></div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 6, 2018 at 9:33 AM, Olaf Meeuwissen <span dir="ltr"><<a href="mailto:paddy-hack@member.fsf.org" rel="noreferrer" target="_blank">paddy-hack@member.fsf.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Aveek, Toshiya, Oliver, list,<br>
<br>
suzuki toshiya writes:<br>
<br>
> Checking Ubuntu-16.04.04 LTS, drivers are located in<br>
> /usr/lib/x86_64-linux-gnu/<wbr>sane/, not /usr/lib64, as far<br>
> as I use the binary packages by Ubuntu.<br>
<br>
Correct.  Debian based distributions have rearranged where libraries<br>
(and header files) are installed to add "multiarch" support.<br>
<br>
See <a href="https://wiki.debian.org/Multiarch" rel="noreferrer noreferrer" target="_blank">https://wiki.debian.org/<wbr>Multiarch</a> for details.<br>
<br>
> So, it looks correct. I'm afraid that your system<br>
> mixes i386 binaries & amd64 binaries, or, something<br>
> built by yourself. could you post more about your<br>
> system?<br>
<br>
> Aveek Basu wrote:<br>
>> Hi<br>
>><br>
>> This is Aveek from Lexmark - Driver Product Engineering team. It has<br>
>> recently come to our notice that XSANE fails to detect our scanners<br>
<br>
I expect the same result with *any* SANE frontend, not just XSane.<br>
<br>
>> XSANE tries to read the driver files from /usr/lib/sane whereas the<br>
>> files are present in /usr/lib64/sane. Due to this, XSANE is not able<br>
>> to detect any scanner.<br>
>><br>
>> This issue is being observed from Ubuntu 16.04. Could you please help<br>
>> us understand if it is a bug or a change in behaviour.<br>
<br>
You should see the same in Ubuntu 14.04 and perhaps even in 12.04 as<br>
that is when the first multiarch changes started.<br>
<br>
I'm pretty sure this is a bug in your binary packages.<br>
<br>
Hope this helps,<span class="HOEnZb"><font color="#888888"><br>
--<br>
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27<br>
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9<br>
 Support Free Software                        <a href="https://my.fsf.org/donate" rel="noreferrer noreferrer" target="_blank">https://my.fsf.org/donate</a><br>
 Join the Free Software Foundation              <a href="https://my.fsf.org/join" rel="noreferrer noreferrer" target="_blank">https://my.fsf.org/join</a><br>
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_5880316064150185685m_-4778136336082095555gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Regards,<div>Aveek</div></div></div>
</font></span></div></div>
</blockquote></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Regards,<div>Aveek</div></div></div>
</div></div>