On Fri, 26 Jul 2019 18:40:56 +1000 Wayne Blaszczyk via blfs-support 
<[email protected]> wrote:

> On Thu, 2019-07-25 at 21:14 +0200, Stephen Berman via blfs-support wrote:
[...]
>> I downloaded the relevant source RPMs from the openSUSE Tumbleweed repo,
>> converted them to tar.gz and tried to build them according to the RPM
>> spec files, but in the case of hplip there were a lot of
>> openSUSE-specific bits and the specs were too complicated for me to
>> follow completely.  But I did end up with an apparently working hplip,
>> and was, as before, able to install the printer queue and print a test
>> page.  But as soon as I installed the plug-in for the scanner, scanimage
>> again segfaulted.  There are a lot of entries in the openSUSE udev
>> scanner rules file that the vanilla hplip of the same version doesn't
>> have, but adding them didn't make a difference (in the udev rules,
>> openSUSE uses the lp group where BLFS uses the scanner group, but I
>> changed the entries I added accordingly).  Comparing the hplip files in
>> Tumbleweed and BLFS, I didn't notice any permission differences.  The
>> segfault seems to be at a low level; there are some library differences
>> between my Tumbleweed and BLFS systems (e.g libjpeg.so.8
>> vs. libjpeg.so.62) but I doubt that's the cause of the crash.
>>
>> I've retitled this thread, since the original title is no longer the
>> problem.  Is there anyone here who has built hplip in BLFS, installed
>> the scanner plug-in and can use scanimage and xsane?
>>
>> Steve Berman
>
> Hi Steve,
>
> I've attached my two build files for this, I'm sure you can interpret them
> with no issue.
> I don't built qt as I don't see the need for it.
> I can do everything I need from the command line including configuration and
> using my scanner.

Thanks very much for providing these, Wayne.

I rebuilt hplip (after uninstalling the one I'd previously installed)
following your script, except that I added --disable-network-build to
configure because I don't have net-snmp installed; the build went
through without error.  I ran `make check' since it is in your script,
but it returned "Nothing to be done for 'check'."  The installation also
went through without error.

I then followed your script to install the hplip plugin.  I wondered why
your script uses the version 3.19.5 plugin; is it because 3.19.6 was not
yet available when you made the script, or did you have problems with
the 3.19.6 plugin?  Anyway, I adhered to your script and downloaded the
3.19.5 runfile and followed the script instructions, though I hesitated
when I saw you have systemd as a required dependency, since my BLFS is
the non-systemd version; nevertheless, the installation went through
without error.

Then I turned on my HP device and successfully printed out a test page,
and then I ran `scanimage -L', and to my delight, it identified my
device.  But then I ran `scanimage >image.pnm', and it returned "open of
device hpaio:/usb/HP_ColorLaserJet_MFP_M278-M281?serial=VNBNM1K0H8
failed: Error during device I/O" and the plug-in installer window popped
up saying "HP Device requires proprietary plug-in which is missing."  I
cancelled the dialog rather than continue with the plug-in
installation.  I assume you didn't have this problem?

In reviewing what your plugin instructions install, I noticed several
libraries were missing that had been installed when I had previously
installed the plugin using the hp-plugin script, and which are also
installed in my openSUSE Tumbleweed, namely
hpgt2500_ntdcmsdll-x86_64.so, libsane-hp2000S1-x86_64.so.1.0.25,
libsane-hpgt2500-x86_64.so.1.0.27 and libjpeg-x86_64.so.9.2.0.  So I
added the first three to /usr/lib/sane and the libjpeg to /usr/lib, made
symlinks leaving out the architecture and version bits.  Then I ran
`scanimage >image.pnm' again and it immediately segfaulted.  By process
of elimination I determined that having
libsane-hpgt2500-x86_64.so.1.0.27 in /usr/lib/sane is what causes the
segfault, while with either or both of the other two libraries in
/usr/lib/sane, there is no segfault but hplip thinks no plugin is
installed.  (The presence or absence of libjpeg.so.9 didn't make a
difference.)

So it seems libsane-hpgt2500-x86_64.so.1.0.27 is needed for the scanner
on my device to function, yet it causes a segfault in BLFS, though not
in openSUSE Tumbleweed.  I guess now it's time to take this to an hplip
forum or bugtracker, unless you or someone else can think of something
else to try.

I am curious, though, where you found the information to make the plugin
build script; I could not see it in the shell script part of the plugin
runfile, in particular, which files to install where and which not to
install.  Did you find it somewhere on the web?

> Regards,
> Wayne.

Thanks,

Steve Berman
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to