kopia lustrzana https://gitlab.com/sane-project/website
106 wiersze
4.5 KiB
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>>>>>> Neville Wilford writes:</i><br>
|
|
<p>
|
|
<i> >> I believe the C compiler gave correct error messages. Somehow,</i><br>
|
|
<i> >> your `read' and `write' functions have not been</i><br>
|
|
<i> >> declared. Normally, these functions are declared by the `unistd.h'</i><br>
|
|
<i> >> header file.</i><br>
|
|
<p>
|
|
NW> phaedrus:30# find / -name unistd.h -print<br>
|
|
NW> /NextDeveloper/Headers/bsd/unistd.h<br>
|
|
<p>
|
|
Good show. Root finds always help. ;)<br>
|
|
<p>
|
|
NW> 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> Is "-I../include -I../include -arch i386 -undef " something to do<br>
|
|
NW> with the problem?<br>
|
|
<p>
|
|
I don't think so.<br>
|
|
<p>
|
|
<i> >> What you are interested in is finding the declarations of the</i><br>
|
|
<i> >> `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> Thanks again, but I don't think I'm doing very well here. Sorry<br>
|
|
NW> to be such a complete dimwit. Is it possible that putting<br>
|
|
NW> /NextDeveloper/Headers/bsd somewhere in the include path might be<br>
|
|
NW> 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 <unistd.h><br>
|
|
#include <libc.h> /* 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>
|