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

Till Kamppeter till.kamppeter at gmx.net
Thu Dec 11 19:03:33 GMT 2003


Thanks for the patch, but it seems to need more adaptation:

---------------------------------------------------------------------------
i586-mandrake-linux-gnu-gcc -o gamma4scanimage gamma4scanimage.o 
-L/usr/lib -lm
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 hp4200offd.c
i586-mandrake-linux-gnu-gcc -o hp4200offd hp4200offd.o 
../backend/.libs/lm9830.o  -L/usr/lib ../sanei/libsanei.a
../sanei/libsanei.a(sanei_usb.o)(.text+0x561): In function `sanei_usb_init':
: undefined reference to `usb_init'
../sanei/libsanei.a(sanei_usb.o)(.text+0x573): In function `sanei_usb_init':
: undefined reference to `usb_get_busses'
../sanei/libsanei.a(sanei_usb.o)(.text+0x580): In function `sanei_usb_init':
: undefined reference to `usb_get_busses'
../sanei/libsanei.a(sanei_usb.o)(.text+0x8a2): In function `sanei_usb_init':
: undefined reference to `usb_set_debug'
../sanei/libsanei.a(sanei_usb.o)(.text+0x8ac): In function `sanei_usb_init':
: undefined reference to `usb_find_busses'
../sanei/libsanei.a(sanei_usb.o)(.text+0x8b1): In function `sanei_usb_init':
: undefined reference to `usb_find_devices'
../sanei/libsanei.a(sanei_usb.o)(.text+0xaa9): In function 
`sanei_usb_get_vendor_product':
: undefined reference to `usb_device'
../sanei/libsanei.a(sanei_usb.o)(.text+0xabf): In function 
`sanei_usb_get_vendor_product':
: undefined reference to `usb_device'
../sanei/libsanei.a(sanei_usb.o)(.text+0xe80): In function `sanei_usb_open':
: undefined reference to `usb_open'
../sanei/libsanei.a(sanei_usb.o)(.text+0xe93): In function `sanei_usb_open':
: undefined reference to `usb_device'
../sanei/libsanei.a(sanei_usb.o)(.text+0xec9): In function `sanei_usb_open':
: undefined reference to `usb_set_configuration'
../sanei/libsanei.a(sanei_usb.o)(.text+0xee6): In function `sanei_usb_open':
: undefined reference to `usb_claim_interface'
../sanei/libsanei.a(sanei_usb.o)(.text+0x11b5): In function 
`sanei_usb_open':
: undefined reference to `usb_strerror'
../sanei/libsanei.a(sanei_usb.o)(.text+0x11fc): In function 
`sanei_usb_open':
: undefined reference to `usb_close'
../sanei/libsanei.a(sanei_usb.o)(.text+0x1387): In function 
`sanei_usb_close':
: undefined reference to `usb_release_interface'
../sanei/libsanei.a(sanei_usb.o)(.text+0x1392): In function 
`sanei_usb_close':
: undefined reference to `usb_close'
../sanei/libsanei.a(sanei_usb.o)(.text+0x143d): In function 
`sanei_usb_read_bulk':
: undefined reference to `usb_bulk_read'
../sanei/libsanei.a(sanei_usb.o)(.text+0x159e): In function 
`sanei_usb_read_bulk':
: undefined reference to `usb_clear_halt'
../sanei/libsanei.a(sanei_usb.o)(.text+0x164d): In function 
`sanei_usb_write_bulk':
: undefined reference to `usb_bulk_write'
../sanei/libsanei.a(sanei_usb.o)(.text+0x1777): In function 
`sanei_usb_write_bulk':
: undefined reference to `usb_clear_halt'
../sanei/libsanei.a(sanei_usb.o)(.text+0x1907): In function 
`sanei_usb_control_msg':
: undefined reference to `usb_control_msg'
../sanei/libsanei.a(sanei_usb.o)(.text+0x1910): In function 
`sanei_usb_control_msg':
: undefined reference to `usb_strerror'
../sanei/libsanei.a(sanei_usb.o)(.text+0x1a2e): In function 
`sanei_usb_read_int':
: undefined reference to `usb_bulk_read'
../sanei/libsanei.a(sanei_usb.o)(.text+0x1b74): In function 
`sanei_usb_read_int':
: undefined reference to `usb_clear_halt'
collect2: ld returned 1 exit status
make[1]: *** [hp4200offd] Error 1
make[1]: Leaving directory 
`/home/tkamppeter/rpm/BUILD/sane-backends-1.0.13/tools'
make: *** [all-recursive] Error 1
---------------------------------------------------------------------------

    Till

Adrian Perez Jorge wrote:
> 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
>>
>>
> 
> 
> 






More information about the sane-devel mailing list