Error compiling SANE

marcel pol (mpol@gmx.net)
Sat, 11 Dec 1999 16:02:30 -0000 (/etc/localtime

Hello,

I want to compile SANE from the source code, but I get an error.
I can tar and ./configure the source, but when I give the command make it gives
an error after starting to compile.

abaton.c: In function 'sane_abaton_control_function:
abaton.c:1116: incompatible types in assignment
make[1]: *** [abaton.lo] Error 1
make[1]: leaving directory '/usr/src/packages/SOURCES/sane-1.00/backend'
make *** [all-recursive] Error 1

I do not know what this error means. I hope it's a common error and somebody
knows what it means.

I use SuSE LiNUX 6.1 with kernel 2.2.7 and the gcc compiler.
I use SANE 1.00 and the abaton version is 0.1.
I have got SANE installed as RPM but when I uninstall SANE the error also
occurs. The files of the installed SuSE RPM SANE are located different than the
files which are going to be installed, for example SuSE doesn't use the
directory /usr/local/bin, but I guess /usr/bin.

I tried to just delete the source file '~/BUILD/backend/abaton.c',
but I got another error with umax.c

In file included from /usr/include/local_lim.h:21,
from /usr/include/posix1_lim.h:92,
from /usr/include/limits.h:27,
from
/usr/lib/gcc-lib/i486-linux/egcs-2.91.66/include/limits.h:117,
from
/usr/lib/gcc-lib/i486-linux/egcs-2.91.66/include/syslimits.h:27,
from
/usr/lib/gcc-lib/i486-linux/egcs-2.91.66/include/limits.h:11,
from umax.c:130:
usr/include/linux/limits.h:14: warning: 'PATH_MAX' redefined
umax.c:112: warning: this is the location of the previous definition

Then the system hangs. By pressing Ctrl-C I get more:

make[1]: *** [umax.lo] Error 1
make: [all-recursive] Interrupt

when I also delete the file '~/sane-1.00/backend/umax.c' it makes fine, but
when I give the command make_install I get more errors. There must be another
solution for this problem than deleting source-files, I hope somebody knows
which solution.

Thanks in advance,
Marcel Pol

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