The problem with some (beta) versions of redhat is that they have
the /usr/include/linux and /usr/include/asm as directories instead of
symbolic links.
do the following and try to recompile:
mv /usr/include/linux /usr/include/linux.rh
mv /usr/include/asm /usr/include/asm.rh
ln -s /usr/src/linux/include/linux /usr/include/linux
ln -s /usr/src/linux/include/asm /usr/include/asm
ln -s linux-2.4.2 /usr/src/linux
Hope it helps
Erez
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Aharon
Schkolnik
Sent: Tue, April 17, 2001 7:57 AM
To: Israeli Linux users list
Subject: Failed To Compile Kernel 2.4.2
Hi.
I just installed the kernel 2.4.2 source rpm -
kernel-source-2.4.2-0.1.49.
I then went through make xconfig and make dep with no problems.
I then did make bzImage. Here's the log:
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o
scripts/split-include scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
gcc -D__KERNEL__ -I/usr/src/linux-2.4.2/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe
-mpreferred-stack-boundary=2 -march=i686 -c -o init/main.o init/main.c
In file included from /usr/src/linux-2.4.2/include/linux/rhconfig.h:13,
from /usr/src/linux-2.4.2/include/linux/version.h:1,
from
/usr/src/linux-2.4.2/include/linux/raid/md_compatible.h:16,
from /usr/src/linux-2.4.2/include/linux/raid/md.h:40,
from init/main.c:24:
/boot/kernel.h:1:1: unterminated #if
make: *** [init/main.o] Error 1
/boot/kernel.h contains exactly one line:
#if 0
Anyone know what went wrong ?
What's the best way to continue ?
TIA.
--
The day is short, and the work is great, | Aharon Schkolnik
and the laborers are lazy, and the reward | Israel Health Ministry
is great, and the Master of the house is | [EMAIL PROTECTED]
impatient. - Ethics Of The Fathers Ch. 2 | +972 2 670 6954/5
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]