sane-project-website/old-archive/1998-11/0279.html

95 wiersze
4.0 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Sun Nov 29 12:19:34 1998 PST" -->
<!-- sent="Sun, 29 Nov 1998 21:15:12 +0100 (MET)" -->
<!-- name="Thorsten Frueauf" -->
<!-- email="frueauf@ira.uka.de" -->
<!-- subject="problem with sane 1.00 and NetBSD" -->
<!-- id="" -->
<!-- inreplyto="" -->
<title>sane-devel: problem with sane 1.00 and NetBSD</title>
<h1>problem with sane 1.00 and NetBSD</h1>
<b>Thorsten Frueauf</b> (<a href="mailto:frueauf@ira.uka.de"><i>frueauf@ira.uka.de</i></a>)<br>
<i>Sun, 29 Nov 1998 21:15:12 +0100 (MET)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#279">[ date ]</a><a href="index.html#279">[ thread ]</a><a href="subject.html#279">[ subject ]</a><a href="author.html#279">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0280.html">Hugo van der Kooij: "SANE 1.00 breaks on Solaris v2.6"</a>
<li> <b>Previous message:</b> <a href="0278.html">Dave Barron: "ACROSS scanner compatible with ???"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0284.html">wolfgang Rapp: "Re: problem with sane 1.00 and NetBSD"</a>
<li> <b>Reply:</b> <a href="0284.html">wolfgang Rapp: "Re: problem with sane 1.00 and NetBSD"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hello!<br>
<p>
First sorry if this is the false way to report problems/bugs, but<br>
I did not find an explicit email adress for such feedback, so I choosed<br>
this maillist. But please note that I am not subscribed to this list.<br>
<p>
I found two major problems while integrating the new sane 1.00 release<br>
into pkgsrc from NetBSD (similar to the FreeBSD ports collection):<br>
<p>
1) in backend/snapscan.c gets a Linux-only header file included<br>
(at least I suspect that its Linux-only) which tries to find<br>
out what MAXINT is.<br>
<p>
2) in backend/abaton.c, s-&gt;val[OPT_X_RESOLUTION] is missing the .w member.<br>
<p>
The appended patches solve those problems. I also want to note that<br>
the DC210 backend does not compile, as it uses a constant which<br>
I could not find in any NetBSD header file: TCSBRKP.<br>
Its used in backend/dc210.c line 351, and I don't know an aquivalent.<br>
<p>
Greets<br>
Thorsten<br>
<p>
--- backend/snapscan.c-orig Thu Oct 29 08:02:29 1998<br>
+++ backend/snapscan.c Sat Nov 28 12:16:28 1998<br>
@@ -55,7 +55,6 @@<br>
#include &lt;sys/time.h&gt;<br>
#include &lt;sys/types.h&gt;<br>
#include &lt;sys/stat.h&gt;<br>
-#include &lt;values.h&gt;<br>
#include &lt;limits.h&gt;<br>
#include &lt;fcntl.h&gt;<br>
#include &lt;unistd.h&gt;<br>
@@ -3150,7 +3149,7 @@<br>
<br>
{<br>
int result = write (pss-&gt;tfd, other_buf, pss-&gt;read_bytes);<br>
- if (result &lt; 0 || result == MAXINT)<br>
+ if (result &lt; 0 || result == INT_MAX)<br>
{<br>
DBG (DL_MAJOR_ERROR, "%s: write of test data to file failed.\n",<br>
me);<br>
--- backend/abaton.c-orig Sun Nov 22 03:54:14 1998<br>
+++ backend/abaton.c Sat Nov 28 11:20:23 1998<br>
@@ -1113,7 +1113,7 @@<br>
<br>
case OPT_Y_RESOLUTION:<br>
if (s-&gt;val[OPT_PREVIEW].w || s-&gt;val[OPT_RESOLUTION_BIND].w) {<br>
- s-&gt;val[OPT_X_RESOLUTION] = *(SANE_Word *)val;<br>
+ s-&gt;val[OPT_X_RESOLUTION].w = *(SANE_Word *)val;<br>
if (info)<br>
*info |= SANE_INFO_RELOAD_OPTIONS;<br>
}<br>
<p>
<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="0280.html">Hugo van der Kooij: "SANE 1.00 breaks on Solaris v2.6"</a>
<li> <b>Previous message:</b> <a href="0278.html">Dave Barron: "ACROSS scanner compatible with ???"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0284.html">wolfgang Rapp: "Re: problem with sane 1.00 and NetBSD"</a>
<li> <b>Reply:</b> <a href="0284.html">wolfgang Rapp: "Re: problem with sane 1.00 and NetBSD"</a>
<!-- reply="end" -->
</ul>