Problem compiling umax-driver with glibc-2.03

Mathias Weigt (p5iba@medchem2.pharmazie.uni-halle.de)
Sat, 21 Jun 1997 13:50:50 +0059 (MDT)

>
> Servus !
>
> I still have problems with my glibc 2.03 (now updated for the missing files)
> and compiling sane-0.6.
> GCC (2.7.2.2) complains about a type mismatch in the umax driver:
>
> make[1]: Entering directory `/usr/src/scanner/sane/sane-0.6/backend'
> gcc -c -I/usr/X11R6/include -g -O2 -D_GNU_SOURCE -Wall -DHAVE_CONFIG_H -I. -I. -I../include -I../include -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=0 -DV_MINOR=5 -DBACKEND_NAME=umax -DLIBDIR=/usr/local/lib
> -fPIC -DPIC umax.c
> umax-scsi.c: In function `umax_do_scsi_cmd':
> In file included from umax.c:117:
> umax-scsi.c:128: incompatible types in assignment
> umax-scsidef.h: At top level:
> umax-scsidef.h:643: warning: `write_buffer' defined but not used
> make[1]: *** [umax.lo] Error 1
> make[1]: Leaving directory `/usr/src/scanner/sane/sane-0.6/backend'
> make: *** [all-recursive] Error 1
>
> I can only suspect that something in the signal-handling has changed because
> sigset_t is now defined in signal.h as of type __sigset_t at line 164 and
> __sigset_t is defined in sigset.h around line 28:
>
> #define _SIGSET_NWORDS (1024 / (8 * sizeof (unsigned long int)))
> typedef struct
> {
> unsigned long int __val[_SIGSET_NWORDS];
> } __sigset_t;
>
> Maybe I am completely wrong but with libc-5.4.33 the umax backend compiles.
>
>
> Mathias Weigt
> p5iba@medchem2.pharmazie.uni-halle.de
>
>

--
Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/
To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com