sane-project-website/old-archive/1998-01/0182.html

85 wiersze
3.9 KiB
HTML

<!-- received="Mon Jan 26 23:35:06 1998 PST" -->
<!-- sent="Mon, 26 Jan 1998 23:35:03 -0800" -->
<!-- name="David Mosberger-Tang" -->
<!-- email="David.Mosberger@acm.org" -->
<!-- subject="Re: sane 0.69, Irix 6.3" -->
<!-- id="199801270735.XAA19273@panda.mostang.com" -->
<!-- inreplyto="34CC6925.DB487FA7@netscape.com" -->
<title>sane-devel: Re: sane 0.69, Irix 6.3</title>
<h1>Re: sane 0.69, Irix 6.3</h1>
<b>David Mosberger-Tang</b> (<a href="mailto:David.Mosberger@acm.org"><i>David.Mosberger@acm.org</i></a>)<br>
<i>Mon, 26 Jan 1998 23:35:03 -0800</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#182">[ date ]</a><a href="index.html#182">[ thread ]</a><a href="subject.html#182">[ subject ]</a><a href="author.html#182">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0183.html">David Mosberger-Tang: "Re: Compile error on Slackware 3.3.0 Sane 0.69"</a>
<li> <b>Previous message:</b> <a href="0181.html">David Mosberger-Tang: "Re: configuring/using xscanimage"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
<i>&gt;&gt;&gt;&gt;&gt; On Mon, 26 Jan 1998 02:44:53 -0800, Jamie Zawinski &lt;<a href="mailto:jwz@netscape.com">jwz@netscape.com</a>&gt; said:</i><br>
<p>
Jamie&gt; The first problem I ran into when trying to build it was, I<br>
Jamie&gt; wasn't able to use gcc. I had to use SGI's cc, because<br>
Jamie&gt; something is going wrong when sane tries to create shared<br>
Jamie&gt; libraries. It's apparently not doing the right thing for<br>
Jamie&gt; Irix, because ld complains:<br>
<p>
If all else fails, you can disable shared libraries and dynamic<br>
loading all-together by invoking configure with option<br>
--disable-shared. But if cc works, that should be fine too (the debug<br>
messages just aren't as nice as with gcc).<br>
<p>
Jamie&gt; First, lalloca.h was trouble. You're including lalloca.h<br>
Jamie&gt; before config.h because of AIX -- but on SGI, &lt;alloca.h&gt; must<br>
Jamie&gt; be included before alloca() can be used, and &lt;alloca.h&gt; only<br>
Jamie&gt; gets included if config.h has defined HAVE_ALLOCA_H... Which<br>
Jamie&gt; means that on SGI, config.h must come before lalloca.h. So a<br>
Jamie&gt; whole bunch of files needed to have the ifdefs tweaked.<br>
<p>
OK, thanks for fixing this.<br>
<p>
Jamie&gt; I had to add a missing argument in sanei_scsi.c. I guessed<br>
Jamie&gt; "0".<br>
<p>
Yup, 0 should be fine for now (the correct fix will be in sane-0.70).<br>
<p>
Jamie&gt; I had to add #defines of __P and __const to microtek.c<br>
Jamie&gt; (presumably this is a gcc-ism.)<br>
<p>
Yikes, I missed that. Just remove that unnecessary strdup()<br>
declaration and things will be fine.<br>
<p>
Jamie&gt; So, after all that, I have runnable executables. But they<br>
Jamie&gt; don't find my scanner. Running "find-scanner" as root prints<br>
Jamie&gt; nothing.<br>
<p>
Hmmh, that's strange. /dev/scsi/sc1d5l0 _should_ be probed by<br>
find-scanner on an SGI system, but I can't test this myself.<br>
<p>
Jamie&gt; When I run "xscanimage /dev/scsi/sc1d5l0", I get "Failed to<br>
Jamie&gt; open device `/dev/scsi/sc1d5l0': Invalid argument."<br>
<p>
With the default setup of SANE, the device name would be<br>
hp:/dev/scsi/sc1d5l0 (see sane-dll(5)). But given that find-scanner<br>
wasn't able to locate your scanner, I'm not sure this will help.<br>
<p>
--david<br>
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0183.html">David Mosberger-Tang: "Re: Compile error on Slackware 3.3.0 Sane 0.69"</a>
<li> <b>Previous message:</b> <a href="0181.html">David Mosberger-Tang: "Re: configuring/using xscanimage"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>