[sane-devel] HP ScanJet 4200 backend ("hp4200") and SANE 1.0.13

Till Kamppeter till.kamppeter at gmx.net
Thu Dec 11 00:06:26 GMT 2003


Oi,

I am packaging SANE 1.0.13 for Mandrake Linux. I want to include the 
"hp4200" backend. For that I have updated the patch from SourceForge 
(http://sourceforge.net/projects/hp4200-backend) to work with SANE 
1.0.13. The updated patch you can find at

http://www.linuxprinting.org/till/tmp/sane-backends-1.0.13-hp4200-0.4.patch.bz2

Unfortunately, SANE does not compile any more after applying this patch. 
I get the following error message:

-----------------------------------------------------------------------------
  i586-mandrake-linux-gnu-gcc -c -O2 -fomit-frame-pointer -pipe 
-march=i586 -mcpu=pentiumpro -W -Wall -DHAVE_CONFIG_H -I. -I. 
-I../include -I../include -DPATH_SANE_CONFIG_DIR=/etc/sane.d 
-DPATH_SANE_DATA_DIR=/usr/share -DV_MAJOR=1 -DV_MINOR=0 
-I/usr/include/gphoto2 -I/usr/include -DBACKEND_NAME=hp4200 
-DLIBDIR=/usr/lib/sane hp4200.c  -fPIC -DPIC -o .libs/hp4200.o
In file included from hp4200.c:117:
../include/sane/sanei_backend.h:155: error: conflicting types for 
`Option_Value'
hp4200.h:53: error: previous declaration of `Option_Value'
hp4200.c: In function `sane_hp4200_init':
hp4200.c:2476: warning: unused parameter `authorize'
hp4200.c: In function `sane_hp4200_set_io_mode':
hp4200.c:3036: warning: unused parameter `h'
hp4200.c: In function `sane_hp4200_get_select_fd':
hp4200.c:3046: warning: unused parameter `h'
hp4200.c:3046: warning: unused parameter `fd'
hp4200.c: At top level:
hp4200.c:496: warning: `dump_register_cache' defined but not used
hp4200.c:652: warning: `compute_datalink_bandwidth' defined but not used
make[1]: *** [hp4200.lo] Error 1
make[1]: Leaving directory 
`/home/tkamppeter/rpm/BUILD/sane-backends-1.0.13/backend'
make: *** [all-recursive] Error 1
-----------------------------------------------------------------------------

Has someone an idea how to fix this? Otherwise support for the HP 
ScanJet 4200 will get lost in SANE 1.0.13 and also in the next Mandrake 
release.

If there is no solution, I suggest to list the HP ScanJet 4200 in the 
scanner database as "Unsupported" again, as it does not work with the 
current version of SANE.

    Till





More information about the sane-devel mailing list