# Re: sane 0.69, Irix 6.3

David Mosberger-Tang (David.Mosberger@acm.org)
Mon, 26 Jan 1998 23:35:03 -0800

- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: David Mosberger-Tang: "Re: Compile error on Slackware 3.3.0 Sane 0.69"
- Previous message: David Mosberger-Tang: "Re: configuring/using xscanimage"

>>>>> On Mon, 26 Jan 1998 02:44:53 -0800, Jamie Zawinski <jwz@netscape.com> said:

Jamie> The first problem I ran into when trying to build it was, I
Jamie> wasn't able to use gcc. I had to use SGI's cc, because
Jamie> something is going wrong when sane tries to create shared
Jamie> libraries. It's apparently not doing the right thing for
Jamie> Irix, because ld complains:

If all else fails, you can disable shared libraries and dynamic
loading all-together by invoking configure with option
--disable-shared. But if cc works, that should be fine too (the debug
messages just aren't as nice as with gcc).

Jamie> First, lalloca.h was trouble. You're including lalloca.h
Jamie> before config.h because of AIX -- but on SGI, <alloca.h> must
Jamie> be included before alloca() can be used, and <alloca.h> only
Jamie> gets included if config.h has defined HAVE_ALLOCA_H... Which
Jamie> means that on SGI, config.h must come before lalloca.h. So a
Jamie> whole bunch of files needed to have the ifdefs tweaked.

OK, thanks for fixing this.

Jamie> I had to add a missing argument in sanei_scsi.c. I guessed
Jamie> "0".

Yup, 0 should be fine for now (the correct fix will be in sane-0.70).

Jamie> I had to add #defines of __P and __const to microtek.c
Jamie> (presumably this is a gcc-ism.)

Yikes, I missed that. Just remove that unnecessary strdup()
declaration and things will be fine.

Jamie> So, after all that, I have runnable executables. But they
Jamie> don't find my scanner. Running "find-scanner" as root prints
Jamie> nothing.

Hmmh, that's strange. /dev/scsi/sc1d5l0 _should_ be probed by
find-scanner on an SGI system, but I can't test this myself.

Jamie> When I run "xscanimage /dev/scsi/sc1d5l0", I get "Failed to
Jamie> open device `/dev/scsi/sc1d5l0': Invalid argument."

With the default setup of SANE, the device name would be
hp:/dev/scsi/sc1d5l0 (see sane-dll(5)). But given that find-scanner
wasn't able to locate your scanner, I'm not sure this will help.

--david

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

- Next message: David Mosberger-Tang: "Re: Compile error on Slackware 3.3.0 Sane 0.69"
- Previous message: David Mosberger-Tang: "Re: configuring/using xscanimage"