On Wed, Nov 24, 2004 at 09:27:55PM +0200, Kenneth Kurkio wrote: > Hi, > > Why do I get this error when compiling sane backends? > > umax_pp_low.c: In function `sanei_umax_pp_initPort': > umax_pp_low.c:951: warning: unused variable `strmodes' > umax_pp_low.c: In function `Outb': > umax_pp_low.c:1295: error: `PPGETMODE' undeclared (first use in this > function) > umax_pp_low.c:1295: error: (Each undeclared identifier is reported only > once > umax_pp_low.c:1295: error: for each function it appears in.) > umax_pp_low.c: In function `SPPsendWord610p': > umax_pp_low.c:4598: error: `PPGETMODE' undeclared (first use in this > function) > make[1]: *** [umax_pp_low.lo] Error 1 > make[1]: Leaving directory `/home/kenneth/sane-backends-1.0.15/backend' > make: *** [all-recursive] Error 1 > > > -- > Kenneth > > > -- > sane-devel mailing list: sane-devel@lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > to sane-devel-requ...@lists.alioth.debian.org
Hello, you get this because your 'ppdev.h' linux kernel include file is too old (version below 2.4.7 or something like that). While I cared about PPGETMODES possibly missing, I didn't manage the PPGETMODE case. But without PPGETMODE, the backend cannot use the ppdev device and you have to use direct hardware access (compile with --enable-direct-parportio). Since the configure script doesn't have an option to disable ppdev, you'll have to change the #define HAVE_LINUX_PPDEV_H 1 into #undef HAVE_LINUX_PPDEV_H in the include/sane/config.h file. But what exact kernel do you use ? In case it is more recent than 03/01/2001 , it may be just a matter of upgrading the linux kernel includes installed on your machine. Regards, Stef