[sane-devel] Build error at umax_pp_low
Thu, 25 Nov 2004 06:35:07 +0100
On Wed, Nov 24, 2004 at 09:27:55PM +0200, Kenneth Kurkio wrote:
> 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
> umax_pp_low.c:1295: error: (Each undeclared identifier is reported only
> 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
> make: *** [umax_pp_low.lo] Error 1
> make: Leaving directory `/home/kenneth/sane-backends-1.0.15/backend'
> make: *** [all-recursive] Error 1
> sane-devel mailing list: email@example.com
> Unsubscribe: Send mail with subject "unsubscribe your_password"
> to firstname.lastname@example.org
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
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.