Re: glibc 2.2 vs 2.3 issue back again



[to John]

Glibc considers the PT_INTERP, /lib/ld-linux.so.2, to be an integral part
of glibc.  There are mutual dependencies between ld-linux and glibc.

I wonder whether that is taken care of by my changing /lib/ld-linux.so.2 to /lib2/ldlinux.so.2 everywhere, including the libraries, where the latter path is where I put the loader from Fedora (which is glibc-2.3).


However, you can play by the complete rules, switching the _entire_
glibc package, including ld-linux, for one execve() [command-line process]:
	http://BitWagon.com/rtldi/rtldi.html

I think I will give this a try - if I see it correctly it basically saves me the LD_LIBRARY_PATH. From what is written at the URL above, it could be that I should copy more libraries from Fedora (even though 'ldd' does not report them).


One question - do I need to change the /lib/ld-linux.so.2 strings in the libraries too, or only in the executables?



[to Roger]

Why can't you just upgrade glibc (or your distribution)?

Just three reasons (variations on same theme essentially - stability :)

i) upgrading changes/breaks existing things - it takes weeks to reach identical functionality and one often finds in critical moments that something still does not work or is missing and needs immediate install/fixing/workaround. This way there are no surprises - only a single package, Mathematica, does not work, which has moderate priority.

ii) chroot or another linux install could work in principle were it not a notebook where diskspace is limited and there is no free partition

iii) I had bad experience with linux 2.6 + software suspend - it wiped out my root partition the last time I tried (luckily on some other machine)


Denes



.



Relevant Pages

  • Re: Linked lib problem?
    ... > The error tells you the loader could not find a symbol in the ld-linux ... > libraries loaded by the program. ... > The program you are running was compiled with version 2.0 of glibc. ...
    (alt.os.linux.suse)
  • Re: static linking broken
    ... a program that is part of a package may validly assume that libraries ... Fortunately not too many apps need the static linking. ...
    (comp.os.linux.development.apps)
  • Re: FAQ?, dynamic-link.h problem
    ... > Aborted' when using the jazz MIDI editing program. ... That means you are trying to run a statically linked program, ... The program has been linked against a buggy glibc (that did not expect ... (something that non-development libraries shouldn't have). ...
    (Fedora)
  • Using 2 glibc libraries at the same time
    ... I'm trying to run an application using a glibc ... libraries and RTL are located at /lib/2.2.4. ... Before the fork, ...
    (comp.os.linux.misc)
  • Re: static linking broken
    ... Here is the complete list for glibc 2.3.3 (well it's a compile list ... getgrnam getgrnam_r getgrouplist gethostbyaddr gethostbyname ... My experimentation shows that the library loading code is ... No shared libraries loaded at this time. ...
    (comp.os.linux.development.apps)