sane-project-website/old-archive/1997-05/0147.html

104 wiersze
5.1 KiB
HTML

<!-- received="Tue Jun 24 15:49:15 1997 MST" -->
<!-- sent="Wed, 25 Jun 1997 00:31:32 +0200 (MET DST)" -->
<!-- name="Guido Muesch" -->
<!-- email="odiug@faho.rwth-aachen.de" -->
<!-- subject="strange library problems solved" -->
<!-- id="199706242231.AAA20879@darkstar.faho.rwth-aachen.de" -->
<!-- inreplyto="199706172146.XAA13006@darkstar.faho.rwth-aachen.de" -->
<title>sane-devel: strange library problems solved</title>
<h1>strange library problems solved</h1>
<b>Guido Muesch</b> (<a href="mailto:odiug@faho.rwth-aachen.de"><i>odiug@faho.rwth-aachen.de</i></a>)<br>
<i>Wed, 25 Jun 1997 00:31:32 +0200 (MET DST)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#147">[ date ]</a><a href="index.html#147">[ thread ]</a><a href="subject.html#147">[ subject ]</a><a href="author.html#147">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0148.html">David Mosberger-Tang: "Re: sane compile probs with gtk"</a>
<li> <b>Previous message:</b> <a href="0146.html">Christophe Zwecker: "sane compile probs with gtk"</a>
<li> <b>In reply to:</b> <a href="0103.html">Guido Muesch: "SANE 0.6 configure"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0149.html">David Mosberger-Tang: "Re: strange library problems solved"</a>
<li> <b>Reply:</b> <a href="0149.html">David Mosberger-Tang: "Re: strange library problems solved"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
I once wrote about some strange library problems:<br>
<i>&gt; Hi</i><br>
<i>&gt; </i><br>
<i>&gt; On one of my systems, I have the problem that not all libraries are</i><br>
<i>&gt; detected. (I once told David). It might be a problem with my system,</i><br>
<i>&gt; but I need a hint how I can debug this further.</i><br>
<i>&gt; </i><br>
<i>&gt; configure gives me for the library section:</i><br>
<i>&gt; creating libtool</i><br>
<i>&gt; checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include</i><br>
<i>&gt; checking for sqrt in -lm... yes</i><br>
<i>&gt; checking for gettext in -lintl... yes</i><br>
<i>&gt; checking for gethostbyaddr in -lnsl... no</i><br>
<i>&gt; checking for socket in -lsocket... no</i><br>
<i>&gt; checking for main in -lXext... no</i><br>
<i>&gt; checking for main in -lX11... yes</i><br>
<i>&gt; checking for main in -lXpm... yes</i><br>
<i>&gt; checking for main in -lglib... yes</i><br>
<i>&gt; checking for main in -lgdk... no</i><br>
<i>&gt; checking for gtk_check_button_new in -lgtk... no</i><br>
<i>&gt; checking for libgimp/gimp.h... no</i><br>
<i>&gt; checking for dlfcn.h... yes</i><br>
<i>&gt; checking for dlopen in -ldl... yes</i><br>
<i>&gt; checking for dlopen... yes</i><br>
<i>&gt; </i><br>
<i>&gt; These 'missing' libs (Xext and gtk) are there and have no visible</i><br>
<i>&gt; differences in permissions and ownership.</i><br>
<i>&gt; </i><br>
<i>&gt; Any idea what to check next? What does configure actually do? Looking</i><br>
<i>&gt; into 'configure' is rather confusing since it was built automatically</i><br>
<i>&gt; and does not help (me) much.</i><br>
<i>&gt; </i><br>
<i>&gt; I suspect my versions of ld.so and maybe libc to cause this problem:</i><br>
<i>&gt; odiug@darkstar sane-0.6 $ rpm -q ld.so</i><br>
<i>&gt; ld.so-1.9.2-1</i><br>
<i>&gt; odiug@darkstar sane-0.6 $ rpm -q libc </i><br>
<i>&gt; libc-5.4.23-3</i><br>
<p>
The problem was really my version of libc. After digging deeper into<br>
configure I saw that linking conftest with libXext failed due to a lot<br>
of unresolved symbols which should have been in libc. I still do not<br>
know what exactly caused this to fail, but after installing the latest<br>
libc (5.4.30) configure works well again.<br>
<p>
Maybe this information is helpful when somebody runs into the same<br>
problem. <br>
<p>
btw: I once said that setting LD_LIBRARY_PATH to /usr/local/lib is<br>
required. It seems that with sane-0.6 this is no longer needed.<br>
sane-0.6 works as expected.<br>
<p>
One thing to mention is that I had a (small) problem with version<br>
numbers of gtk and/or sane to change from 3 numbers to 2 (or vice<br>
versa). One style (2 or 3) got prefered by ldconfig and was always used<br>
to set up the links. So if somebody wonders why an old version of a<br>
library is used this could be the cause.<br>
<p>
Hope I haven't bored you too much.<br>
Ciao<br>
Guido<br>
<p>
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.azstarnet.com/~axplinux/sane/">http://www.azstarnet.com/~axplinux/sane/</a>
To unsubscribe: mail -s unsubscribe <a href="mailto:sane-devel-request@listserv.azstarnet.com">sane-devel-request@listserv.azstarnet.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0148.html">David Mosberger-Tang: "Re: sane compile probs with gtk"</a>
<li> <b>Previous message:</b> <a href="0146.html">Christophe Zwecker: "sane compile probs with gtk"</a>
<li> <b>In reply to:</b> <a href="0103.html">Guido Muesch: "SANE 0.6 configure"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0149.html">David Mosberger-Tang: "Re: strange library problems solved"</a>
<li> <b>Reply:</b> <a href="0149.html">David Mosberger-Tang: "Re: strange library problems solved"</a>
<!-- reply="end" -->
</ul>