* again: compiling glibc/kernel
@ 1997-01-07 4:36 Yash Khemani
0 siblings, 0 replies; 5+ messages in thread
From: Yash Khemani @ 1997-01-07 4:36 UTC (permalink / raw)
hi,
this is a recap of my current state in trying to compile
glibc 1.99/kernel 2.0.27 on my udb running rhl/axp v4.0.
i'm trying to compile kernel v2.0.27 (fetched from sunsite.unc.edu)
in order to make use of features not included in the kernel
accompanying the rhl/axp v4.0 distribution. as i understand the
issue, glibc is required for compiling the kernel. i fetched
glibc v1.99 along with glibc-crypt and glibc-linuxthreads from
ftp.redhat.com and placed the latter two in the glibc directory.
i then proceded to do a:
./configure --enable-add-ons=des-crypt,linuxthreads --disable sanity
checks
in the glibc src dir. i had to disable sanity checks even though it did
not
complain as it might if you exclude
"--enable-add-ons=des-crypt,linuxthreads"
i've tried it with and without...
btw, i checked to make sure that /usr/src/linux/include/asm points to
asm-alpha
in the same directory.
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
i get the same error if i do make in the sunrpc directory.
then, i changed the Makeconfig in the glibc main directory as per
instructions of shirsch@ibm.net:
> I have
> the same problem here. In frustration, I hacked Makeconfig so that it
> doesn't try to directly execute the loader. Try the patch attached.
see his Makeconfig.diff in previous axp-list mailing.
that gets past make trying to run ld.so.1. but now there are
problems running the rpcgen and rpcinfo just compiled in the
sunrpc directory. the file exists, and is chmod 755, but when
you run it, it says "Command not found."
make fails doing:
LD_LIBRARY_PATH=..:../elf:../nss ./rpcgen -c rpcsvc/bootparam.x -o
bootparam.xT
it says:
/bin/sh: ./rpcgen: No such file or directory
make: *** [xbootparam.c] Error 126
if i do a /usr/bin/rpcgen -c rpcsvc/bootparam.x -o bootparam.xT it
works.
so there seems to be a problem compiling rpcgen.
any help on how to resolve this would be sincerely appreciated!
thanks!
yash
--
+-------------------------------------------------------------------+
| Yash L. Khemani | E-Mail: khemani@plexstar.com |
| Plexstar, Inc., Reston, VA | WWW: http://www.plexstar.com |
+-------------------------------------------------------------------+
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: again: compiling glibc/kernel
[not found] <32D1D2DA.2AE@plexstar.com>
@ 1997-01-07 15:46 ` Daniel Gruner
1997-01-07 17:39 ` Philip Blundell
1 sibling, 0 replies; 5+ messages in thread
From: Daniel Gruner @ 1997-01-07 15:46 UTC (permalink / raw)
Yash wrote:
>
> this is a recap of my current state in trying to compile
> glibc 1.99/kernel 2.0.27 on my udb running rhl/axp v4.0.
>
> i'm trying to compile kernel v2.0.27 (fetched from sunsite.unc.edu)
> in order to make use of features not included in the kernel
> accompanying the rhl/axp v4.0 distribution. as i understand the
> issue, glibc is required for compiling the kernel. i fetched
> glibc v1.99 along with glibc-crypt and glibc-linuxthreads from
> ftp.redhat.com and placed the latter two in the glibc directory.
For what it's worth, I have compiled and am using kernel 2.0.27
on rhl/axp 4.0. You need the 2.0.27 sources, patched with
axp-diffs-2.0.21. After patching you must copy/move the files
that were not previously in the distribution but were created
by the patch program in the base directory, to their proper
location. Then you can do the usual make:
make mrproper
make dep
make clean
make
make boot
make modules
make modules_install
And I must say that this kernel has been working stably for several
days now. I have not remade glibc or anything, but I have installed
some of the recommended new rpm's from the errata list at Red Hat
http://www.redhat.com/support/docs/rhl/rh40-errata-general.html
Daniel
--
Dr. Daniel Gruner dgruner@tikva.chem.utoronto.ca
Dept. of Chemistry phone: (416)-978-8689
University of Toronto fax: (416)-978-5325
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: again: compiling glibc/kernel
[not found] <32D1D2DA.2AE@plexstar.com>
1997-01-07 15:46 ` Daniel Gruner
@ 1997-01-07 17:39 ` Philip Blundell
1 sibling, 0 replies; 5+ messages in thread
From: Philip Blundell @ 1997-01-07 17:39 UTC (permalink / raw)
On Mon, 6 Jan 1997, Yash Khemani 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
>
> i get the same error if i do make in the sunrpc directory.
>
> then, i changed the Makeconfig in the glibc main directory as per
> instructions of shirsch@ibm.net:
> > I have
> > the same problem here. In frustration, I hacked Makeconfig so that it
> > doesn't try to directly execute the loader. Try the patch attached.
>
> see his Makeconfig.diff in previous axp-list mailing.
>
> that gets past make trying to run ld.so.1. but now there are
> problems running the rpcgen and rpcinfo just compiled in the
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.
phil
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: again: compiling glibc/kernel
@ 1997-01-08 0:57 Steven N. Hirsch
0 siblings, 0 replies; 5+ messages in thread
From: Steven N. Hirsch @ 1997-01-08 0:57 UTC (permalink / raw)
Philip Blundell wrote:
>
> On Mon, 6 Jan 1997, Yash Khemani 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
> >
> > > I have
> > > the same problem here. In frustration, I hacked Makeconfig so that it
> > > doesn't try to directly execute the loader. Try the patch attached.
> >
> 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.
>
> phil
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...
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?
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?
Steve
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: again: compiling glibc/kernel
[not found] <32D2F0FF.43D02E13@ibm.net>
@ 1997-01-08 15:36 ` Philip Blundell
0 siblings, 0 replies; 5+ messages in thread
From: Philip Blundell @ 1997-01-08 15:36 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1997-01-08 15:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <32D2F0FF.43D02E13@ibm.net>
1997-01-08 15:36 ` again: compiling glibc/kernel Philip Blundell
1997-01-08 0:57 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox