[sane-devel] Build error at umax_pp_low

Kenneth Kurkio kkur@luukku.com
Thu, 25 Nov 2004 21:26:46 +0200 (EET)


Thanks for the advice. Now I get past umax_pp_low, but the build ends with
another error:

../tools/sane-desc: error in loading shared libraries: libusb-0.1.4:
cannot open shared object file: No such file or directory
make[1]: *** [sane-backends-external.html] Error 127
make[1]: Leaving directory `/home/kenneth/sane-backends-1.0.15/doc'
make: *** [all-recursive] Error 1

I don't understand this as I do have the file /usr/local/lib/libusb-0.1.4

My kernel version is 2.2.17-14 so I guess it is older than 2001.


On Thu, 25 Nov 2004, svoltz@wanadoo.fr wrote:

> 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
> >
> >
>
> 	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
>
>
>

--