sane-project-website/old-archive/2000-12/0293.html

160 wiersze
5.7 KiB
HTML
Czysty Wina Historia

<!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: Compile problems (and fixes) for 1.0.4</TITLE>
<META NAME="Author" CONTENT="oliver.rauch@Wolfsburg.DE (oliver.rauch@Wolfsburg.DE)">
<META NAME="Subject" CONTENT="Re: Compile problems (and fixes) for 1.0.4">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Compile problems (and fixes) for 1.0.4</H1>
<!-- received="Thu Dec 28 00:59:10 2000" -->
<!-- isoreceived="20001228085910" -->
<!-- sent="Thu, 28 Dec 2000 10:12:44 +0100" -->
<!-- isosent="20001228091244" -->
<!-- name="oliver.rauch@Wolfsburg.DE" -->
<!-- email="oliver.rauch@Wolfsburg.DE" -->
<!-- subject="Re: Compile problems (and fixes) for 1.0.4" -->
<!-- id="3A4B040C.E6C7E650@wolfsburg.de" -->
<!-- inreplyto="ae9h8fc9.fsf@corwin.localnet.UnwiredUniverse.com" -->
<STRONG>From:</STRONG> <A HREF="mailto:oliver.rauch@Wolfsburg.DE?Subject=Re:%20Compile%20problems%20(and%20fixes)%20for%201.0.4&In-Reply-To=&lt;3A4B040C.E6C7E650@wolfsburg.de&gt;"><EM>oliver.rauch@Wolfsburg.DE</EM></A><BR>
<STRONG>Date:</STRONG> Thu Dec 28 2000 - 01:12:44 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0294.html">oliver.rauch@Wolfsburg.DE: "Re: new configure script for xsane-0.6[678]"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0292.html">Eric Windisch : "The ol' hp 3300"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0290.html">Derrell Lipman: "Compile problems (and fixes) for 1.0.4"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0297.html">Henning Meier-Geinitz: "Re: Compile problems (and fixes) for 1.0.4"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#293">[ date ]</A>
<A HREF="index.html#293">[ thread ]</A>
<A HREF="subject.html#293">[ subject ]</A>
<A HREF="author.html#293">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Derrell Lipman wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Hi. I downloaded all the latest SANE stuff today.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; - sane-1.0.3 compiled and installed fine, , but caused problems
</EM><BR>
<EM>&gt; for sane-frontends-1.0.4 and xsane-0.68.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; On RedHat 7.0, the LIBS line in sane-config must contain -ldl or the
</EM><BR>
<EM>&gt; sane-frontends-1.0.4 and xsane-0.68 installations fail.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; LIBS=&quot;-lnsl -lm -ljpeg -ldl&quot;
</EM><BR>
<P>Hi Derrell,
<BR>
<P>when you compile sane-backends without special options for configure
<BR>
it should compile as shared library. dl is linked to the shared libraries
<BR>
libsane-*.so* . When you link a program against libsane-*.so* it should
<BR>
use tbe link to dl.
<BR>
When you compile everything static, the backends are preloaded into libsane.a.
<BR>
So when I don<6F>t forget anything we do not need dl when we use static linking.
<BR>
<P>So in my opinion everything should be ok, but may be I forgot something here.
<BR>
<P>How did you compile it (configure options, anything special)?
<BR>
<P><EM>&gt; (Also, looking at it now, -lm should generally be the *last* library
</EM><BR>
<EM>&gt; linked, as anything could end up using it. It didn't make a
</EM><BR>
<EM>&gt; difference here, though.)
</EM><BR>
That is correct because it could make problems with static linking,
<BR>
for shared libs we do not need to care about the order of the libs.
<BR>
<P><EM>&gt; - sane-frontends-1.0.4 would not install. The first problem was the
</EM><BR>
<EM>&gt; sane-config issue discussed above. Secondly, two makefiles needs to
</EM><BR>
<EM>&gt; be modified (they appear to have some local munging that didn't get
</EM><BR>
<EM>&gt; removed before the release).
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; src/Makefile and doc/Makefile both require changing:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; INSTALL = ../'/usr/bin/install -c'
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; to
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; INSTALL = /usr/bin/install -c
</EM><BR>
<P>The Makefile is created from Makefile.in by the configure script.
<BR>
The variable INSTALL that is used for this is set up by a standard
<BR>
function of autoconf and I do not think that there is a problem with
<BR>
this. Is it possible that your system is not set up correct?
<BR>
<P>&nbsp;
<BR>
Bye
<BR>
Oliver
<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:%20Compile%20problems%20(and%20fixes)%20for%201.0.4&In-Reply-To=&lt;3A4B040C.E6C7E650@wolfsburg.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0294.html">oliver.rauch@Wolfsburg.DE: "Re: new configure script for xsane-0.6[678]"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0292.html">Eric Windisch : "The ol' hp 3300"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0290.html">Derrell Lipman: "Compile problems (and fixes) for 1.0.4"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0297.html">Henning Meier-Geinitz: "Re: Compile problems (and fixes) for 1.0.4"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#293">[ date ]</A>
<A HREF="index.html#293">[ thread ]</A>
<A HREF="subject.html#293">[ subject ]</A>
<A HREF="author.html#293">[ 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 Dec 28 2000 - 01:02:49 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>