sane-project-website/old-archive/2000-07/0185.html

170 wiersze
5.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: Current compilation status</TITLE>
<META NAME="Author" CONTENT="Henning Meier-Geinitz (hmg-ml@gmx.de)">
<META NAME="Subject" CONTENT="Re: Current compilation status">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Current compilation status</H1>
<!-- received="Fri Jul 21 11:47:45 2000" -->
<!-- isoreceived="20000721184745" -->
<!-- sent="Fri, 21 Jul 2000 20:50:22 +0200" -->
<!-- isosent="20000721185022" -->
<!-- name="Henning Meier-Geinitz" -->
<!-- email="hmg-ml@gmx.de" -->
<!-- subject="Re: Current compilation status" -->
<!-- id="20000721205022.D642@hmg1.vortex.swb.de" -->
<!-- inreplyto="200007191542.XAA06616@poseidon.ee.uwa.edu.au" -->
<STRONG>From:</STRONG> Henning Meier-Geinitz (<A HREF="mailto:hmg-ml@gmx.de?Subject=Re:%20Current%20compilation%20status&In-Reply-To=&lt;20000721205022.D642@hmg1.vortex.swb.de&gt;"><EM>hmg-ml@gmx.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Fri Jul 21 2000 - 11:50:22 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0186.html">David Fox: "Re: How to support a scanner without documentation"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0184.html">Bernard MICHAUD: "Re: xcam/xcanimage cannot se the scanner (continued) and I/O error on PP scanner 330CX"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0167.html">Petter Reinholdtsen: "Re: Current compilation status"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0192.html">Henning Meier-Geinitz: "Re: Current compilation status"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#185">[ date ]</A>
<A HREF="index.html#185">[ thread ]</A>
<A HREF="subject.html#185">[ subject ]</A>
<A HREF="author.html#185">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi,
<BR>
<P>On Wed, Jul 19, 2000 at 11:42:55PM +0800, Petter Reinholdtsen wrote:
<BR>
<EM>&gt; int
</EM><BR>
<EM>&gt; isfdtype(int fd, int fdtype)
</EM><BR>
<EM>&gt; {
</EM><BR>
<EM>&gt; struct stat st;
</EM><BR>
<EM>&gt; if (fstat(fd, &amp;st) == -1) return 0; /* couldn't stat fd */
</EM><BR>
<EM>&gt; #if defined(HAVE_S_ISSOCK)
</EM><BR>
<EM>&gt; return S_ISSOCK(st.st_mode) != 0;
</EM><BR>
<EM>&gt; #elif defined(HAVE_S_IFSOCK)
</EM><BR>
<EM>&gt; return (st.st_mode &amp; S_IFMT) == S_IFSOCK;
</EM><BR>
<EM>&gt; #else
</EM><BR>
<EM>&gt; return 0;
</EM><BR>
<EM>&gt; #endif
</EM><BR>
<EM>&gt; }
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; It is not really generic, but at the moment, we only need the socket
</EM><BR>
<EM>&gt; test.
</EM><BR>
<P>At least it seems to compile on all tested platforms (with an
<BR>
&quot;#include &lt;sys/stat.h&gt;&quot; at the top).
<BR>
<P>I can only test it with irix 5.3 and it looks like something in this code
<BR>
(or the related DBG code) doesn't work. Normal output from scanimage -L on
<BR>
this computer:
<BR>
<P>device pnm:0' is a Noname PNM file reader virtual device
<BR>
device pnm:1' is a Noname PNM file reader virtual device
<BR>
device net:localhost:pnm:0' is a Noname PNM file reader virtual device
<BR>
device net:localhost:pnm:1' is a Noname PNM file reader virtual device
<BR>
<P>Now I add a DBG(0, ...) to e.g. mustek.c. By the way: How can I set
<BR>
environment variables for backends started over inetd/saned?
<BR>
<P>[mustek] SANE Mustek backend version 1.0 build 91 (SANE 1.0.2)
<BR>
device pnm:0' is a Noname PNM file reader virtual device
<BR>
device pnm:1' is a Noname PNM file reader virtual device
<BR>
<P>So the net:localhost:pnm:* entries are missing, probably because the dbg(0,
<BR>
...) in mustek.c produced an error. With SANE_DEBUG_NET=255:
<BR>
<P>[mustek] SANE Mustek backend version 1.0 build 91 (SANE 1.0.2)
<BR>
[sanei_debug] Setting debug level of net to 255.
<BR>
[net] adding backend localhost
<BR>
[net] get_devices: ignoring rpc-returned status Unknown SANE status code 1533900147
<BR>
device pnm:0' is a Noname PNM file reader virtual device
<BR>
device pnm:1' is a Noname PNM file reader virtual device
<BR>
[net] exiting
<BR>
[net] closing dev 10007b40, ctl=27
<BR>
<P>Syslog:
<BR>
Jul 21 20:46:37 5D:bodo saned[20633]: access by henning@localhost accepted
<BR>
Jul 21 20:46:37 6D:bodo saned[20633]: exiting
<BR>
<P>More tests (concerning the scsi problem, alloca, u_int? and #warning as soon
<BR>
as the cvs is working again. At the moment cvs.hungry.com doesn't answer).
<BR>
<P>Bye,
<BR>
&nbsp;&nbsp;Henning
<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?Subject=Re:%20Current%20compilation%20status&In-Reply-To=&lt;20000721205022.D642@hmg1.vortex.swb.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0186.html">David Fox: "Re: How to support a scanner without documentation"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0184.html">Bernard MICHAUD: "Re: xcam/xcanimage cannot se the scanner (continued) and I/O error on PP scanner 330CX"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0167.html">Petter Reinholdtsen: "Re: Current compilation status"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0192.html">Henning Meier-Geinitz: "Re: Current compilation status"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#185">[ date ]</A>
<A HREF="index.html#185">[ thread ]</A>
<A HREF="subject.html#185">[ subject ]</A>
<A HREF="author.html#185">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Fri Jul 21 2000 - 11:49:26 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>