On Mon, Jun 16, 2014 at 01:20:02PM +0200, Sebastian Reitenbach wrote:
> Hi,
> 
> I have a HP LaserJet Pro CM1415fn, connected via network. Printing works fine 
> as described
> in the package README of the hplip command.
> 
> However, I tried to configure scanning, but struggled a bit.
> 
> I added hpaio to /etc/sane.d/dll.conf,
> 
> scanimage -L
> 
> then showed me the printer:
> device `hpaio:/net/HP_LaserJet_CM1415fn?ip=10.0.0.36' is a Hewlett-Packard 
> HP_LaserJet_CM1415fn all-in-one
> 
> However, scanning, produced error:
> for example hp-scan:
> ...
> Using device hpaio:/net/HP_LaserJet_CM1415fn?ip=10.0.0.36
> Opening connection to device...
> error: SANE: Error during device I/O (code=9)
> 
> I also tried scanimage > output.pnm
> but got similar I/O error.
> 
> Then in /var/log/messages I found stuff like:
> 
> Jun 14 08:16:40 communicator hp-scan: hp-scan[3549]: error: SANE: Error 
> during device I/O (code=9)
> Jun 14 08:21:59 communicator scanimage: common/utils.c 189: unable to load 
> library libhpmud.so.0: File not found
> Jun 14 08:21:59 communicator scanimage: common/utils.c 189: unable to load 
> library libhpmud.so.0: File not found
> Jun 14 08:21:59 communicator scanimage: common/utils.c 221: Invalid Library 
> hanlder pLibHandler = NULL.

Does this work for you?

Index: Makefile
===================================================================
RCS file: /cvs/ports/print/hplip/Makefile,v
retrieving revision 1.113
diff -u -p -u -p -r1.113 Makefile
--- Makefile    21 Apr 2014 12:23:22 -0000      1.113
+++ Makefile    16 Jun 2014 12:32:00 -0000
@@ -21,7 +21,7 @@ PKGNAME-hpijs=                hpijs-${V}
 PKGNAME-gui=           hplip-gui-${V}
 
 REVISION-main=         0
-REVISION-hpaio=                0
+REVISION-hpaio=                1
 REVISION-hpcups=       0
 
 SHARED_LIBS +=  hpmud          2.0 # 0.6
@@ -144,6 +144,8 @@ CONFIGURE_ARGS=             ${CONFIGURE_SHARED} \
 pre-configure:
        find ${WRKSRC} -name \*.py | \
                xargs perl -pi -e 's,(/usr/bin/python|/usr/bin/env 
python),${MODPY_BIN},g'
+       perl -pi -e "s,libhpmud.so.0,libhpmud.so.${LIBhpmud_VERSION},g" \
+               ${WRKSRC}/scan/sane/{soapht,marvell,soap}.c
        perl -pi -e 's,/usr/bin/python,${MODPY_BIN},g' \
                ${WRKSRC}/fax/filters/pstotiff
        perl -pi -e 's,/var/lib,/var/db,g' \

Reply via email to