[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Failed To Compile Kernel 2.4.2
- To: "'Aharon Schkolnik'" <aharon(at-nospam)health.gov.il>
- Subject: RE: Failed To Compile Kernel 2.4.2
- From: Erez Strauss <erezs(at-nospam)voltaire.com>
- Date: Tue, 17 Apr 2001 14:36:59 +0200
- Cc: "'linux-il(at-nospam)linux.org.il'" <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
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: aharon@netstats.matat.health.gov.il
[mailto:aharon@netstats.matat.health.gov.il]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 | Aharon@health.gov.il
impatient. - Ethics Of The Fathers Ch. 2 | +972 2 670 6954/5
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il