[sane-devel] Weird vertical stripes on Microtek ScanMaker X12USL (sane-1.05)

stef stef-listes@wanadoo.fr
Mon, 12 Nov 2001 07:01:08 +0100


On Sun, Nov 11, 2001 at 11:34:18AM +0100, Henning Meier-Geinitz wrote:
> Hi,
> 
> On Sat, Nov 10, 2001 at 11:25:01PM +0000, Michael Thomson wrote:
> > 2)  When I downloaded the sane-frontends and sane-backends version 1.06,
> >     I tried to compile the backends first, and get the following error:
> > 
> > > make[1]: Entering directory `/home/michthom/sane-backends-1.0.6/tools'
> > > gcc -o umax_pp umax_pp.o ../backend/umax_pp_low.o ../sanei/libsanei.a
> > > ../lib/liblib.a -lnsl -lm -ljpeg
> > > ../backend/umax_pp_low.o: In function `Outb':
> > > /home/michthom/sane-backends-1.0.6/backend/umax_pp_low.c:642: undefined
> > > reference to `outb'
> 
> Arghh. We must find a more portable way for this parport stuff.
> To the parport developers: Is there no way to check for the
> availability of all the inb/outw etc. functions before using them?

	It's already the case and works when one (me) doesn't break it with
extra ifdef. I've corrected my bug in CVS now by turning (in umax_pp_low.c):

	#if defined HAVE_SYS_IO_H && defined HAVE_IOPERM

back to:

	#ifdef HAVE_SYS_IO_H

	HAVE_IOPERM is used on its own later.

Regards,
	Stef