[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [mdk-admin] rpm upgrade (fwd)
- To: Tzafrir Cohen <tzafrir(at-nospam)technion.ac.il>
- Subject: Re: [mdk-admin] rpm upgrade (fwd)
- From: guy keren <choo(at-nospam)actcom.co.il>
- Date: Wed, 24 Oct 2001 09:49:17 +0200 (EET)
- cc: Linux-IL Mailing List <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <Pine.LNX.4.33L2.0110230030140.12232-100000@canada1.technion.ac.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
On Tue, 23 Oct 2001, Tzafrir Cohen wrote:
> > On Mon, 22 Oct 2001, Tzafrir Cohen wrote:
> >
> > > $ LD_LIBRARY_PATH=$HOME/tmp/lib:/lib rpm --rebuilddb
> > > /usr/lib/rpm/rpmd: /lib/ld-linux.so.2: version `GLIBC_2.2.3' not found (required by /home/tzafrir/tmp/lib/libc.so.6)
> > > /usr/lib/rpm/rpmd: /lib/ld-linux.so.2: version `GLIBC_2.2' not found (required by /home/tzafrir/tmp/lib/libc.so.6)
> >
> > well, '/lib/ld-linux.so.2' is a symlink to a library that comes as part of
> > glibc. check if you have a link with the same name in your temporary
> > directory. perhaps check 'LD_LIBRARY_PATH=$HOME/tmp/lib ldd /bin/rpm'
>
> Yes it is. It points to glibs2.1's ld.
then you must make it NOT point there :) how exactly? this is a good
question :) perhaps an strace could be helpfull:
LD_LIBRARY_PATH=$HOME/tmp/lib strace -o /tmp/rpm.strace /bin/rpm
and then look at /tmp/rpm.strace to see what files it opens.
> > note also that i completely removed /lib from the LD_LIBRARY_PATH, to make
> > sure it does not attempt to pick there, thought then you'll have to copy
> > other missing libraries to that library.
>
> I generally don't use LD_LIBRARY_PATH, only ld.so.cache. Note that I set
> the value of LD_LIBRARY_PATH to be only the new directory.
>
> How can I tell theprogram not to load ld.so.cache ?
'ld.so.cache' isn't necessarily your problem. the problem is the library
that reads this file. the above strace might show you how the dynamic
loading is exactly done, and might give a hint.
> Also note:
> $ file /bin/rpm
> /bin/rpm: ELF 32-bit LSB executable, Intel 80386, version 1, statically linked, stripped
>
> Is the standard loader procedure still used with a static binary?
not likely, thought i noticed in the past that even statically linked
binaries somehow manage to pull off some library, for some odd reason.
this all _is_ indeed, very odd..
--
guy
"For world domination - press 1,
or dial 0, and please hold, for the creator." -- nob o. dy
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il