Thanks, that was the hint I needed! It works when I do
"xscanimage hp:/dev/scsi/sc1d5l0". Cool...
I found the problem with find-scanner.c -- change
#if defined(__sgi__)
to
#if defined(__sgi)
But when I start xscanimage with no args, it still says "no devices."
How do I set that as the default?
I got it to print an error message once:
** WARNING **: file gtkwidget.c: line 2641: "widget != NULL"
and to dump core once:
** ERROR **: sigsegv caught
but now I can reproduce it...
Is it only possible to save pnm files? No jpeg or tiff encoder?
Is there any way to have it show you the full-sized image as it is
being scanned? (That is, write it to the screen and the file at the
same time?)
I found the gcc/ld problem too -- if I set $LD to /usr/lib/old_ld
before configuring, it works. (Apparently you need to use old_ld
to do dynamic linking with gcc on SGIs.)
But, after doing that, I had to edit "libtool" by hand to make it
use
LD="/usr/lib/old_ld"
instead of
LD="/usr/lib/old_ld -n32"
Here are the warnings I get with gcc:
getopt.c: In function `_getopt_initialize':
getopt.c:354: warning: implicit declaration of function `getpid'
getopt.c: In function `_getopt_internal':
getopt.c:559: warning: implicit declaration of function `strncmp'
getopt.c:546: warning: `indfound' might be used uninitialized in this function
snprintf.c: In function `fmtstr':
snprintf.c:328: warning: implicit declaration of function `iscntrl'
snprintf.c:328: warning: implicit declaration of function `isspace'
snprintf.c: In function `fmtdouble':
snprintf.c:431: warning: implicit declaration of function `sprintf'
sanei_scsi.c: In function `sanei_scsi_cmd':
sanei_scsi.c:1146: warning: large integer implicitly truncated to unsigned type
sanei_scsi.c:1160: warning: large integer implicitly truncated to unsigned type
sanei_config.c: In function `sanei_config_open':
sanei_config.c:107: warning: implicit declaration of function `strsep'
sanei_config.c:107: warning: assignment makes pointer from integer without a cast
sanei_config.c:109: warning: implicit declaration of function `snprintf'
canon-scsi.c:61: warning: `request_sense' defined but not used
canon-scsi.c:95: warning: `mode_select' defined but not used
canon-scsi.c:117: warning: `reserve_unit' defined but not used
canon-scsi.c:133: warning: `release_unit' defined but not used
canon-scsi.c:183: warning: `send_diagnostics' defined but not used
mustek.c: In function `scsi_wait_ready':
mustek.c:253: warning: int format, time_t arg (arg 3)
mustek.c: In function `pp_wait_ready':
mustek.c:284: warning: int format, time_t arg (arg 3)
mustek.c: In function `attach':
mustek.c:515: warning: implicit declaration of function `strndup'
mustek.c:515: warning: assignment makes pointer from integer without a cast
net.c: In function `sane_net_init':
net.c:351: warning: implicit declaration of function `strsep'
net.c:351: warning: assignment makes pointer from integer without a cast
umax-scsi.c:169: warning: `umax_get_data_buffer_status' defined but not used
umax-scsi.c:462: warning: `umax_send_shading_data' defined but not used
umax-scsi.c:474: warning: `umax_send_gain_data' defined but not used
umax-scsi.c:502: warning: `umax_read_shading_data' defined but not used
umax-scsi.c:515: warning: `umax_read_gain_data' defined but not used
dll.c: In function `load':
dll.c:249: warning: implicit declaration of function `snprintf'
dll.c:270: warning: implicit declaration of function `strsep'
dll.c:270: warning: assignment makes pointer from integer without a cast
xscanimage.c: In function `pref_xscan_save':
xscanimage.c:413: warning: implicit declaration of function `snprintf'
xscanimage.c: In function `input_available':
xscanimage.c:723: warning: label `bad_depth' defined but not used
preview.c: In function `restore_option':
preview.c:454: warning: implicit declaration of function `snprintf'
gtkglue.c: In function `gsg_make_path':
gtkglue.c:94: warning: implicit declaration of function `snprintf'
xcam.c: In function `save_settings':
xcam.c:223: warning: implicit declaration of function `snprintf'
-- Jamie Zawinski http://people.netscape.com/jwz/ about:jwz
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com