# Re: Problems building 0.72 under IRIX

Hugo van der Kooij (hvdkooij@caiw.nl)
Mon, 13 Apr 1998 09:37:38 +0200 (MET DST)

- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Hugo van der Kooij: "Re: xscanimage looking for Mustek 1200SP"
- Previous message: Alexander Schulz: "xscanimage looking for Mustek 1200SP"
- In reply to: Michael Polo: "Re: Problems building 0.72 under IRIX"
- Next in thread: Christian Bucher: "Re: Problems building 0.72 under IRIX"

On Sun, 12 Apr 1998, Michael Polo wrote:

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

Oddly enough this fix seems to be in the original file allready. At least
when I started experimenting with this patch to see if it would harm me I
noticed it did ask to reverse this patch.

Hugo.

+------------------------+------------------------------+
| Hugo van der Kooij | Hugo.van.der.Kooij@caiw.nl |
| Oranje Nassaustraat 16 | http://www.caiw.nl/~hvdkooij |
| 3155 VJ Maasland | (De man met de rode hoed) |
+------------------------+------------------------------+
"Computers let you make more mistakes faster than any other invention in
human history, with the possible exception of handguns and tequila."
(Mitch Radcliffe)

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

- Next message: Hugo van der Kooij: "Re: xscanimage looking for Mustek 1200SP"
- Previous message: Alexander Schulz: "xscanimage looking for Mustek 1200SP"
- In reply to: Michael Polo: "Re: Problems building 0.72 under IRIX"
- Next in thread: Christian Bucher: "Re: Problems building 0.72 under IRIX"