From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 22374 invoked from network); 5 Mar 1998 13:23:21 -0000 Received: from helix.mdy.univie.ac.at (131.130.40.7) by mail2.redhat.com with SMTP; 5 Mar 1998 13:23:21 -0000 Received: from alpha.mdy.univie.ac.at (alpha.mdy.univie.ac.at [131.130.40.3]) by helix.mdy.univie.ac.at (8.8.8/8.8.8) with ESMTP id OAA03608 for ; Thu, 5 Mar 1998 14:23:10 +0100 (MET) From: Stefan Boresch Received: (from stefan@localhost) by alpha.mdy.univie.ac.at (8.8.8/8.8.8) id OAA01771 for axp-list@redhat.com; Thu, 5 Mar 1998 14:28:07 +0100 (MEZ) Message-Id: <199803051328.OAA01771@alpha.mdy.univie.ac.at> Subject: Yet another kernel compilation question To: axp-list@redhat.com Date: Thu, 5 Mar 98 14:28:05 MEZ Reply-To: stefan@mdy.univie.ac.at Mailer: Elm [revision: 70.85] 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