sane-project-website/old-archive/2001-05/0116.html

154 wiersze
5.6 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: saned won't run under inetd</TITLE>
<META NAME="Author" CONTENT="Henning Meier-Geinitz (henning@meier-geinitz.de)">
<META NAME="Subject" CONTENT="Re: saned won't run under inetd">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: saned won't run under inetd</H1>
<!-- received="Thu May 10 10:36:56 2001" -->
<!-- isoreceived="20010510173656" -->
<!-- sent="Thu, 10 May 2001 19:50:33 +0200" -->
<!-- isosent="20010510175033" -->
<!-- name="Henning Meier-Geinitz" -->
<!-- email="henning@meier-geinitz.de" -->
<!-- subject="Re: saned won't run under inetd" -->
<!-- id="20010510195033.D21633@vortex.swb.de" -->
<!-- inreplyto="EBE6A40C53DCD311B18900508B92C8E15094E3@postix.nrpa.no" -->
<STRONG>From:</STRONG> Henning Meier-Geinitz (<A HREF="mailto:henning@meier-geinitz.de?Subject=Re:%20saned%20won't%20run%20under%20inetd&In-Reply-To=&lt;20010510195033.D21633@vortex.swb.de&gt;"><EM>henning@meier-geinitz.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Thu May 10 2001 - 10:50:33 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0117.html">Oliver Rauch: "Re: ( XSane parameters or buffer bug"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0115.html">mh: "Re:( XSane parameters or buffer bug"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0112.html">Morten Sickel: "saned won't run under inetd"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0119.html">Petter Reinholdtsen: "Re: saned won't run under inetd"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#116">[ date ]</A>
<A HREF="index.html#116">[ thread ]</A>
<A HREF="subject.html#116">[ subject ]</A>
<A HREF="author.html#116">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi,
<BR>
<P>On Thu, May 10, 2001 at 01:39:32PM +0200, Morten Sickel wrote:
<BR>
<EM>&gt; I have just installed sane 1.0.4 on a HP 712 running HP-UX 10.20. If works
</EM><BR>
<EM>&gt; just fine
</EM><BR>
<P>Does dynamic loading of the SANE libraries work? I'm asking because we
<BR>
have an entry on <A HREF="http://panda.mostang.com/sane/sane-support.html">http://panda.mostang.com/sane/sane-support.html</A>
<BR>
indicating dynamic loading isn't working. Any problems with
<BR>
compilation? Which compiler was used?
<BR>
<P><EM>&gt; used locally, but my goal is to use the box as a scanning server
</EM><BR>
<EM>&gt; for a few PCs running WIN NT / 98. Enter xsane win. As a few persons earlier
</EM><BR>
<EM>&gt; have complained about, I can start /usr/local/sbin/saned from the command
</EM><BR>
<EM>&gt; prompt and scan just fine form the PC (wow, that is really great!!) but if I
</EM><BR>
<EM>&gt; try to start saned from inetd, xsane comes up, scans for devices and just
</EM><BR>
<EM>&gt; dies with a segfault.
</EM><BR>
<P>I don't know why this happens. Petter and me fixed some possible bugs
<BR>
concerning networking in the last week but I don't know if this is
<BR>
related. There is a current CVS snapshot at
<BR>
<A HREF="http://www.meier-geinitz.de/sane/sane-cvs-2001-05-10.tar.gz">http://www.meier-geinitz.de/sane/sane-cvs-2001-05-10.tar.gz</A> if you
<BR>
like to test.
<BR>
<P><EM>&gt; I have not found any traces anywhere of what is going on, how can I increase
</EM><BR>
<EM>&gt; the debuglevel when running saned from inetd?
</EM><BR>
<P>Yes. I use a shell script for that. Use the path to the shell script
<BR>
in /etc/inetd.conf instead of saned. E.g.:
<BR>
<P>#!/bin/sh
<BR>
SANE_DEBUG_MUSTEK=2
<BR>
export SANE_DEBUG_MUSTEK
<BR>
/usr/local/sbin/saned
<BR>
<P>The output will go to syslog.
<BR>
<P>I don't know how to debug errors when inetd is used. Can gdb or strace
<BR>
be used? How?
<BR>
<P><EM>&gt; As far as I can see from the documentation, I should use
</EM><BR>
<EM>&gt; xsane net:server:hp:/dev/scanner, but I could not make it work without
</EM><BR>
<EM>&gt; removing net:..
</EM><BR>
<EM>&gt; Is it just my ignorance or is it an error in the docs?
</EM><BR>
<P>No, that's correct. E.g. the following works for me:
<BR>
<P>scanimage -d net:localhost:pnm:0 --filename=/home/hmg/rgb.pnm -T
<BR>
<P>This is different if you link the net backend directly to xsane and
<BR>
don't use the dll backend at all. In this case server:hp:/dev/scanner
<BR>
would be ok.
<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:%20saned%20won't%20run%20under%20inetd&In-Reply-To=&lt;20010510195033.D21633@vortex.swb.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0117.html">Oliver Rauch: "Re: ( XSane parameters or buffer bug"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0115.html">mh: "Re:( XSane parameters or buffer bug"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0112.html">Morten Sickel: "saned won't run under inetd"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0119.html">Petter Reinholdtsen: "Re: saned won't run under inetd"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#116">[ date ]</A>
<A HREF="index.html#116">[ thread ]</A>
<A HREF="subject.html#116">[ subject ]</A>
<A HREF="author.html#116">[ 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>Thu May 10 2001 - 10:37:12 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>