[sane-devel] Experimental lexmark backend inclusion in regular CVS

Stéphane VOLTZ stef.dev at free.fr
Thu Aug 30 05:07:27 UTC 2007


Le jeudi 30 août 2007, Fred Odendaal a écrit :
> Stef,
>
> I can't build the backend with the latest CVS checkout of the
>
> experimental code. Here is the error message I get:
> >  gcc -c -g -O2 -W -Wall -DHAVE_CONFIG_H -I. -I. -I../include
> > -I../include -D_REENTRANT -I/usr/include/gphoto2
> > -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
> > -DPATH_SANE_DATA_DIR=/usr/local/share
> > -DPATH_SANE_LOCK_DIR=/usr/local/var/lock/sane -DV_MAJOR=1 -DV_MINOR=0
> > -DBACKEND_NAME=lexmark-x1100 -DLIBDIR=/usr/local/lib/sane
> > lexmark-x1100.c  -fPIC -DPIC -o .libs/lexmark-x1100.o
> > In file included from ../include/sane/sanei_backend.h:29,
> >                  from lexmark-x1100.c:60:
> > ../include/sane/sanei_debug.h:88: error: expected '=', ',', ';', 'asm'
> > or '__attribute__' before '-' token
> > ../include/sane/sanei_debug.h:106: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before '-' token
> > In file included from lexmark-x1100.c:60:
> > ../include/sane/sanei_backend.h:110: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before '-' token
> > ../include/sane/sanei_backend.h:111: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before '-' token
> > ../include/sane/sanei_backend.h:112: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before '-' token
> > ../include/sane/sanei_backend.h:114: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before '-' token
> > ../include/sane/sanei_backend.h:115: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before '-' token
> > ../include/sane/sanei_backend.h:117: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before '-' token
> > ../include/sane/sanei_backend.h:118: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before '-' token
> > ../include/sane/sanei_backend.h:119: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before '-' token
> > ../include/sane/sanei_backend.h:121: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before '-' token
> > ../include/sane/sanei_backend.h:122: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before '-' token
> > ../include/sane/sanei_backend.h:123: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before '-' token
> > ../include/sane/sanei_backend.h:124: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before '-' token
> > ../include/sane/sanei_backend.h:125: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before '-' token
> > lexmark-x1100.c: In function 'x1100_usb_bulk_write':
> > lexmark-x1100.c:186: error: 'sanei_debug_lexmark' undeclared (first
> > use in this function)
> > lexmark-x1100.c:186: error: (Each undeclared identifier is reported
> > only once
> > lexmark-x1100.c:186: error: for each function it appears in.)
> > lexmark-x1100.c:186: warning: implicit declaration of function
> > 'x1100_call'
> > lexmark-x1100.c: In function 'x1100_usb_bulk_read':
> > lexmark-x1100.c:204: error: 'sanei_debug_lexmark' undeclared (first
> > use in this function)
> > lexmark-x1100.c: In function 'sanei_lexmark_x1100_open_device':
> > lexmark-x1100.c:275: error: 'sanei_debug_lexmark' undeclared (first
> > use in this function)
> > lexmark-x1100.c: In function 'sanei_lexmark_x1100_search_home_fwd':
> > lexmark-x1100.c:631: error: 'sanei_debug_lexmark' undeclared (first
> > use in this function)
> > lexmark-x1100.c: In function 'sanei_lexmark_x1100_search_home_bwd':
> > lexmark-x1100.c:846: error: 'sanei_debug_lexmark' undeclared (first
> > use in this function)
> > lexmark-x1100.c: In function 'x1100_set_scan_area':
> > lexmark-x1100.c:1141: error: 'sanei_debug_lexmark' undeclared (first
> > use in this function)
> > lexmark-x1100.c: In function 'sanei_lexmark_x1100_set_scan_regs':
> > lexmark-x1100.c:1483: error: 'Lexmark_Device' has no member named
> > 'pixel_height'
> > lexmark-x1100.c:1484: error: 'Lexmark_Device' has no member named
> > 'pixel_width'
> > lexmark-x1100.c:1489: error: 'sanei_debug_lexmark' undeclared (first
> > use in this function)
> > lexmark-x1100.c: In function 'sanei_lexmark_x1100_start_scan':
> > lexmark-x1100.c:2259: error: 'sanei_debug_lexmark' undeclared (first
> > use in this function)
> > lexmark-x1100.c: In function 'sanei_lexmark_x1100_read_scan_data':
> > lexmark-x1100.c:2344: error: 'sanei_debug_lexmark' undeclared (first
> > use in this function)
> > lexmark-x1100.c: In function 'x1100_rewind':
> > lexmark-x1100.c:2516: error: 'sanei_debug_lexmark' undeclared (first
> > use in this function)
> > lexmark-x1100.c:2575: error: 'Lexmark_Device' has no member named
> > 'pixel_height'
> > lexmark-x1100.c: In function 'read_buffer_init':
> > lexmark-x1100.c:2645: error: 'sanei_debug_lexmark' undeclared (first
> > use in this function)
> > lexmark-x1100.c: In function 'read_buffer_free':
> > lexmark-x1100.c:2679: error: 'sanei_debug_lexmark' undeclared (first
> > use in this function)
> > lexmark-x1100.c: In function 'read_buffer_bytes_available':
> > lexmark-x1100.c:2693: error: 'sanei_debug_lexmark' undeclared (first
> > use in this function)
> > lexmark-x1100.c: In function 'read_buffer_add_bit_lineart':
> > lexmark-x1100.c:2819: error: 'sanei_debug_lexmark' undeclared (first
> > use in this function)
> > make[1]: *** [lexmark-x1100.lo] Error 1
> > make[1]: Leaving directory `/home/fredo/sane-backends-1.0.18/backend'
> > make: *** [all-recursive] Error 1
>
> regards,
> Fred O.
>

	Hello,

	this is due to the renaming of lexmark-x1100.c to lexmark_low.c. You may 
either edit the Makefile by hand or use the 'link.sh' script in the 
experimental cvs. I have just updated it to patch the Makefile automatically 
to take care of this renaming. 	   
	I have tested it with a fresh install:
cd /tmp
export CVS_RSH=ssh
cvs -z3 -d :ext:stefdev-guest at cvs.alioth.debian.org/cvsroot/sane co 
experimental/lexmark
tar xf sane-backends-1.0.18.tar.gz
cd experimental/lexmark
sh link.sh /tmp/sane-backends-1.0.18
cd /tmp/sane-backends-1.0.18
./configure && make

	All went OK on my developpement box.

Regards,
	Stef



More information about the sane-devel mailing list