[sane-devel] genesys backend

Jens Luedicke jens.luedicke at gmail.com
Wed Aug 31 11:22:24 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hiya...

I get the following compiler errors when trying to build the
genesys backend:

jens at gattaca ~ $ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/specs
Configured with: ../gcc-3.3.3/configure --host=i686-pc-linux-gnu
- --enable-languages=c++ --prefix=/usr --infodir=/usr/share/info
- --mandir=/usr/share/man --enable-__cxa_atexit --enable-threads
- --disable-nls --enable-target-optspace --with-gnu-ld --with-system-zlib
- --enable-shared
Thread model: posix
gcc version 3.3.3


jens at gattaca ~/devel/sane-backends $ make
making all in include
make[1]: Entering directory `/home/jens/devel/sane-backends/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jens/devel/sane-backends/include'
making all in lib
make[1]: Entering directory `/home/jens/devel/sane-backends/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jens/devel/sane-backends/lib'
making all in sanei
make[1]: Entering directory `/home/jens/devel/sane-backends/sanei'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jens/devel/sane-backends/sanei'
making all in backend
make[1]: Entering directory `/home/jens/devel/sane-backends/backend'
 gcc -c -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations
- -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes
- -pedantic -ansi -DHAVE_CONFIG_H -I. -I. -I../include -I../include
- -DPATH_SANE_CONFIG_DIR=/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/share
- -DPATH_SANE_LOCK_DIR=/usr/var -DV_MAJOR=1 -DV_MINOR=0
- -DBACKEND_NAME=genesys_gl646 -DLIBDIR=/usr/lib/sane genesys_gl646.c
- -fPIC -DPIC -o .libs/genesys_gl646.o
genesys_gl646.c:4300: warning: initialization from incompatible pointer type
genesys_gl646.c:4303: warning: initialization from incompatible pointer type
genesys_gl646.c:4306: warning: initialization from incompatible pointer type
genesys_gl646.c:4308: warning: initialization from incompatible pointer type
genesys_gl646.c:4309: warning: excess elements in struct initializer
genesys_gl646.c:4309: warning: (near initialization for `gl646_cmd_set')
genesys_gl646.c:4310: warning: excess elements in struct initializer
genesys_gl646.c:4310: warning: (near initialization for `gl646_cmd_set')
 gcc -c -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations
- -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes
- -pedantic -ansi -DHAVE_CONFIG_H -I. -I. -I../include -I../include
- -DPATH_SANE_CONFIG_DIR=/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/share
- -DPATH_SANE_LOCK_DIR=/usr/var -DV_MAJOR=1 -DV_MINOR=0
- -DBACKEND_NAME=genesys_gl841 -DLIBDIR=/usr/lib/sane genesys_gl841.c
- -fPIC -DPIC -o .libs/genesys_gl841.o
genesys_gl841.c:4790: warning: initialization from incompatible pointer type
genesys_gl841.c:4793: warning: initialization from incompatible pointer type
genesys_gl841.c:4796: warning: initialization from incompatible pointer type
genesys_gl841.c:4798: warning: initialization from incompatible pointer type
genesys_gl841.c:4799: warning: excess elements in struct initializer
genesys_gl841.c:4799: warning: (near initialization for `gl841_cmd_set')
genesys_gl841.c:4800: warning: excess elements in struct initializer
genesys_gl841.c:4800: warning: (near initialization for `gl841_cmd_set')
 gcc -c -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations
- -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes
- -pedantic -ansi -DHAVE_CONFIG_H -I. -I. -I../include -I../include
- -DPATH_SANE_CONFIG_DIR=/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/share
- -DPATH_SANE_LOCK_DIR=/usr/var -DV_MAJOR=1 -DV_MINOR=0
- -DBACKEND_NAME=genesys -DLIBDIR=/usr/lib/sane genesys.c  -fPIC -DPIC -o
.libs/genesys.o
In file included from genesys.c:72:
genesys_devices.c:246: warning: excess elements in struct initializer
genesys_devices.c:246: warning: (near initialization for `Motor[0]')
genesys_devices.c:247: error: extra brace group at end of initializer
genesys_devices.c:247: error: (near initialization for `Motor[0]')
genesys_devices.c:247: error: extra brace group at end of initializer
genesys_devices.c:247: error: (near initialization for `Motor[0]')
genesys_devices.c:253: error: extra brace group at end of initializer
genesys_devices.c:253: error: (near initialization for `Motor[0]')
genesys_devices.c:259: warning: excess elements in struct initializer
genesys_devices.c:259: warning: (near initialization for `Motor[0]')
genesys_devices.c:264: warning: excess elements in struct initializer
genesys_devices.c:264: warning: (near initialization for `Motor[1]')
genesys_devices.c:265: error: extra brace group at end of initializer
genesys_devices.c:265: error: (near initialization for `Motor[1]')
genesys_devices.c:265: error: extra brace group at end of initializer
genesys_devices.c:265: error: (near initialization for `Motor[1]')
genesys_devices.c:271: error: extra brace group at end of initializer
genesys_devices.c:271: error: (near initialization for `Motor[1]')
genesys_devices.c:277: warning: excess elements in struct initializer
genesys_devices.c:277: warning: (near initialization for `Motor[1]')
genesys_devices.c:282: warning: excess elements in struct initializer
genesys_devices.c:282: warning: (near initialization for `Motor[2]')
genesys_devices.c:283: error: extra brace group at end of initializer
genesys_devices.c:283: error: (near initialization for `Motor[2]')
genesys_devices.c:283: error: extra brace group at end of initializer
genesys_devices.c:283: error: (near initialization for `Motor[2]')
genesys_devices.c:289: error: extra brace group at end of initializer
genesys_devices.c:289: error: (near initialization for `Motor[2]')
genesys_devices.c:295: warning: excess elements in struct initializer
genesys_devices.c:295: warning: (near initialization for `Motor[2]')
genesys_devices.c:300: warning: excess elements in struct initializer
genesys_devices.c:300: warning: (near initialization for `Motor[3]')
genesys_devices.c:301: error: extra brace group at end of initializer
genesys_devices.c:301: error: (near initialization for `Motor[3]')
genesys_devices.c:301: error: extra brace group at end of initializer
genesys_devices.c:301: error: (near initialization for `Motor[3]')
genesys_devices.c:307: error: extra brace group at end of initializer
genesys_devices.c:307: error: (near initialization for `Motor[3]')
genesys_devices.c:313: warning: excess elements in struct initializer
genesys_devices.c:313: warning: (near initialization for `Motor[3]')
genesys_devices.c:318: warning: excess elements in struct initializer
genesys_devices.c:318: warning: (near initialization for `Motor[4]')
genesys_devices.c:319: error: extra brace group at end of initializer
genesys_devices.c:319: error: (near initialization for `Motor[4]')
genesys_devices.c:319: error: extra brace group at end of initializer
genesys_devices.c:319: error: (near initialization for `Motor[4]')
genesys_devices.c:325: error: extra brace group at end of initializer
genesys_devices.c:325: error: (near initialization for `Motor[4]')
genesys_devices.c:331: warning: excess elements in struct initializer
genesys_devices.c:331: warning: (near initialization for `Motor[4]')
genesys_devices.c:336: warning: excess elements in struct initializer
genesys_devices.c:336: warning: (near initialization for `Motor[5]')
genesys_devices.c:337: error: extra brace group at end of initializer
genesys_devices.c:337: error: (near initialization for `Motor[5]')
genesys_devices.c:337: error: extra brace group at end of initializer
genesys_devices.c:337: error: (near initialization for `Motor[5]')
genesys_devices.c:343: error: extra brace group at end of initializer
genesys_devices.c:343: error: (near initialization for `Motor[5]')
genesys_devices.c:349: warning: excess elements in struct initializer
genesys_devices.c:349: warning: (near initialization for `Motor[5]')
genesys.c: In function `sanei_genesys_fe_write_data':
genesys.c:399: error: structure has no member named `bulk_write_register'
genesys.c: At top level:
genesys.c:628: warning: no previous prototype for
`sanei_genesys_create_slope_table3'
genesys.c: In function `sanei_genesys_create_slope_table3':
genesys.c:644: error: structure has no member named `slopes'
genesys.c:645: error: structure has no member named `slopes'
genesys.c:667: error: structure has no member named `slopes'
genesys.c:668: error: structure has no member named `slopes'
genesys.c: In function `genesys_create_slope_table4':
genesys.c:706: error: structure has no member named `slopes'
genesys.c:707: error: structure has no member named `slopes'
genesys.c:729: error: structure has no member named `slopes'
genesys.c:730: error: structure has no member named `slopes'
genesys.c: In function `sanei_genesys_create_slope_table':
genesys.c:894: error: `GENESYS_FLAG_ALT_SLOPE_CREATE' undeclared (first
use in this function)
genesys.c:894: error: (Each undeclared identifier is reported only once
genesys.c:894: error: for each function it appears in.)
genesys.c: At top level:
genesys.c:1059: error: conflicting types for
`sanei_genesys_create_gamma_table'
genesys_low.h:503: error: previous declaration of
`sanei_genesys_create_gamma_table'
genesys.c:1086: warning: no previous prototype for
`sanei_genesys_exposure_time2'
genesys.c: In function `sanei_genesys_exposure_time2':
genesys.c:1088: error: structure has no member named `slopes'
genesys.c: In function `genesys_send_offset_and_shading':
genesys.c:1242: error: structure has no member named `bulk_write_data'
genesys.c: In function `sanei_genesys_read_data_from_scanner':
genesys.c:1373: error: structure has no member named `bulk_read_data'
genesys.c: In function `genesys_dark_shading_calibration':
genesys.c:2144: error: structure has no member named `bulk_write_register'
genesys.c:2191: error: structure has no member named `bulk_write_register'
genesys.c: In function `genesys_white_shading_calibration':
genesys.c:2367: error: structure has no member named `bulk_write_register'
genesys.c: In function `genesys_start_scan':
genesys.c:3160: error: structure has no member named `bulk_write_register'
genesys.c: In function `genesys_read_ordered_data':
genesys.c:3536: error: structure has no member named `bulk_read_data'
genesys.c: In function `sane_genesys_close':
genesys.c:4530: warning: passing arg 1 of `free' discards qualifiers
from pointer target type
make[1]: *** [genesys.lo] Error 1
make[1]: Leaving directory `/home/jens/devel/sane-backends/backend'
make: *** [all-recursive] Error 1



- --
Jens Luedicke
web: http://perldude.de

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDFZLwiCvkc4H0gTERAln0AKDsZqljsE5Fq0lB0z9zBVNZOao0XwCfd/q/
xEFwH5NCquZZj78ISMJJojI=
=UCnK
-----END PGP SIGNATURE-----



More information about the sane-devel mailing list