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

Adrian Perez Jorge adrianpj@users.sourceforge.net
Thu, 11 Dec 2003 19:30:28 +0000


Hi all,

   After reading this I have also updated the patch for SANE 1.0.13 but
until Saturday at the afternoon I can not test it.  Can anybody here
that owns an hp4200c scanner and is capable of patching and compiling
SANE 1.0.13 test this stuff before Saturday?

   You can download the patch at


http://hp4200-backend.sourceforge.net/sane-backends-1.0.13-hp4200-0.4.patch.gz

   I would love to see the backend integrated into the official SANE
distribution to avoid continuous patches after every new SANE relase
(SANE releases are much faster than me :P)

  More support will come after using the scanner again, sorry.

  Till: thanks for your effort!

Till Kamppeter wrote:

> 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
>
>