SANE support on Solaris 2.6

LABAN VERHULST (laban@euronet.nl)
Sat, 27 Nov 1999 10:12:13 +0100

This is a multi-part message in MIME format.
--------------76AAC1677188379E7456523A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello SANE specialists,

I just downloaded sane-1.0.1 and I try to compile it on my
SparcStation 10 (Solaris 2.6) HP scanjet IIc connected to it
and SCHILYscg installed to support generic SCSI, however I got
a error during compilation about syntax errors in the Makefile.
I don't know how to edit the Makefile myselve.
My question is does somebody know the solution or can someone help
me to a already compiled sane program for Solaris 2.6 on sparc?

Thanks in advance

Laban Verhulst

here is some information about the problem:

Attached is also the makefile which gives the problem.

laban@smurf ./configure
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... ./install-sh -c
checking whether make sets ${MAKE}... yes
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking for AIX... no
checking for minix/config.h... no
checking for POSIXized ISC... no
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for unistd.h... yes
checking for libintl.h... yes
checking for libc.h... no
checking for sys/dsreq.h... no
checking for sys/select.h... yes
checking for sys/time.h... yes
checking for jconfig.h... yes
checking for sys/scanio.h... no
checking for scsi.h... no
checking for sys/scsi.h... no
checking for sys/scsicmd.h... no
checking for sys/scsiio.h... no
checking for bsd/dev/scsireg.h... no
checking for scsi/sg.h... no
checking for /usr/src/linux/include/scsi/sg.h... no
checking for io/cam/cam.h... no
checking for camlib.h... no
checking for os2.h... no
checking for sys/socket.h... yes
checking for sys/io.h... no
checking for asm/io.h... no
checking for gscdds.h... no
checking for sys/hw.h... no
checking for sys/types.h... yes
checking for sys/scsi/sgdefs.h... no
checking for sys/scsi/targets/scgio.h... yes
checking for apollo/scsi.h... no
checking for working const... yes
checking for inline... inline
checking return type of signal handlers... void
checking for size_t... yes
checking for pid_t... yes
checking for ssize_t... yes
checking for u_char... yes
checking for u_int... yes
checking for u_long... yes
checking for scsireq_enter in -lscsi... no
checking for sqrt in -lm... yes
checking for gettext in -lintl... yes
checking for syslog in -lsyslog... no
checking for jpeg_start_decompress in -ljpeg... yes
checking for gethostbyaddr in -lnsl... yes
checking for socket in -lsocket... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for atexit... yes
checking for ioperm... no
checking for mkdir... yes
checking for scsireq_enter... no
checking for sigprocmask... yes
checking for strdup... yes
checking for strndup... no
checking for strftime... yes
checking for strstr... yes
checking for strsep... no
checking for strtod... yes
checking for snprintf... yes
checking for cfmakeraw... no
checking for tcsendbreak... yes
checking for usleep... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for _portaccess... no
checking host system type... sparc-sun-solaris2.6
checking for ranlib... ranlib
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking whether ln -s works... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking whether the linker (/usr/ccs/bin/ld) supports shared
libraries... yes
checking command to parse /usr/ccs/bin/nm -p output... yes
checking how to hardcode library paths into programs... immediate
checking for /usr/ccs/bin/ld option to reload object files... -r
checking dynamic linker characteristics... solaris2.6 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
checking for X... libraries /usr/openwin/lib, headers
/usr/openwin/include
checking for dlfcn.h... yes
checking for dlopen in -ldl... yes
checking for dlopen... yes
checking for dl.h... no
checking for gtk-config... /usr/local/bin/gtk-config
checking for GTK - version >= 0.99.13... yes
checking for gtk_tooltips_set_tips... no
checking for gtk_events_pending... yes
checking for libgimp/gimp.h... yes
enabling DC210 backend
disabling PINT backend
disabling QuickCam backend
enabling NET backend
updating cache ./config.cache
creating ./config.status
creating Makefile
creating lib/Makefile
creating sanei/Makefile

creating frontend/Makefile
creating japi/Makefile
creating backend/Makefile
creating include/Makefile
creating doc/Makefile
creating tools/Makefile
creating include/sane/config.h
****************************************************************
* Please be sure to read file PROBLEMS in this directory *
* BEFORE running any of the SANE applications. Some devices *
* may be damaged by inproper operation, so please do heed this *
* advice. *
****************************************************************
laban@smurf make
for subdir in lib sanei backend frontend doc tools; do \
target=`echo all-recursive | sed s/-recursive//`; \
echo making $target in $subdir; \
(cd $subdir && make $target) \
|| case "" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$fail"
making all in lib
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC alloca.c
mv -f alloca.o alloca.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall alloca.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC getopt.c
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:611: warning: suggest explicit braces to avoid ambiguous `else'
getopt.c:546: warning: `indfound' might be used uninitialized in this
function
mv -f getopt.o getopt.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall getopt.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC getopt1.c
mv -f getopt1.o getopt1.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall getopt1.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC sigprocmask.c
mv -f sigprocmask.o sigprocmask.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall sigprocmask.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC strndup.c
mv -f strndup.o strndup.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall strndup.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC strdup.c
mv -f strdup.o strdup.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall strdup.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC strsep.c
mv -f strsep.o strsep.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall strsep.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC snprintf.c
mv -f snprintf.o snprintf.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall snprintf.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC usleep.c
mv -f usleep.o usleep.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall usleep.c >/dev/null 2>&1
ar r liblib.a alloca.o getopt.o getopt1.o sigprocmask.o strndup.o
strdup.o strsep.o snprintf.o usleep.o
ar: creating liblib.a
ranlib liblib.a
making all in sanei
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC sanei_ab306.c
mv -f sanei_ab306.o sanei_ab306.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall sanei_ab306.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC sanei_constrain_value.c
mv -f sanei_constrain_value.o sanei_constrain_value.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall sanei_constrain_value.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC sanei_init_debug.c
mv -f sanei_init_debug.o sanei_init_debug.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall sanei_init_debug.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC sanei_net.c
mv -f sanei_net.o sanei_net.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall sanei_net.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC sanei_wire.c
mv -f sanei_wire.o sanei_wire.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall sanei_wire.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC sanei_codec_ascii.c
sanei_codec_ascii.c: In function `skip_ws':
sanei_codec_ascii.c:63: warning: subscript has type `char'
sanei_codec_ascii.c: In function `ascii_w_word':
sanei_codec_ascii.c:325: warning: subscript has type `char'
mv -f sanei_codec_ascii.o sanei_codec_ascii.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall sanei_codec_ascii.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC sanei_codec_bin.c
mv -f sanei_codec_bin.o sanei_codec_bin.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall sanei_codec_bin.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC sanei_save_values.c
mv -f sanei_save_values.o sanei_save_values.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall sanei_save_values.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC sanei_load_values.c
mv -f sanei_load_values.o sanei_load_values.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall sanei_load_values.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC sanei_scsi.c
mv -f sanei_scsi.o sanei_scsi.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall sanei_scsi.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC sanei_config.c
sanei_config.c: In function `sanei_config_skip_whitespace':
sanei_config.c:135: warning: subscript has type `char'
sanei_config.c: In function `sanei_config_get_string':
sanei_config.c:162: warning: subscript has type `char'
mv -f sanei_config.o sanei_config.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall sanei_config.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC sanei_config2.c
sanei_config2.c: In function `sanei_config_attach_matching_devices':
sanei_config2.c:104: warning: subscript has type `char'
sanei_config2.c:112: warning: subscript has type `char'
sanei_config2.c:120: warning: subscript has type `char'
sanei_config2.c:128: warning: subscript has type `char'
mv -f sanei_config2.o sanei_config2.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall sanei_config2.c >/dev/null 2>&1
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall -fPIC -DPIC sanei_pio.c
mv -f sanei_pio.o sanei_pio.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2
-Wall sanei_pio.c >/dev/null 2>&1
ar r libsanei.a sanei_ab306.o sanei_constrain_value.o
sanei_init_debug.o sanei_net.o sanei_wire.o sanei_codec_ascii.o
sanei_codec_bin.o sanei_save_values.o sanei_load_values.o sanei_scsi.o
sanei_config.o sanei_config2.o sanei_pio.o
ar: creating libsanei.a
ranlib libsanei.a
making all in backend
make: Fatal error in reader: Makefile, line 73: More than one % pattern
on right hand side
Current working directory /home/laban/sane/sane-1.0.1/backend
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
--------------76AAC1677188379E7456523A
Content-Type: text/plain; charset=us-ascii;
name="Makefile"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Makefile"

# Generated automatically from Makefile.in by configure.
SHELL = /bin/sh

srcdir = .
top_srcdir = ..
top_builddir = ..

prefix = /usr/local
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
libsanedir = $(libdir)/sane
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include
configdir = ${sysconfdir}/sane.d

V_MAJOR = 1
V_MINOR = 0
V_REV = 1
DLL_PRELOAD =
DLL_PRELOAD_EXTRAS = $(foreach be,$(DLL_PRELOAD),$($(addprefix EXTRA_,$(be))))

MKDIR = $(top_srcdir)/mkinstalldirs
INSTALL = .././install-sh -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
RANLIB = ranlib
LN_S = ln -s

CC = gcc
INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include
CPPFLAGS = -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=$(configdir) -DPATH_SANE_DATA_DIR=$(datadir) -DV_MAJOR=1 -DV_MINOR=0
CFLAGS = -g -O2 -Wall
LDFLAGS =
DEFS = -DHAVE_CONFIG_H

LIBTOOL = ../libtool
MCOMP = --mode=compile
MLINK = --mode=link
MINST = --mode=install

COMPILE = $(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES) $(CPPFLAGS)

PRELOADABLE_BACKENDS = abaton agfafocus apple artec canon coolscan \
dc25 dc210 dmc epson hp microtek microtek2 mustek net \
pnm ricoh s9036 sharp snapscan tamarack umax
ALL_BACKENDS = $(PRELOADABLE_BACKENDS) dll

LIBS = $(addprefix libsane-,$(addsuffix .la,$(ALL_BACKENDS)))
CONFIGS = $(addsuffix .conf,$(ALL_BACKENDS)) saned.conf

EXTRA = sane_strstatus.lo ../sanei/sanei_init_debug.lo ../sanei/sanei_config.lo

# With libtool-1.0, we have to mention each library object explicitly... ;-(
LIBLIB_FUNCS = alloca getopt getopt1 snprintf strndup strsep strndup usleep
LIBOBJS = $(addprefix ../lib/,$(addsuffix .lo,$(LIBLIB_FUNCS)))

libsane-%.la: %.lo %-s.lo $(EXTRA) $(LIBOBJS)
@$(LIBTOOL) $(MLINK) $(CC) -export-dynamic -o $@ $($*_LIBS) \
$(LDFLAGS) $^ -rpath $(libsanedir) \
-version-info $(V_MAJOR):$(V_REV):$(V_MINOR)

%-s.lo: %-s.c
@$(LIBTOOL) $(MCOMP) $(COMPILE) -DSTUBS -DBACKEND_NAME=$* $<

%.lo: %.c
@$(LIBTOOL) $(MCOMP) $(COMPILE) -DBACKEND_NAME=$* \
-DLIBDIR=$(libsanedir) $<

%-s.c: $(srcdir)/stubs.c
rm -f $@
$(LN_S) $(srcdir)/stubs.c $@

# Don't delete any intermediate files.
.PRECIOUS: %-s.c %-s.lo %.lo dll-preload.c

all: $(LIBS) libsane.la

install:
$(MKDIR) $(libdir) $(libsanedir) $(configdir)
@list="$(LIBS)"; for be in $$list; do \
echo installing $${be} in $(libsanedir)...; \
$(LIBTOOL) $(MINST) $(INSTALL_PROGRAM) $${be} $(libsanedir)/$${be} \
|| exit 1; \
done
@$(LIBTOOL) $(MINST) --finish $(libsanedir)
@list="$(ALL_BACKENDS)"; cd $(libsanedir) && for be in $$list; do \
file=libsane-$${be}.so.$(V_MAJOR); \
lib=`grep dlname= libsane-$${be}.la | cut -f2 -d"'"`; \
if test ! -f $${file} -a -n "$${lib}"; then \
$(LN_S) $${lib} $${file}; \
fi; \
done
rm -f $(libdir)/libsane.a $(libdir)/libsane.so \
$(libdir)/libsane.so.$(V_MAJOR)*
$(LN_S) sane/libsane-dll.a $(libdir)/libsane.a
$(LN_S) sane/libsane-dll.so $(libdir)/libsane.so
@cd $(libsanedir) && for n in libsane-dll.so.$(V_MAJOR)*; do \
nn=`echo $$n | sed 's,^libsane-dll,libsane,'`; \
(cd ..; $(LN_S) sane/$$n $$nn); \
done || exit 1
@list="$(CONFIGS)"; for cfg in $$list; do \
if test ! -r $(srcdir)/$${cfg}; then continue; fi; \
if test -f $(configdir)/$${cfg}; then \
echo NOT overwriting $${cfg} in $(configdir)...; \
else \
echo installing $${cfg} in $(configdir)...; \
$(INSTALL_DATA) $(srcdir)/$${cfg} $(configdir)/$${cfg} || exit 1; \
fi; \
done

dll.lo: dll-preload.c

dll-preload.c:
rm -f $@
list="$(DLL_PRELOAD)"; for be in $$list; do \
echo "PRELOAD_DECL($$be)" >> $@; \
done
echo "static struct backend preloaded_backends[] = {" >> $@
sep=""; \
list="$(DLL_PRELOAD)"; \
if test -z "$${list}"; then \
echo { 0 } >> $@; \
else \
for be in $$list; do \
echo "$${sep}PRELOAD_DEFN($$be)" >> $@; \
sep=","; \
done; \
fi
echo "};" >> $@

libsane.la: dll.lo dll-s.lo $(EXTRA) $(addsuffix .lo,$(DLL_PRELOAD)) $(LIBOBJS)
@$(LIBTOOL) $(MLINK) $(CC) -o $@ $(LDFLAGS) $^ \
$(addsuffix .lo,$(DLL_PRELOAD_EXTRAS)) \
-rpath $(libdir) -version-info $(V_MAJOR):$(V_REV):$(V_MINOR)

# additional dependencies

EXTRA_hp = hp-accessor hp-device hp-handle hp-hpmem hp-option hp-scl
EXTRA_dc210 = djpeg

# When preloading dll, we need to add in all preloaded objects:
libsane-dll.la: $(addsuffix .lo,$(DLL_PRELOAD))
libsane-dll.la: $(addsuffix .lo,$(DLL_PRELOAD_EXTRAS))

# We must not build SANE backend libraries that contain unresolved references
# to any of the sanei routines. These explicit dependencies take care of
# this:

libsane-abaton.la: ../sanei/sanei_config2.lo
libsane-abaton.la: ../sanei/sanei_constrain_value.lo
libsane-abaton.la: ../sanei/sanei_scsi.lo
libsane-agfafocus.la: ../sanei/sanei_config2.lo
libsane-agfafocus.la: ../sanei/sanei_constrain_value.lo
libsane-agfafocus.la: ../sanei/sanei_scsi.lo
libsane-apple.la: ../sanei/sanei_config2.lo
libsane-apple.la: ../sanei/sanei_constrain_value.lo
libsane-apple.la: ../sanei/sanei_scsi.lo
libsane-artec.la: ../sanei/sanei_config2.lo
libsane-artec.la: ../sanei/sanei_constrain_value.lo
libsane-artec.la: ../sanei/sanei_scsi.lo
libsane-canon.la: ../sanei/sanei_config2.lo
libsane-canon.la: ../sanei/sanei_constrain_value.lo
libsane-canon.la: ../sanei/sanei_scsi.lo
libsane-coolscan.la: ../sanei/sanei_config2.lo
libsane-coolscan.la: ../sanei/sanei_constrain_value.lo
libsane-coolscan.la: ../sanei/sanei_scsi.lo
libsane-dc25.la: ../sanei/sanei_constrain_value.lo
libsane-dc210.la: ../sanei/sanei_constrain_value.lo djpeg.lo
libsane-dmc.la: ../sanei/sanei_config2.lo
libsane-dmc.la: ../sanei/sanei_constrain_value.lo
libsane-dmc.la: ../sanei/sanei_scsi.lo
libsane-epson.la: ../sanei/sanei_config2.lo
libsane-epson.la: ../sanei/sanei_constrain_value.lo
libsane-epson.la: ../sanei/sanei_scsi.lo
libsane-epson.la: ../sanei/sanei_pio.lo
libsane-hp.la: ../sanei/sanei_config2.lo
libsane-hp.la: ../sanei/sanei_constrain_value.lo
libsane-hp.la: ../sanei/sanei_scsi.lo
libsane-hp.la: $(addsuffix .lo,$(EXTRA_hp))
libsane-hp.la: ../sanei/sanei_pio.lo
libsane-microtek.la: ../sanei/sanei_config2.lo
libsane-microtek.la: ../sanei/sanei_constrain_value.lo
libsane-microtek.la: ../sanei/sanei_scsi.lo
libsane-microtek2.la: ../sanei/sanei_config2.lo
libsane-microtek2.la: ../sanei/sanei_constrain_value.lo
libsane-microtek2.la: ../sanei/sanei_scsi.lo
libsane-mustek.la: ../sanei/sanei_config2.lo
libsane-mustek.la: ../sanei/sanei_constrain_value.lo
libsane-mustek.la: ../sanei/sanei_scsi.lo
libsane-mustek.la: ../sanei/sanei_ab306.lo
libsane-net.la: ../sanei/sanei_codec_bin.lo
libsane-net.la: ../sanei/sanei_net.lo
libsane-net.la: ../sanei/sanei_wire.lo
libsane-pint.la: ../sanei/sanei_constrain_value.lo
libsane-pnm.la: ../sanei/sanei_constrain_value.lo
libsane-qcam.la: ../sanei/sanei_constrain_value.lo
libsane-ricoh.la: ../sanei/sanei_config2.lo
libsane-ricoh.la: ../sanei/sanei_constrain_value.lo
libsane-ricoh.la: ../sanei/sanei_scsi.lo
libsane-s9036.la: ../sanei/sanei_config2.lo
libsane-s9036.la: ../sanei/sanei_constrain_value.lo
libsane-s9036.la: ../sanei/sanei_scsi.lo
libsane-sharp.la: ../sanei/sanei_config2.lo
libsane-sharp.la: ../sanei/sanei_constrain_value.lo
libsane-sharp.la: ../sanei/sanei_scsi.lo
libsane-snapscan.la: ../sanei/sanei_config2.lo
libsane-snapscan.la: ../sanei/sanei_constrain_value.lo
libsane-snapscan.la: ../sanei/sanei_scsi.lo
libsane-tamarack.la: ../sanei/sanei_config2.lo
libsane-tamarack.la: ../sanei/sanei_constrain_value.lo
libsane-tamarack.la: ../sanei/sanei_scsi.lo
libsane-umax.la: ../sanei/sanei_config2.lo
libsane-umax.la: ../sanei/sanei_constrain_value.lo
libsane-umax.la: ../sanei/sanei_scsi.lo

ifneq ($(DLL_PRELOAD),)
# need to make dll dependent on all sanei files:
libsane-dll.la libsane.la: ../sanei/sanei_config.lo
libsane-dll.la libsane.la: ../sanei/sanei_config2.lo
libsane-dll.la libsane.la: ../sanei/sanei_codec_bin.lo
libsane-dll.la libsane.la: ../sanei/sanei_constrain_value.lo
libsane-dll.la libsane.la: ../sanei/sanei_net.lo
libsane-dll.la libsane.la: ../sanei/sanei_scsi.lo
libsane-dll.la libsane.la: ../sanei/sanei_wire.lo
libsane-dll.la libsane.la: ../sanei/sanei_ab306.lo
libsane-dll.la libsane.la: ../sanei/sanei_pio.lo
endif

depend:
makedepend $(INCLUDES) *.c

clean:
rm -f *.lo *.o *~ *.la libsane.la *.bak dll-preload.c
find . -type l -name \*-s.c | xargs rm -f
rm -rf .libs

distclean: clean
rm -f Makefile libsane.so

.PHONY: all install depend clean distclean

--------------76AAC1677188379E7456523A
Content-Type: text/x-vcard; charset=us-ascii;
name="laban.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for LABAN VERHULST
Content-Disposition: attachment;
filename="laban.vcf"

begin:vcard
n:Verhulst;Laban
tel;fax:+31-33-4553058
tel;work:+31-33-4501335
x-mozilla-html:FALSE
adr:;;Computerweg 1;Amersfoort;Utrecht;3821 AA;the Netherlands
version:2.1
email;internet:laban@euronet.nl
x-mozilla-cpt:;19352
fn:Laban Verhulst
end:vcard

--------------76AAC1677188379E7456523A--

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com