Bug 209426

Summary: print/hplip-plugin - common/utils.c 188: unable to load library /usr/local/share/hplip/scan/plugins/bb_soapht.so: Shared object "bb_soapht.so.1" not found, required by "bb_soapht.so"
Product: Ports & Packages Reporter: Andreas Beck <jarles.live>
Component: Individual Port(s)Assignee: Max Brazhnikov <makc>
Status: Closed FIXED    
Severity: Affects Only Me CC: tijl
Priority: --- Flags: bugzilla: maintainer-feedback? (makc)
Version: Latest   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
patch none

Description Andreas Beck 2016-05-10 14:13:18 UTC
There is a bug in print/hplip-plugin (hplip-plugin-3.16.2_2)

When i want to scan with the HP Pro MFP m125nw, i get this error in /var/log/messages:

hp-scan: common/utils.c 188: unable to load library /usr/local/share/hplip/scan/plugins/bb_soapht.so: Shared object "bb_soapht.so.1" not found, required by "bb_soapht.so"
hp-scan: common/utils.c 220: Invalid Library hanlder pLibHandler = NULL.

Printing works...

Greets
Comment 1 Andreas Beck 2016-05-10 14:20:07 UTC
When I reinstall print/hplip-plugin, this is the output:

===>   Registering installation for hplip-plugin-3.16.2_2
(hplip-plugin-3.16.2_2) /usr/ports/print/hplip-plugin/work/stage//usr/local/share/hplip/fax/plugins/fax_marvell.so - required shared library fax_marvell-x86_64.so.1 not found
(hplip-plugin-3.16.2_2) /usr/ports/print/hplip-plugin/work/stage//usr/local/share/hplip/scan/plugins/bb_escl.so - required shared library bb_escl.so.1 not found
(hplip-plugin-3.16.2_2) /usr/ports/print/hplip-plugin/work/stage//usr/local/share/hplip/scan/plugins/bb_marvell.so - required shared library bb_marvell.so.1 not found
(hplip-plugin-3.16.2_2) /usr/ports/print/hplip-plugin/work/stage//usr/local/share/hplip/scan/plugins/bb_soap.so - required shared library bb_soap.so.1 not found
(hplip-plugin-3.16.2_2) /usr/ports/print/hplip-plugin/work/stage//usr/local/share/hplip/scan/plugins/bb_soapht.so - required shared library bb_soapht.so.1 not found
Installing hplip-plugin-3.16.2_2...
===>  Cleaning for hplip-plugin-3.16.2_2
Comment 2 Tijl Coosemans freebsd_committer freebsd_triage 2016-05-10 15:27:02 UTC
Created attachment 170181 [details]
patch

Can you try this patch for the port?

The problem is that some of the plugin libraries have an SONAME field that is different from the name of the library.  The patch first builds dummy plugins without an SONAME and then links the wrapper libraries against that.
Comment 3 Andreas Beck 2016-05-10 15:58:40 UTC
Yes, with the patch it works.
Installation without Problems and scanning is now possible.

Thanks!
Comment 4 Andreas Beck 2016-05-10 15:59:16 UTC
fixed
Comment 5 commit-hook freebsd_committer freebsd_triage 2016-05-10 16:47:34 UTC
A commit references this bug:

Author: tijl
Date: Tue May 10 16:46:36 UTC 2016
New revision: 414946
URL: https://svnweb.freebsd.org/changeset/ports/414946

Log:
  Some plugins have an SONAME field that is different from the library name
  so the wrapper library that links to such a plugin cannot find it at
  runtime.  Create dummy plugins without SONAME and link the wrapper libraries
  against that.

  PR:		209426
  Tested by:	Andreas Beck <jarles.live@gmail.com>

Changes:
  head/print/hplip-plugin/Makefile