sane-project-website/old-archive/2000-06/0198.html

194 wiersze
6.1 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: SANE 1.0.2 linking problems</TITLE>
<META NAME="Author" CONTENT="Benjamin Low (ben@snrc.uow.edu.au)">
<META NAME="Subject" CONTENT="SANE 1.0.2 linking problems">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>SANE 1.0.2 linking problems</H1>
<!-- received="Tue Jun 27 20:09:59 2000" -->
<!-- isoreceived="20000628030959" -->
<!-- sent="Wed, 28 Jun 2000 13:20:41 +1000" -->
<!-- isosent="20000628032041" -->
<!-- name="Benjamin Low" -->
<!-- email="ben@snrc.uow.edu.au" -->
<!-- subject="SANE 1.0.2 linking problems" -->
<!-- id="39596F09.1709074E@snrc.uow.edu.au" -->
<!-- inreplyto="200006270601.OAA04117@poseidon.ee.uwa.edu.au" -->
<STRONG>From:</STRONG> Benjamin Low (<A HREF="mailto:ben@snrc.uow.edu.au?Subject=Re:%20SANE%201.0.2%20linking%20problems&In-Reply-To=&lt;39596F09.1709074E@snrc.uow.edu.au&gt;"><EM>ben@snrc.uow.edu.au</EM></A>)<BR>
<STRONG>Date:</STRONG> Tue Jun 27 2000 - 20:20:41 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0199.html">Petter Reinholdtsen: "Re: Backends using Kernel-Modules"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0197.html">Henning Meier-Geinitz: "Re: printf()/fprintf() in backends"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0193.html">Petter Reinholdtsen: "Re: Towards release 1.0.3?"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0211.html">Benjamin Low: "SANE 1.0.2 DLL problems"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0211.html">Benjamin Low: "SANE 1.0.2 DLL problems"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#198">[ date ]</A>
<A HREF="index.html#198">[ thread ]</A>
<A HREF="subject.html#198">[ subject ]</A>
<A HREF="author.html#198">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
I've hit a snag running SANE 1.0.2 - I get indefined symbols when the
<BR>
backends are loaded.
<BR>
<P>I've a Debian 2.1, linux 2.2.16 machine (w/ 2.4.0 USB backport), driving
<BR>
an Epson 610 (USB) scanner. I am using Karl Heinz's
<BR>
sane_epson_20000613.tar.gz backend in place of the 1.0.2 version. Karl
<BR>
has been of great help in getting the USB side happening, though I
<BR>
believe my current problem is sane-specfic (it happens for all backends,
<BR>
incl. pnm).
<BR>
<P>Configure (with no options), make and make install succeeds (no errors,
<BR>
though I do get a bunch of warnings in most of the 'backend' drivers
<BR>
(unused variables and the like, nothing obviously serious)).
<BR>
<P>$ cat /usr/local/etc/sane.d/dll.conf
<BR>
net
<BR>
epson
<BR>
pnm
<BR>
<P>$ ls -l /usr/local/lib/sane/libsane.so.1
<BR>
lrwxrwxrwx 1 root staff 20 Jun 28 09:21 libsane.so.1 -&gt;
<BR>
libsane-pnm.so.1.0.2*
<BR>
<P>$ scanimage -L
<BR>
$
<BR>
&nbsp;&nbsp;&nbsp;i.e. nothing, not even the pnm test device
<BR>
<P>$ SANE_DEBUG_DLL=128 scanimage -L
<BR>
[sanei_init_debug]: Setting debug level of dll to 128.
<BR>
[dll] adding backend net
<BR>
[dll] adding backend epson
<BR>
[dll] adding backend pnm
<BR>
[dll] loading backend pnm
<BR>
[dll] dlopen()ing `/usr/local/lib/sane/libsane-pnm.so.1'
<BR>
[dll] dlopen() failed (/usr/local/lib/sane/libsane-pnm.so.1: undefined
<BR>
symbol: sanei_debug_pnm)
<BR>
[dll] loading backend epson
<BR>
[dll] dlopen()ing `/usr/local/lib/sane/libsane-epson.so.1'
<BR>
[dll] dlopen() failed (/usr/local/lib/sane/libsane-epson.so.1: undefined
<BR>
symbol: sanei_scsi_max_request_size)
<BR>
[dll] loading backend net
<BR>
[dll] dlopen()ing `/usr/local/lib/sane/libsane-net.so.1'
<BR>
[dll] dlopen() failed (/usr/local/lib/sane/libsane-net.so.1: undefined
<BR>
symbol: sanei_w_start_reply)
<BR>
[dll] exiting
<BR>
[dll] calling backend `pnm's exit function
<BR>
[dll] call to unsupported backend operation
<BR>
[dll] calling backend `epson's exit function
<BR>
[dll] call to unsupported backend operation
<BR>
[dll] calling backend `net's exit function
<BR>
[dll] call to unsupported backend operation
<BR>
<P>For what it's worth, I've tried configure --disable-shared with little
<BR>
change (the backends still fail to initialise - I can provide more info
<BR>
if reqd).
<BR>
<P>Looking at the undefined symbols from above, in /usr/local/lib/sane:
<BR>
$ nm libsane-pnm.so.1 | grep sanei_debug_pnm
<BR>
00004298 B sanei_debug_pnm
<BR>
<P>$ nm libsane-epson.so.1 | grep sanei_scsi_max_request_size
<BR>
000125d4 D sanei_scsi_max_request_size
<BR>
<P>$ nm libsane-net.so.1 | grep sanei_w_start_reply
<BR>
00003f60 T sanei_w_start_reply
<BR>
<P>As far I as I understand how dlls work (which is not much), this means
<BR>
the symbols *are* present, yes?
<BR>
<P><P>I'm more than happy to provide further info as required,
<BR>
<P>Regards,
<BR>
<P>Ben Low
<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:%20SANE%201.0.2%20linking%20problems&In-Reply-To=&lt;39596F09.1709074E@snrc.uow.edu.au&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0199.html">Petter Reinholdtsen: "Re: Backends using Kernel-Modules"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0197.html">Henning Meier-Geinitz: "Re: printf()/fprintf() in backends"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0193.html">Petter Reinholdtsen: "Re: Towards release 1.0.3?"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0211.html">Benjamin Low: "SANE 1.0.2 DLL problems"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0211.html">Benjamin Low: "SANE 1.0.2 DLL problems"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#198">[ date ]</A>
<A HREF="index.html#198">[ thread ]</A>
<A HREF="subject.html#198">[ subject ]</A>
<A HREF="author.html#198">[ 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>Tue Jun 27 2000 - 20:11:34 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>