sane-project-website/old-archive/1999-11/0261.html

95 wiersze
4.4 KiB
HTML

<!-- received="Fri Nov 26 08:46:26 1999 PST" -->
<!-- sent="Fri, 26 Nov 1999 16:50:23 +0000" -->
<!-- name="Dave Restall - System Administrator" -->
<!-- email="dave@restall.net" -->
<!-- subject="undefined reference to `sane_pie...`" -->
<!-- id="E11rOZj-0002zD-00@basil.restall.net" -->
<!-- inreplyto="" -->
<title>sane-devel: undefined reference to `sane_pie...`</title>
<h1>undefined reference to `sane_pie...`</h1>
<b>Dave Restall - System Administrator</b> (<a href="mailto:dave@restall.net"><i>dave@restall.net</i></a>)<br>
<i>Fri, 26 Nov 1999 16:50:23 +0000</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#261">[ date ]</a><a href="index.html#261">[ thread ]</a><a href="subject.html#261">[ subject ]</a><a href="author.html#261">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0262.html">Klaus Espenlaub: "SCSI protocol snooping using WINE"</a>
<li> <b>Previous message:</b> <a href="0260.html">Kevin Charter: "Re: Acer 310s?"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hi,<br>
<p>
It's moving - slowly. I managed to get scanimage working with the pnm<br>
backend :-). I had sane-0.74 installed on the system and when I deleted<br>
that and all the old includes, library files etc. then started off from<br>
scratch with sane-1.01 it went very smoothly. I now see debug messages<br>
that I've pasted into the pnm backend so it appears that I have a clean<br>
build of sane.<br>
<p>
I've created a stub backend/pie.c and a stub backend/pie.conf.<br>
I've also worked out that I need to add pie.c to ./backend/Makefile<br>
(perhaps to Makefile.in eventually) in two places (PRELOADABLE_BACKENDS<br>
&amp; libsane-???). It also needs adding to backend/dll-preload.c.<br>
<p>
I've done this and the backend compiles, it doesn't link though. It<br>
falls over with :-<br>
<p>
...backend/dll.c:512: undefined reference to `sane_pie_start'<br>
<p>
which I suspect is because I haven't included the correct files or<br>
because I haven't added my driver to some other config file.<br>
<p>
This is where I now need some help, my questions are simple ones, but I<br>
suspect the answers are not so simple to give :-<br>
<p>
1) What is the minimum set of #include lines that I need to use in my<br>
backend, I'm currently using sane/sane.h (all that the spec says) and<br>
sane/config.h, sane/sanei.h - simply because these seem popular in all<br>
the other drivers. I don't want to just paste stuff in in the hope that<br>
it will work (adding config and sanei didn't make a difference).<br>
<p>
2) In the absence of documentation, what do all the sane specific *.h<br>
files do ? What I mean here is "sanei.h is necessary because without it<br>
X won't work etc".<br>
<p>
Sorry to be a pain but the whole documentation is pretty poor when it<br>
comes to building a backend. The upside of all this is that as I get<br>
through each step, I'm documenting what I'm doing so when I get the<br>
backend working there will be an added bonus of a HOWTO to compliment<br>
it.<br>
<p>
So send me your emails and ideas.<br>
<p>
Regards,<br>
<p>
<p>
Dave<br>
mail/sane/991126.tx sane<br>
+----------------------------------------------------------------------------+<br>
<i>| Dave Restall Internet Intranet Resourcing Consultancy Limited |</i><br>
<i>| Tel. +44 (0) 1287 653003 Mob. +44 (0) 973 831245 Fax. +44 (0) 1287 652546 |</i><br>
<i>| email : <a href="mailto:dave@iirc.net">dave@iirc.net</a> dave@restall.net Web : <a href="http://www.iirc.net">http://www.iirc.net</a> |</i><br>
+----------------------------------------------------------------------------+<br>
<i>| Isn't it strange that the same people that laugh at gypsy fortune |</i><br>
<i>| tellers take economists seriously? |</i><br>
+----------------------------------------------------------------------------+<br>
<p>
<p>
<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">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0262.html">Klaus Espenlaub: "SCSI protocol snooping using WINE"</a>
<li> <b>Previous message:</b> <a href="0260.html">Kevin Charter: "Re: Acer 310s?"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>