From: Philip Blundell <pjb27@cam.ac.uk>
Subject: Re: again: compiling glibc/kernel
Date: Wed, 8 Jan 1997 15:36:52 +0000 (GMT) [thread overview]
Message-ID: <fbbe2761a7db199001d3ceeb4af482a1.axp-list@archive.invalid> (raw)
In-Reply-To: <32D2F0FF.43D02E13@ibm.net>
On Tue, 7 Jan 1997, Steven N. Hirsch wrote:
> > > while doing make, i get the following error when it is in the sunrpc
> > > directory.
> > > LD_LIBRARY_PATH=..:../elf:../nss ../elf/ld.so.1 ./rpcgen -c
> > > rpcsvc/bootparam.x -o xbootparam.cT
> > > ld.so.1: memory violation at pc=00004cf4 rp=000044d4 (bad address =
> > > 00000000)
> > > make: *** [xbootparam.c] Segmentation fault
> > >
>
> > Don't do this. If you _do_ manage to compile glibc like this, your system
> > will be unusable when you install it. Ld.so _must_ be working for you to
> > be able to execute any binaries.
>
> Interesting, seeing as how I've been running with the shared libraries
> that resulted from the build. Exactly _what_ is the command which fails
> trying to do? It's something like:
>
> $ LD_LIBRARY_PATH=<path_to_what_we_built> \
> <name of ld.so.1 we just built> \
> rpcgen args...
Yes. It's trying to run rpcgen, using the new ld.so and libc, without
having installed them in /lib first. If it doesn't work then either the
new ld.so or the new libc.so is broken, and things will go very wrong when
you install them.
> When the host system being used for the build already _has_ the gnu
> loader available in /lib, why do I need the one that's just been
> compiled?
Because not all versions of ld.so will work with all versions of libc.
You may get away with it some or all of the time, but you may not.
> I'm not saying that I have this figured out, but what IS going on with
> the command as originally written, and why might it be failing on an
> otherwise stable and correctly-installed system?
glibc 1.99 provokes a linker bug, and ld.so doesn't get built properly.
P.
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next parent reply other threads:[~1997-01-08 15:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <32D2F0FF.43D02E13@ibm.net>
1997-01-08 15:36 ` Philip Blundell [this message]
1997-01-08 0:57 again: compiling glibc/kernel Steven N. Hirsch
[not found] <32D1D2DA.2AE@plexstar.com>
1997-01-07 15:46 ` Daniel Gruner
1997-01-07 17:39 ` Philip Blundell
-- strict thread matches above, loose matches on Subject: below --
1997-01-07 4:36 Yash Khemani
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox