[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Yet another kernel compilation question



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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []