sane-project-website/old-archive/1998-05/0138.html

76 wiersze
3.8 KiB
HTML

<!-- received="Tue May 12 08:27:54 1998 PDT" -->
<!-- sent="Tue, 12 May 1998 08:27:53 -0700" -->
<!-- name="David Mosberger-Tang" -->
<!-- email="David.Mosberger@acm.org" -->
<!-- subject="Re: [patch] 0.72 sane-dll.so changes..." -->
<!-- id="199805121527.IAA25642@panda.mostang.com" -->
<!-- inreplyto="199805120419.VAA15624@panda.mostang.com" -->
<title>sane-devel: Re: [patch] 0.72 sane-dll.so changes...</title>
<h1>Re: [patch] 0.72 sane-dll.so changes...</h1>
<b>David Mosberger-Tang</b> (<a href="mailto:David.Mosberger@acm.org"><i>David.Mosberger@acm.org</i></a>)<br>
<i>Tue, 12 May 1998 08:27:53 -0700</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#138">[ date ]</a><a href="index.html#138">[ thread ]</a><a href="subject.html#138">[ subject ]</a><a href="author.html#138">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0139.html">Jim Ford: "Re: [umax] Can't use 10-bit scan: "preview cannot handle depth 16""</a>
<li> <b>Previous message:</b> <a href="0137.html">Nils Schuller: "whole system locked"</a>
<li> <b>In reply to:</b> <a href="0128.html">David Mosberger-Tang: "Re: [patch] 0.72 sane-dll.so changes..."</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
<i>&gt;&gt;&gt;&gt;&gt; On Tue, 12 May 1998 09:38:42 -0400, Michael Sweet &lt;<a href="mailto:mike@easysw.com">mike@easysw.com</a>&gt; said:</i><br>
<p>
Michael&gt; David Mosberger-Tang wrote:<br>
<i> &gt;&gt; ... Well, dlopen() doesn't care, but we need to make sure we're</i><br>
<i> &gt;&gt; dlopen()ing the _right_ version if there are multiple versions.</i><br>
<i> &gt;&gt; The ...</i><br>
<p>
Michael&gt; Then I'd use the GIMP way, which is to have a<br>
Michael&gt; "gimp-major.minor" subdirectory for the library files.<br>
<p>
Note that the shared library versioning is not necessarily related to<br>
the SANE versioning. It has been so far (we're still in beta so we<br>
have some more slack, no? ;-) but it does not necessarily have to stay<br>
that way. (I'm not saying the directory scheme wouldn't work, but I<br>
think people would find it confusing if the version number on the<br>
shared library directory were different from the major version of<br>
SANE.)<br>
<p>
Michael&gt; The only thing that the .la files are doing for you (that I<br>
Michael&gt; can see, anyways) is to identify the actual DSO file, whose<br>
Michael&gt; name will vary depending on the version and platform.<br>
Michael&gt; Building the shared library without the standard extension<br>
Michael&gt; (be it .so, .sl, etc.) should not pose a problem - the<br>
Michael&gt; linker sees the DSO flag (-shared, -B, etc.) and does what<br>
Michael&gt; it is told...<br>
<p>
Ah, but that's the problem. The shared libraries are built by<br>
libtool. The SANE build process has no knowledge of the internal<br>
workings of libtool (and it shouldn't).<br>
<p>
However, I think a better solution would be is to change dll.c to<br>
always use a canonical file name such as LIBNAME.so.$(MAJOR). The<br>
install process could then parse the .la files and create a symlink<br>
from the canonical filename to the system-specific filename if<br>
necessary.<br>
<p>
--david<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">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0139.html">Jim Ford: "Re: [umax] Can't use 10-bit scan: "preview cannot handle depth 16""</a>
<li> <b>Previous message:</b> <a href="0137.html">Nils Schuller: "whole system locked"</a>
<li> <b>In reply to:</b> <a href="0128.html">David Mosberger-Tang: "Re: [patch] 0.72 sane-dll.so changes..."</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>