strange library problems solved
Guido Muesch (firstname.lastname@example.org)
Wed, 25 Jun 1997 00:31:32 +0200 (MET DST)
I once wrote about some strange library problems:
> On one of my systems, I have the problem that not all libraries are
> detected. (I once told David). It might be a problem with my system,
> but I need a hint how I can debug this further.
> configure gives me for the library section:
> creating libtool
> checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
> checking for sqrt in -lm... yes
> checking for gettext in -lintl... yes
> checking for gethostbyaddr in -lnsl... no
> checking for socket in -lsocket... no
> checking for main in -lXext... no
> checking for main in -lX11... yes
> checking for main in -lXpm... yes
> checking for main in -lglib... yes
> checking for main in -lgdk... no
> checking for gtk_check_button_new in -lgtk... no
> checking for libgimp/gimp.h... no
> checking for dlfcn.h... yes
> checking for dlopen in -ldl... yes
> checking for dlopen... yes
> These 'missing' libs (Xext and gtk) are there and have no visible
> differences in permissions and ownership.
> Any idea what to check next? What does configure actually do? Looking
> into 'configure' is rather confusing since it was built automatically
> and does not help (me) much.
> I suspect my versions of ld.so and maybe libc to cause this problem:
> odiug@darkstar sane-0.6 $ rpm -q ld.so
> odiug@darkstar sane-0.6 $ rpm -q libc
The problem was really my version of libc. After digging deeper into
configure I saw that linking conftest with libXext failed due to a lot
of unresolved symbols which should have been in libc. I still do not
know what exactly caused this to fail, but after installing the latest
libc (5.4.30) configure works well again.
Maybe this information is helpful when somebody runs into the same
btw: I once said that setting LD_LIBRARY_PATH to /usr/local/lib is
required. It seems that with sane-0.6 this is no longer needed.
sane-0.6 works as expected.
One thing to mention is that I had a (small) problem with version
numbers of gtk and/or sane to change from 3 numbers to 2 (or vice
versa). One style (2 or 3) got prefered by ldconfig and was always used
to set up the links. So if somebody wonders why an old version of a
library is used this could be the cause.
Hope I haven't bored you too much.
Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/
To unsubscribe: mail -s unsubscribe email@example.com