Re: Problems building 0.72 under IRIX

Michael Polo (mikep@Polo.NET)
Sun, 12 Apr 1998 17:09:14 -0700

> Hi, All...
>
> I've been catching up on SANE testing under IRIX and have run into a
> number of problems, including:
>
> 1. sanei/sanei_pio.c doesn't compile (too much Linux-specific
> stuff)
> 2. sanei/sanei_pio.c and sanei_pio.h don't match up
> 3. Lots of the backends don't compile due to dependencies on the
> pio functions
> 4. Once I disable all the PIO and backend code that doesn't compile
> under IRIX, none of the backends seem to work. In particular,
> I tried the Mustek backend with my MFS-6000CX and got an
> invalid argument error; find-scanners does find the scanner
> with no problems, tho...
>
> The last version that worked for me was 0.70, and I missed 0.71 (which
> I'll try to build next week when I get back in the office).
>
> Anyone else having problems building 0.72 on non-Linux platforms?

I did - but under solaris. I kind of hacked together these changes for
sanei_pio and it seemed to work for me, though it's possible that you
compile with the same options (i.e. HAVE_IOPERM, etc)

Good Luck,
Mike

*** sane-0.72/sanei/sanei_pio.c Fri Apr 10 12:00:31 1998
--- sane-0.72-orig/sanei/sanei_pio.c Mon Apr 6 21:49:44 1998
***************
*** 522,534 ****

#else /* !HAVE_IOPERM */

! SANE_Status
! sanei_pio_open (const char *dev, int *fdp)
{
! *fdp = -1;
! return SANE_STATUS_INVAL;
}

void
sanei_pio_close (int fd)
{
--- 522,535 ----

#else /* !HAVE_IOPERM */

! int
! sanei_pio_open (const char *dev, SANE_Status * status)
{
! *status = SANE_STATUS_INVAL;
! return -1;
}

+
void
sanei_pio_close (int fd)
{

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com