[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: error in shared library




On Sat, 13 Dec 1997, Leiming Qian wrote:

> Dear Mike Dickson: you told me that..
> > I have tried several programs, including gimp from the rpm and AfterStep
> > compiled by me, and I'm getting the following:
> > error in loading shared library:
> > /usr/X11R6/lib/libXext.so.6: undefined symbol: _Xglobal_lock
> > What is this?

what's wrong with this is :

it's linking to the libraries in /usr/X11R6/lib intead of the older
versions in /usr/i486-linux-libc5/lib (I think. I've noticed that
re-linking to the other directory seems to fix this problem) . If you try
doing this : export LD_LIBRARY_PATH=/usr/i486-linux-libc5/lib
before you run it,
, it should work (quick hack...) . Also, I have /etc/ld.so.conf set up
like this:

/usr/i486-linuxaout/lib
/usr/i486-linux-libc/lib
/usr/X11R6/lib

I found that setting it up like this and running ldconfig, I didn't have
any problems with breakages.
 
> General warning, don't install any programs that might corrupt ("corrupt"
> might not be the correct word") the RedHat installation, since most of the
> libraries are now compiled against glibc instead of libc. What I did was
> trying to install the latest GTK (which is needed by control-panel) and GIMP
> from the RPM. The new GIMP runs well, but control-panel stopped working,
> saying it can't find libc.so.5. So just be careful when you do things like
> that.
> 

If it says it can't find libc.so.5, it might be worth running ldd on it to
see what it does. Also, make sure you have the ld.so patch from
redhat. 

Actually, a better option is to install such extras in
/usr/local , where they won't interfere with anything in the RH
distribution (which puts everything under /usr). I have gimp 0.99.15 on my
system under /usr/local, as well as gtk. I also kept the gtk rpm from RH
5 (under /usr). everything works fine.  



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]