sane-project-website/old-archive/1997-05/0096.html

106 wiersze
4.5 KiB
HTML

<!-- received="Sun Jun 15 16:18:29 1997 MST" -->
<!-- sent="15 Jun 1997 17:12:59 -0600" -->
<!-- name="Gordon Matzigkeit" -->
<!-- email="gord@m-tech.ab.ca" -->
<!-- subject="Re: Sane on NeXT/OpenStep - a plea for help" -->
<!-- id="199706152134.OAA21419@panda.mosberger" -->
<!-- inreplyto="Sun, 15 Jun 97 15:36:33 +0100" -->
<title>sane-devel: Re: Sane on NeXT/OpenStep - a plea for help</title>
<h1>Re: Sane on NeXT/OpenStep - a plea for help</h1>
<b>Gordon Matzigkeit</b> (<a href="mailto:gord@m-tech.ab.ca"><i>gord@m-tech.ab.ca</i></a>)<br>
<i>15 Jun 1997 17:12:59 -0600</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#96">[ date ]</a><a href="index.html#96">[ thread ]</a><a href="subject.html#96">[ subject ]</a><a href="author.html#96">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0097.html">David Mosberger-Tang: "Re: Sane on NeXT/OpenStep - a plea for help"</a>
<li> <b>Previous message:</b> <a href="0095.html">David Mosberger-Tang: "Re: xscanimage redraw-error"</a>
<li> <b>In reply to:</b> <a href="0092.html">Neville Wilford: "Re: Sane on NeXT/OpenStep - a plea for help"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hi!<br>
<p>
<i>&gt;&gt;&gt;&gt;&gt; Neville Wilford writes:</i><br>
<p>
<i> &gt;&gt; I believe the C compiler gave correct error messages. Somehow,</i><br>
<i> &gt;&gt; your `read' and `write' functions have not been</i><br>
<i> &gt;&gt; declared. Normally, these functions are declared by the `unistd.h'</i><br>
<i> &gt;&gt; header file.</i><br>
<p>
NW&gt; phaedrus:30# find / -name unistd.h -print<br>
NW&gt; /NextDeveloper/Headers/bsd/unistd.h<br>
<p>
Good show. Root finds always help. ;)<br>
<p>
NW&gt; I'm hoping this might count as a significant clue.<br>
<p>
It does. What it implies, along with the results you posted below, is<br>
that the BSDish header files are stored under the<br>
/NextDeveloper/Headers/bsd directory.<br>
<p>
NW&gt; Is "-I../include -I../include -arch i386 -undef " something to do<br>
NW&gt; with the problem?<br>
<p>
I don't think so.<br>
<p>
<i> &gt;&gt; What you are interested in is finding the declarations of the</i><br>
<i> &gt;&gt; `read' and `write' system functions in your system header files.</i><br>
<p>
/NextDeveloper/Headers/bsd/libc.h:extern int read(int, void *, int), \<br>
write(int, const void *, int);<br>
<p>
Congratulations! You found it!<br>
<p>
NW&gt; Thanks again, but I don't think I'm doing very well here. Sorry<br>
NW&gt; to be such a complete dimwit. Is it possible that putting<br>
NW&gt; /NextDeveloper/Headers/bsd somewhere in the include path might be<br>
NW&gt; helpful?<br>
<p>
No, on the contrary, I think you are doing very well.<br>
<p>
I think all you need to fix your problem is to make the following<br>
change to source files that fail to compile:<br>
<p>
#include &lt;unistd.h&gt;<br>
#include &lt;libc.h&gt; /* Add this line! */<br>
<p>
If you want to give me access to your OpenStep box, which you offered,<br>
then I would be more than happy to help port SANE to OpenStep. If<br>
you're interested, I like accounts named `gord'. ;)<br>
<p>
On the other hand, if you want to try porting to OpenStep yourself, it<br>
should be relatively easy. Part of the battle would be to see if<br>
`libc.h' is automatically #included by any of the other files in<br>
/NextDeveloper/Headers/bsd. If not, then #including it directly, as I<br>
did above, is probably the right solution.<br>
<p>
If that's all that gives you trouble, then the patches to SANE are<br>
quite trivial. Just tell us which of the SANE files fail to compile<br>
without the above patch, and then we can add an Autoconf macro to<br>
include `libc.h' in those files.<br>
<p>
Good luck,<br>
<p>
<pre>
--
Gord Matzigkeit | Proudly running pieces of the GNU operating system.
gord@m-tech.ab.ca | Jacques Cousteau loved programming in assembler.
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.azstarnet.com/~axplinux/sane/">http://www.azstarnet.com/~axplinux/sane/</a>
To unsubscribe: mail -s unsubscribe <a href="mailto:sane-devel-request@listserv.azstarnet.com">sane-devel-request@listserv.azstarnet.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0097.html">David Mosberger-Tang: "Re: Sane on NeXT/OpenStep - a plea for help"</a>
<li> <b>Previous message:</b> <a href="0095.html">David Mosberger-Tang: "Re: xscanimage redraw-error"</a>
<li> <b>In reply to:</b> <a href="0092.html">Neville Wilford: "Re: Sane on NeXT/OpenStep - a plea for help"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>