* Yet another kernel compilation question
@ 1998-03-05 13:28 Stefan Boresch
1998-03-05 13:42 ` warp
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Boresch @ 1998-03-05 13:28 UTC (permalink / raw)
To: axp-list
I have the following question regarding the compilation of kernels
under Redhat 5.0. I guess this is an FAQ, but I am slightly confused.
In front of me are some old postings to the newsgroup, one pertaining
to compiling a kernel under 4.2 from Harvey Stein, and a newer posting
from Hugo van der Kooij. The older document suggest clearly that one
should always keep the original Redhat headers (Jay Estabrook also
doesn't get tired of mentioning this), i.e. keep the RH kernel headers
(plus, possibly, sources) in /usr/src, and build a stock kernel plus
appropriate patches somewhere else, e.g. /usr/local/src. It appears
that the reason for this is to make things compatible with glibc 1.9?
that came with 4.2. Reading through Hugo van der Kooij's document, this
is exactly not what he is doing for RH 5.0; in fact, "If you link
/usr/src/linux to the old kernel, you will get an awful lot of
problems..."
Well, I think I did things carefully and made sure not to overwrite
any of the RH 5.0 2.0.30 kernel stuff. Got 2.0.33 plus latest alpha-
patches (also threw in the latest Adaptec 2940 driver); compiled it
(in /usr/src/linux-2.0.33). Then I made the link /usr/src/linux point
to the new kernel sources etc; however /usr/include/linux and
/usr/include/asm point to the old (RH 5.0) include files. If I don't
do this, then, e.g., egcs doesn't compile because of these RLIMIT
errors etc. (always provided that I don't die with a signal 11, but
this will hopefully be solved by an additional fan soon...)
So, my questions are as follows: Is my setup reasonable (/usr/src/linux
points to the latest kernel sources incl. headers; /usr/include/{linux,asm}
to the RH provided source + headers)? Why is it still necessary --
we are having glibc 2.0.x now? Does the RLIMIT patch Hugo mentions
avoid the need for this setup (If yes, and if it's advisable, where
do I find it?) I should add that I most likely won't use g++, but
that I need the g77 part of egcs.
Thanks for your patience and helpful explanations, including pointers
to where to read for myself (I believe to have read the Alpha/Linux
homepage carefully, where I also found the hint for the links in
/usr/include...)
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Yet another kernel compilation question
1998-03-05 13:28 Yet another kernel compilation question Stefan Boresch
@ 1998-03-05 13:42 ` warp
0 siblings, 0 replies; 4+ messages in thread
From: warp @ 1998-03-05 13:42 UTC (permalink / raw)
To: stefan; +Cc: axp-list
Stefan Boresch wrote:
> I have the following question regarding the compilation of kernels
> under Redhat 5.0. I guess this is an FAQ, but I am slightly confused.
[...]
I can tell you my experiences, these work for me (RH-4.2 & 5.0).
When building a new kernel, make sure /usr/src/linux points
to linux-2.0.33, or whatever you called this dir.
(This is the directory where you've untarred the prestine
kernel sources + alpha-patches).
When building applications, make sure /usr/src/linux points
to linux-redhat (i.e. the RedHat distribution sources).
When linking /usr/src/linux to linux-2.0.33 (i.e. the prestine
kernel sources), all curses based apps (like BitchX) and many
others normal ones (like nxterm) miserably fail to compile...
Kind regards,
Antoine
website..: http://www.alpha.kimitsu.com - Alpha/Linux Mirror
email....: warp@warped.xs4all.nl & warp@alpha.kimitsu.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Yet another kernel compilation question
@ 1998-03-05 14:27 Jochen Küpper
1998-03-05 14:44 ` Stefan Boresch
0 siblings, 1 reply; 4+ messages in thread
From: Jochen Küpper @ 1998-03-05 14:27 UTC (permalink / raw)
To: warp, warp@alpha.kimitsu.com; +Cc: axp-list
Am Thu, 05 Mar 1998 schrieb warp@alpha.kimitsu.com:
>Stefan Boresch wrote:
>
>> I have the following question regarding the compilation of kernels
>> under Redhat 5.0. I guess this is an FAQ, but I am slightly confused.
>
>[...]
>When building a new kernel, make sure /usr/src/linux points
>to linux-2.0.33, or whatever you called this dir.
>(This is the directory where you've untarred the prestine
> kernel sources + alpha-patches).
>
>When building applications, make sure /usr/src/linux points
>to linux-redhat (i.e. the RedHat distribution sources).
>
>When linking /usr/src/linux to linux-2.0.33 (i.e. the prestine
>kernel sources), all curses based apps (like BitchX) and many
>others normal ones (like nxterm) miserably fail to compile...
I just link /usr/src/linux to whatever directory the real (used)kernel is in.
Then there are links in /usr/include into that directory.
So for any compilation I am using the actual headers.
This is with RH-5.0, glibc-2.0.6, gcc-2.7.2.3/gcc-2.8.1/egcs-current on an
Alpha,Station 500 - it's working with all.
Jochen
--
-----------------------------------------------------------------------
Jochen K"upper
Heinrich-Heine-Universit"at D"usseldorf jochen@uni-duesseldorf.de
Institut f"ur Physikalische Chemie I
Universit"atsstr. 1, Geb 26.43 Raum 02.29 phone ++49-211-8113681
40225 D"usseldorf fax ++49-211-8115195
Germany http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------
\0\0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Yet another kernel compilation question
1998-03-05 14:27 Jochen Küpper
@ 1998-03-05 14:44 ` Stefan Boresch
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Boresch @ 1998-03-05 14:44 UTC (permalink / raw)
To: axp-list
> I just link /usr/src/linux to whatever directory the real (used)kernel is=
> in.
> Then there are links in /usr/include into that directory.
> So for any compilation I am using the actual headers.
>
> This is with RH-5.0, glibc-2.0.6, gcc-2.7.2.3/gcc-2.8.1/egcs-current on a=
> n
> Alpha,Station 500 - it's working with all.
Yeah, I would have thought so, but for egcs-1.0.1 this didn't
work -- having the headers point to the RH5.0 2.0.30 kernel headers
solved that problem. What patches did you apply to pristine
2.0.33 sources ?
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-03-05 14:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-05 13:28 Yet another kernel compilation question Stefan Boresch
1998-03-05 13:42 ` warp
-- strict thread matches above, loose matches on Subject: below --
1998-03-05 14:27 Jochen Küpper
1998-03-05 14:44 ` Stefan Boresch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox