Gentoo Archives: gentoo-hardened

From: petre daniel <dani@×××××.ro>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] error compiling hardened kernel..
Date: Sat, 16 Oct 2004 15:43:07
Message-Id: 20041016184248.7b0c11d9@blue.spark.ro
1 whats this?
2
3 ibm linux # make bzImage
4 gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-hardened-r3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
5 In file included from /usr/src/linux-2.4.27-hardened-r3/include/linux/unistd.h:9,
6 from init/main.c:17:
7 /usr/src/linux-2.4.27-hardened-r3/include/asm/unistd.h:375: warning: conflicting types for built-in function '_exit'
8 . scripts/mkversion > .tmpversion
9 dnsdomainname: Unknown host
10 gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-hardened-r3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c
11 gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-hardened-r3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=do_mounts -c -o init/do_mounts.o init/do_mounts.c
12 In file included from /usr/src/linux-2.4.27-hardened-r3/include/linux/unistd.h:9,
13 from init/do_mounts.c:5:
14 /usr/src/linux-2.4.27-hardened-r3/include/asm/unistd.h:375: warning: conflicting
15 types for built-in function '_exit'
16 make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.27-hardened-r3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 " -C kernel
17 make[1]: Entering directory `/usr/src/linux-2.4.27-hardened-r3/kernel'
18 make all_targets
19 make[2]: Entering directory `/usr/src/linux-2.4.27-hardened-r3/kernel'
20 gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-hardened-r3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=sched -fno-omit-frame-pointer -c -o sched.o sched.c
21 sched.c:219: error: conflicting types for 'reschedule_idle'
22 sched.c:216: error: previous declaration of 'reschedule_idle' was here
23 sched.c:219: error: conflicting types for 'reschedule_idle'
24 sched.c:216: error: previous declaration of 'reschedule_idle' was here
25 sched.c:377: error: conflicting types for 'wake_up_process'
26 /usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:662: error: previous declaration of 'wake_up_process' was here
27 sched.c:377: error: conflicting types for 'wake_up_process'
28 /usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:662: error: previous declaration of 'wake_up_process' was here
29 sched.c:415: error: conflicting types for 'schedule_timeout'
30 /usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:151: error: previous declaration of 'schedule_timeout' was here
31 sched.c:415: error: conflicting types for 'schedule_timeout'
32 /usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:151: error: previous declaration of 'schedule_timeout' was here
33 sched.c:745: error: conflicting types for '__wake_up'
34 /usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:654: error: previous declaration of '__wake_up' was here
35 sched.c:745: error: conflicting types for '__wake_up'
36 /usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:654: error: previous declaration of '__wake_up' was here
37 sched.c:755: error: conflicting types for '__wake_up_sync'
38 /usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:655: error: previous declaration of '__wake_up_sync' was here
39 sched.c:755: error: conflicting types for '__wake_up_sync'
40 /usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:655: error: previous declaration of '__wake_up_sync' was here
41 sched.c:765: error: conflicting types for 'complete'
42 /usr/src/linux-2.4.27-hardened-r3/include/linux/completion.h:31: error: previous
43 declaration of 'complete' was here
44 sched.c:765: error: conflicting types for 'complete'
45 /usr/src/linux-2.4.27-hardened-r3/include/linux/completion.h:31: error: previous declaration of 'complete' was here
46 sched.c:775: error: conflicting types for 'wait_for_completion'
47 /usr/src/linux-2.4.27-hardened-r3/include/linux/completion.h:30: error: previous declaration of 'wait_for_completion' was here
48 sched.c:775: error: conflicting types for 'wait_for_completion'
49 /usr/src/linux-2.4.27-hardened-r3/include/linux/completion.h:30: error: previous declaration of 'wait_for_completion' was here
50 sched.c:810: error: conflicting types for 'interruptible_sleep_on'
51 /usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:659: error: previous declaration of 'interruptible_sleep_on' was here
52 sched.c:810: error: conflicting types for 'interruptible_sleep_on'
53 /usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:659: error: previous declaration of 'interruptible_sleep_on' was here
54 sched.c:821: error: conflicting types for 'interruptible_sleep_on_timeout'
55 /usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:660: error: previous declaration of 'interruptible_sleep_on_timeout' was here
56 sched.c:821: error: conflicting types for 'interruptible_sleep_on_timeout'
57 /usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:660: error: previous declaration of 'interruptible_sleep_on_timeout' was here
58 sched.c:834: error: conflicting types for 'sleep_on'
59 /usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:656: error: previous declaration of 'sleep_on' was here
60 sched.c:834: error: conflicting types for 'sleep_on'
61 /usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:656: error: previous declaration of 'sleep_on' was here
62 sched.c:845: error: conflicting types for 'sleep_on_timeout'
63 /usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:657: error: previous declaration of 'sleep_on_timeout' was here
64 sched.c:845: error: conflicting types for 'sleep_on_timeout'
65 /usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:657: error: previous declaration of 'sleep_on_timeout' was here
66 sched.c:216: warning: 'reschedule_idle' declared `static' but never defined
67 make[2]: *** [sched.o] Error 1
68 make[2]: Leaving directory `/usr/src/linux-2.4.27-hardened-r3/kernel'
69 make[1]: *** [first_rule] Error 2
70 make[1]: Leaving directory `/usr/src/linux-2.4.27-hardened-r3/kernel'
71 make: *** [_dir_kernel] Error 2
72 ibm linux #
73
74
75 --
76 petre daniel,system administrator,
77 romania data systems, pitesti branch
78 mobile 740.10.2196,phone 248.219917
79
80 --
81 gentoo-hardened@g.o mailing list