ld-linux.so.2
Kostas Gewrgiou
gewrgiou at imbc.gr
Thu Jan 20 15:48:34 EET 2000
On Wed, 19 Jan 2000, Vasilis Vasaitis wrote:
> On Wed, Jan 19, 2000 at 12:36:09AM +0200, redarrow at x-treme.gr wrote:
> > Ksero oti h libc.so.6 gia na doulepsei thelei to /lib/ld-linux.so.2 (to
> > link toy telos panton).
> > Ego exo glibc-2.0. Esto tora oti vrisko ena programa poy exei ginei
> > linked sthn glibc-2.1.x kai oti exo to paketo pou periexei thn export
> > glibc-2.1.x kai ta aksesouar ths (kai to ld-linux.so.2 ths). Ta
> > aposympiezo loipon se ena directory kai dino
> > LD_LIBRARY_PATH=/path/to/directory. To apotelesma einai na mhn douleuei
> > tipota (fisiko) giati h libc thelei zhtaei apo to /lib/ld-linux.so.2
> > kati pou afto den exei, eno to exei to /path/to/directory/ld-linux.so.2
> > (pou alloste erxetai paketo mazi me thn 2.1.x). To erothma einai:
> > Yparxei kapoia variable poy na moy lynei to problhma?
> >
> > YG. den tha hthela na pirakso katholou ta yparxonta ld-linux.so.2 kai
> > libc.so.6
> >
> > Euxaristo
>
> Φοβάμαι πως αυτό που θέλεις να κάνεις δεν μπορεί να γίνει. Τα εκτελέσιμα
> έχουν αποθηκευμένη την πλήρη διαδρομή του dynamic linker, και δεν μπορείς να
> τους ορίσεις κάποιον άλλο. Η μόνη λύση είναι να αντικαταστήσεις τον
> /lib/ld-linux.so.2 με τον καινούριο, που πολύ πιθανόν να μην σου
> δημιουργήσει κανένα πρόβλημα (δες την σχετική τεκμηρίωση). Εναλλακτικά,
> κοίταξε μήπως μπορείς να κάνεις τη δουλειά σου με την chroot(8).
>
Boreis na exeis opion linker theleis (peripou), kapote to kaname sto linux/ppc
gia na trexoume to netscape pou eitan compile kato apo palia glibc. (logo
malakion tou parelthontos h glibc1.99 pou eixame tote den eitan simvati me tis
nees version (logiko mias kai beta) alla eixe ta idia major numbers (.6) stis
libs, opote (logika ksana) den borousame na exoume kai tis dio install)
Lipon gia na ksanagiriso sto thema kano copy paste apo mail arxaitaton xronon to
ti xreiazetai (to exec xxx/ld.so.1 xxxbinary kai h allagi tou LD_LIBRARY_PATH
einai ta simantika)
Kostas Gewrgiou
------------------------------------------------------------------------------
.....
With a ton of help from my housemate Mark (mhw at netris.org), I worked around
this problem by pointing netscape to use old libraries at runtime. Here're
the basic steps we took:
- pulled old shared libraries from the following redhat rpms in
ftp://ftp.linuxppc.org/linuxppc-R4/RedHat/RPMS:
X11R6.3-libs-01-1r.ppc.rpm
glibc-0.961212-1h.ppc.rpm
xpm-3.4j-1b.ppc.rpm
libg++-2.8.1.980306-1c.ppc.rpm
- dumped them into a newly-created directory, /usr/lib/netscape/base-4/old
- in this directory, edited ld.so.1 to change the library path string:
% perl -pe 's/LD_LIBRARY_PATH/LD_LIBRARY_PAT1/' ld.so.1 > ld.so.1.new
% mv ld.so.1 ld.so.1.OLD
% mv ld.so.1.new ld.so.1
- moved the netscape 4.08 binary (which i have installed in
/usr/local/bin) to netscape-exec
- created a wrapper script as /usr/local/bin/netscape; its contents:
#!/bin/sh
LIBDIR=/usr/lib/netscape/base-4/old
LD_LIBRARY_PAT1=${LIBDIR} exec ${LIBDIR}/ld.so.1 \
/usr/local/bin/netscape-exec "$@"
This works well enough (until I can get mozilla built, i guess)... hopefully
I haven't left any steps out. (I should also note that I'm running debian,
not redhat; I've crossposted to the debian-powerpc list in case it's useful
there, too.)
......
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/lgu.html
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================
More information about the Linux-greek-users
mailing list