Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236077 - net-print/hplip-2.8.6b - hp-check can't find scanext, but scanext.so exists
Summary: net-print/hplip-2.8.6b - hp-check can't find scanext, but scanext.so exists
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major with 1 vote (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-28 23:17 UTC by Paul McDermott
Modified: 2009-10-14 18:23 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
hplip-2.8.6b-add-sane-lib.patch (hplip-2.8.6b-add-sane-lib.patch,502 bytes, patch)
2008-12-01 23:39 UTC, René 'Necoro' Neumann
Details | Diff
hplip-2.8.6b.ebuild.diff (hplip-2.8.6b.ebuild.diff,869 bytes, patch)
2008-12-01 23:41 UTC, René 'Necoro' Neumann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul McDermott 2008-08-28 23:17:37 UTC
hp-check can't find scanext

Checking 'scanext' SANE scanning extension...
error: NOT FOUND OR FAILED TO LOAD! Please reinstall HPLIP and check for the proper installation of scanext.

scanext exists:
[5060:~]$ ls[I] net-print/hplip
     Available versions:  2.7.10 ~2.7.12 ~2.7.12-r1 ~2.8.2 ~2.8.5 2.8.6b {X cupsddk dbus doc fax minimal parport ppds qt3 qt4 scanner snmp}
     Installed versions:  2.8.6b(23:39:51 28/08/08)(dbus doc ppds qt3 qt4 scanner -cupsddk -fax -minimal -parport -snmp)
     Homepage:            http://hplip.sourceforge.net/
     Description:         HP Linux Imaging and Printing System. Includes net-print/hpijs, scanner drivers and service tools.
 -l /usr/lib/python2.5/site-packages/scanext.so

scanner detected:
[5062:~]$ scanimage -L
device `hpaio:/usb/OfficeJet_V40?serial=MY254D30WPWN' is a Hewlett-Packard OfficeJet_V40 all-in-one

Scanning doesn't work

-rwxr-xr-x 1 root root 14336 2008-08-28 23:39 /usr/lib/python2.5/site-packages/scanext.so

hplip compiled with scanner USE flag:



Reproducible: Always

Steps to Reproduce:
1.emerge -auv hplip
2.hp-setup to set up printer/scanner
3.hp-check produces error message
4.scanimage -L will list scanner
5. scanimage will fail



Expected Results:  
hp-check passes, scanning works


mediacentre ~ # hp-check

HP Linux Imaging and Printing System (ver. 2.8.6b)
Dependency/Version Check Utility ver. 14.0

Copyright (c) 2001-8 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.                                    
2. Run-time check mode (-r or --run): Use this mode to determine if a distro    
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball   
has the proper dependencies installed to successfully run.                      
3. Both compile- and run-time check mode (-b or --both) (Default): This mode    
will check both of the above cases (both compile- and run-time dependencies).   

Saving output in log file: hp-check.log

Initializing. Please wait...
warning: Invalid ppd_dir value: None

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux mediacentre 2.6.20-gentoo-r8 #16 Fri Jun 20 20:39:14 BST 2008 i686 AMD Athlon(tm) AuthenticAMD GNU/Linux

Distribution:
gentoo 1.12.11.1

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.5.2 installed

Checking PyQt version...
OK, version 3.17 installed.

Checking SIP version...
OK, Version 4.7.3 installed

Checking for CUPS...
Status: scheduler is running
Version: 1.3.7
error_log is set to level: info
note: For troubleshooting printing issues, it is best to have the CUPS 'LogLevel'
note: set to 'debug'. To set the LogLevel to debug, edit the file /etc/cups/cupsd.conf (as root),
note: and change the line near the top of the file that begins with 'LogLevel' to read:
note: LogLevel debug
note: Save the file and then restart CUPS (see your OS/distro docs on how to restart CUPS).
note: Now, when you print, helpful debug information will be saved to the file:
note: /var/log/cups/error_log
note: You can monitor this file by running this command in a console/shell:
note: tail -f /var/log/cups/error_log

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.82.4


------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: cups - Common Unix Printing System...
OK, found.

Checking for dependency: cups-ddk - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: cups-devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: dbus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.

Checking for dependency: ppdev - Parallel port support kernel module....
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: PyQt - Qt interface for Python...
OK, found.

Checking for dependency: python-ctypes - A foreign function library for Python...
OK, found.

Checking for dependency: python-dbus - Python bindings for dbus...
OK, found.

Checking for dependency: python-devel - Python development files...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: SANE - Scanning library development files...
OK, found.

Checking for dependency: scanimage - Shell scanning program...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.


----------------------
| HPLIP INSTALLATION |
----------------------


Currently installed HPLIP version...
HPLIP 2.8.6b currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=2.8.6b

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-2.8.6b
icon=/usr/share/applications
cupsbackend=/usr/libexec/cups/backend
cupsfilter=/usr/libexec/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=no
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=no
foomatic-ppd-install=yes
foomatic-rip-hplip-install=no
internal-tag=2.8.6.20b


--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI                        Model           
  --------------------------------  ----------------
  hp:/usb/OfficeJet_V40?serial=MY2  HP OfficeJet V40
  54D30WPWN                                         

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

 
HP_OfficeJet_V40_USB_MY254D30WPWN_HPLIP
---------------------------------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/OfficeJet_V40?serial=MY254D30WPWN
PPD: /etc/cups/ppd/HP_OfficeJet_V40_USB_MY254D30WPWN_HPLIP.ppd
PPD Description: HP OfficeJet V40 Foomatic/hpijs (recommended)
Printer status: printer HP_OfficeJet_V40_USB_MY254D30WPWN_HPLIP is idle.  enabled since Sun 15 Jun 2008 10:08:57 BST
Communication status: Good

OfficeJet_V40
-------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/OfficeJet_V40?serial=MY254D30WPWN
PPD: /etc/cups/ppd/OfficeJet_V40.ppd
PPD Description: HP OfficeJet V40 Foomatic/hpijs (recommended)
Printer status: printer OfficeJet_V40 is idle.  enabled since Thu 28 Aug 2008 22:38:16 BST
Communication status: Good

OfficeJet_V40_2
---------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/OfficeJet_V40?serial=MY254D30WPWN
PPD: /etc/cups/ppd/OfficeJet_V40_2.ppd
PPD Description: HP OfficeJet V40 Foomatic/hpijs (recommended)
Printer status: printer OfficeJet_V40_2 now printing OfficeJet_V40_2-2171.  enabled since Thu 28 Aug 2008 23:51:33 BST
Communication status: Good

OfficeJet_V40_fax
-----------------
Type: Fax
Installed in HPLIP?: Yes, using the hpfax: CUPS backend.
Device URI: hpfax:/usb/OfficeJet_V40?serial=MY254D30WPWN
PPD: /etc/cups/ppd/OfficeJet_V40_fax.ppd
PPD Description: HP Fax
Printer status: printer OfficeJet_V40_fax is idle.  enabled since Thu 28 Aug 2008 22:36:24 BST
Communication status: Good


----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...
device `hpaio:/usb/OfficeJet_V40?serial=MY254D30WPWN' is a Hewlett-Packard OfficeJet_V40 all-in-one


---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
error: NOT FOUND OR FAILED TO LOAD! Please reinstall HPLIP and check for the proper installation of scanext.

-----------------
| USB I/O SETUP |
-----------------


Checking for permissions of USB attached printers...
 
HP Device 0xf11 at 002:002: 
    Device URI: hp:/usb/OfficeJet_V40?serial=MY254D30WPWN
    Device node: /dev/bus/usb/002/002
    Mode: 0660

-----------
| SUMMARY |
-----------

error: 5 errors and/or warnings.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html


Done.

mediacentre ~ # emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.20-gentoo-r8 i686)
=================================================================
System uname: 2.6.20-gentoo-r8 i686 AMD Athlon(tm)
Timestamp of tree: Tue, 12 Aug 2008 14:46:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://www.gigaload.org/gentoo.org/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="en_GB.utf8"
LINGUAS="en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dfx 3dnowex X acpi alsa berkdb bonobo bzip2 cairo cdr cli cracklib crypt cups dbus directfb divx4linux doc dri dvd dvdr dvdread eds emboss encode esd evo fam fame fbcon firefox font-server fortran gcj gdbm gif gphoto2 gpm gstreamer gtk hal iconv isdnlog java jpeg lzo mad matrox midi mikmod mmx mmx2 mng mozilla mp3 mpeg mplayer mudflap mysql ncurses nls nptl nptlonly ntfs ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime quotes readline real reflection reiserfs rtc scanner sdl session spell spl sql sse ssl svg tcpd threads tiff truetype unicode usb userlocales vorbis win32codecs wmf x86 xanim xml xorg xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="sony_dscf55" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="vesa fbdev nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Paul McDermott 2008-08-28 23:20:10 UTC
Also, /var/log/messages reports:

Aug 29 00:16:35 mediacentre python: hp-check[20812]: error: 5 errors and/or warnings.
Aug 29 00:17:04 mediacentre OfficeJet_V40?serial=MY254D30WPWN: io/hpmud/musb.c 1058: unable to open hp:/usb/OfficeJet_V40?serial=MY254D30WPWN
Aug 29 00:17:04 mediacentre OfficeJet_V40?serial=MY254D30WPWN: prnt/backend/hp.c 675: INFO: open device failed; will retry in 30 seconds...
Aug 29 00:17:34 mediacentre OfficeJet_V40?serial=MY254D30WPWN: io/hpmud/musb.c 1058: unable to open hp:/usb/OfficeJet_V40?serial=MY254D30WPWN
Aug 29 00:17:34 mediacentre OfficeJet_V40?serial=MY254D30WPWN: prnt/backend/hp.c 675: INFO: open device failed; will retry in 30 seconds...
Aug 29 00:18:04 mediacentre OfficeJet_V40?serial=MY254D30WPWN: io/hpmud/musb.c 1058: unable to open hp:/usb/OfficeJet_V40?serial=MY254D30WPWN
Aug 29 00:18:04 mediacentre OfficeJet_V40?serial=MY254D30WPWN: prnt/backend/hp.c 675: INFO: open device failed; will retry in 30 seconds...
Aug 29 00:18:34 mediacentre OfficeJet_V40?serial=MY254D30WPWN: io/hpmud/musb.c 1058: unable to open hp:/usb/OfficeJet_V40?serial=MY254D30WPWN
Aug 29 00:18:34 mediacentre OfficeJet_V40?serial=MY254D30WPWN: prnt/backend/hp.c 675: INFO: open device failed; will retry in 30 seconds...

Printer is HP OfficeJet v40 all in one scanner/printer/copier, connected over USB

Comment 2 Paul McDermott 2008-08-28 23:35:45 UTC
hp-scan reports missing symbol sane_open

[5002:~]$ hp-scan -n

HP Linux Imaging and Printing System (ver. 2.8.6b)
Scan Utility ver. 1.0

Copyright (c) 2001-8 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

warning: No destinations specified. Adding 'file' destination by default.
warning: File destination enabled with no output file specified.
Setting output format to JPEG for color/lineart mode.
warning: Defaulting to '/home/paul/hpscan001.jpg'.
Traceback (most recent call last):
  File "/usr/bin/hp-scan", line 857, in <module>
    from scan import sane
  File "/usr/share/hplip/scan/sane.py", line 58, in <module>
    import scanext
ImportError: /usr/lib/python2.5/site-packages/scanext.so: undefined symbol: sane_open
Comment 3 Wormo (RETIRED) gentoo-dev 2008-08-28 23:55:52 UTC
It sounds like the problem is in your sane install

Show results of:
ldd /usr/lib/python2.5/site-packages/scanext.so

emerge -pv media-gfx/sane-backends



Comment 4 Paul McDermott 2008-08-29 00:04:28 UTC
mediacentre paul # ldd /usr/lib/python2.5/site-packages/scanext.so
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/libc.so.6 (0xb7e69000)
        /lib/ld-linux.so.2 (0x80000000)
mediacentre paul # emerge -pv media-gfx/sane-backends

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-gfx/sane-backends-1.0.19-r1  USE="doc gphoto2 usb -ipv6 -v4l" 0 kB 

Total: 1 package (1 reinstall), Size of downloads: 0 kB
mediacentre paul # 
Comment 5 René 'Necoro' Neumann 2008-12-01 23:39:57 UTC
Created attachment 174021 [details, diff]
hplip-2.8.6b-add-sane-lib.patch

This patch removed the issue for me. It just makes the linker link again libsane too ;) For some reason is was commented out in the Makefile.am
Comment 6 René 'Necoro' Neumann 2008-12-01 23:41:36 UTC
Created attachment 174023 [details, diff]
hplip-2.8.6b.ebuild.diff

The patch for the ebuild :)
Comment 7 Paul McDermott 2008-12-13 16:49:26 UTC
Works for me too. Well done!

Sorry for the delay in getting round to check.
Comment 8 René 'Necoro' Neumann 2008-12-13 16:52:46 UTC
Ehm - why do you think that this bug is fixed? - I just proposed a patch - it is in no way included in the portage tree...
Comment 9 Paul McDermott 2008-12-13 17:16:18 UTC
OK, not fixed.
Comment 10 Marc Hartstein 2008-12-15 21:21:01 UTC
(In reply to comment #6)

Thanks, this fixed things for me, though I had to remerge dev-python/imaging as well for some reason.
Comment 11 Pacho Ramos gentoo-dev 2009-07-17 17:20:57 UTC
Is this still needed with 3.9.4b-r1 ?
Comment 12 Paul McDermott 2009-07-19 23:03:24 UTC
3.9.4b-r1 no longer has this problem for me
Comment 13 Pacho Ramos gentoo-dev 2009-07-20 08:44:59 UTC
Maybe this bug could be closed then, What does printing team think?
Comment 14 Daniel Pielmeier gentoo-dev 2009-10-14 18:23:13 UTC
Fixed upstream.