[sane-devel] compilation of sane

"François P. Rotzinger" francois.rotzinger at epfl.ch
Fri May 25 07:16:45 UTC 2007


On SuSE Linux 9.3p, the installation of sane (1.0.18) and xsane (0.991) 
worked without problems. If I remember correctly, I used the GCC 3.4.6 

On SuSE 10.2, however, I get a compilation error. On this system, I use 
the GCC 4.1.2 compiler. The ./configure step seems OK (config.log and 
config.status attachements). The "make" step terminates with an error:
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_REENTRANT 
E_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 
-g -O2 -W -Wall sanei_scsi.c
sanei_scsi.c: In function ‘get_max_buffer_size’:
sanei_scsi.c:781: warning: ‘rsm_open_device’ is deprecated (declared at 
/usr/inc lude/resmgr.h:24)
sanei_scsi.c: In function ‘sanei_scsi_open_extended’:
sanei_scsi.c:1245: warning: ‘rsm_open_device’ is deprecated (declared at 
/usr/in clude/resmgr.h:24)
sanei_scsi.c:1276: error: ‘HZ’ undeclared (first use in this function)
sanei_scsi.c:1276: error: (Each undeclared identifier is reported only once
sanei_scsi.c:1276: error: for each function it appears in.)
sanei_scsi.c: In function ‘lx_mk_devicename’:
sanei_scsi.c:2491: warning: ‘rsm_open_device’ is deprecated (declared at 
/usr/in clude/resmgr.h:24)
sanei_scsi.c: In function ‘sanei_scsi_find_devices’:
sanei_scsi.c:2775: warning: assignment discards qualifiers from pointer 
target t ype
make[1]: *** [sanei_scsi.o] Error 1
make[1]: Leaving directory `/source/sane-backends-1.0.18/sanei'
make: *** [all-recursive] Error 1
fpr at lpipc1:/source/sane-backends-1.0.18>

According to other experience (with other compilations), GCC 4.1.2 is 
more severe than GCC 3.4.6 as the initialization of variables is concerned.

Can you please have a look at this problem?

Many thanks!

François P. Rotzinger

-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 215731 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20070525/019523cd/attachment-0001.bin 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: config.status
Url: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20070525/019523cd/attachment-0001.txt 

More information about the sane-devel mailing list