This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: A problem with `make elf/ldso_install'
On Mon, Sep 04, 2000 at 10:58:37PM -0400, Cristian Gafton wrote:
> On Mon, 4 Sep 2000, Maciej W. Rozycki wrote:
>
> > I believe the following change is responsible for the new behaviour.
> > What was it expected to achieve?
> >
> > 2000-03-17 Cristian Gafton <gafton@redhat.com>
> >
> > * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
> > existing rtld-installed-name.
> > ($(rtld-installed-name)): Request libc-$(version) be installed too.
> > replace existing rtld-installed-name using $(symbolic-link-prog).
>
> This patch was meant as a very incomplete hack to make "make install" for
> glibc work by avoiding to run a combination like old-libc.so.6 with new
> ld.so. The patch would force the copy of the new libc.so.6 immediately
> before ld.so will get installed.
>
> Apparently I was the only developer that found it usefull to be able to do
> a make install on glibc in the real filesystem directly, so the patch got
> reverted at some time.
>
I can understand what you are trying to do. But I don't think it is
the right way. I have
# ls -l /lib
drwxr-xr-x 2 root root 4096 Aug 29 09:58 glibc-2.1.92-20000829
drwxr-xr-x 2 root root 4096 Aug 31 11:04 glibc-2.1.92-20000831
drwxr-xr-x 2 root root 4096 Aug 29 09:59 glibc-2.1.92-7
....
# ln -s /lib
....
lrwxrwxrwx 1 root root 34 Aug 31 11:08 ld-2.1.92.so -> glibc-2.1.92-20000831/ld-2.1.92.so
lrwxrwxrwx 1 root root 35 Aug 31 11:08 ld-linux.so.2 -> glibc-2
....
lrwxrwxrwx 1 root root 36 Aug 31 11:08 libc-2.1.92.so -> glibc-2.1.92-20000831/libc-2.1.92.so
lrwxrwxrwx 1 root root 31 Aug 31 11:08 libc.so.6 -> glibc-2.1.9
...
I can switch to different versions of glibc by doing
# cd /lib
# ln -sf glibc-2.1.92-7/* .
It will be nice to support "make install" into /. It only works with
different versions of glibc right now. It doesn't work with different
releases of the same version of glibc if there are some changes which
require libc.so and ld.so to be updated as the same time.
H.J.