Compile Error
Quoted 33 lines
Hi there,
make bzImage says:
make[1]: Entering directory `/usr/src/linux-2.5-dj/kernel'
makeall_targets
make[2]: Entering directory `/usr/src/linux-2.5-dj/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.5-dj/include -Wall -Wstrict-prototypes -Wno-
trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpref
erred-stack-boundary=2 -march=i686 -malign-functions=4 -DKBUILD_BASENAME=acct
-c -o acct.oacct.c
acct.c:235: parse error before `do'
acct.c:378: parse error before `do'
acct.c:384: parse error before `&'
acct.c:386: warning: type defaults toint' in declaration ofdo_acct_process' acct.c:386: warning: parameter names (without types) in function declaration acct.c:386: conflicting types for `do_acct_process'
acct.c:297: previous declaration of `do_acct_process'
acct.c:386: warning: data definition has no type or storage class acct.c:387: warning: type defaults toint' in declaration offput' acct.c:387: warning: parameter names (without types) in function declaration acct.c:387: conflicting types forfput' /usr/src/linux-2.5-dj/include/linux/file.h:36: previous declaration offput' acct.c:387: warning: data definition has no type or storage class acct.c:388: parse error before `}'
make[2]: *** [acct.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.5-dj/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5-dj/kernel'
make: *** [_dir_kernel] Error 2
Quoted 3 lines
just for information.
Sebastian
Try attached patch
Andrey
kernel/Makefile renamed from kernel/Makefile.orig +2 -2
@@ -14,13 +14,13 @@ obj-y = sched.o dma.o fork.o exec_domain.o panic.o printk.o \ module.o exit.o itimer.o info.o time.o softirq.o resource.o \ - sysctl.o acct.o capability.o ptrace.o timer.o user.o \ + sysctl.o capability.o ptrace.o timer.o user.o \ signal.o sys.o kmod.o context.o futex.o kthread.o obj-$(CONFIG_UID16) += uid16.o obj-$(CONFIG_MODULES) += ksyms.o obj-$(CONFIG_PM) += pm.o -obj-$(CONFIG_CONFIG_BSD_PROCESS_ACCT) += acct.o +obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o obj-$(CONFIG_IKCONFIG) += configs.o ifneq ($(CONFIG_IA64),y)
Quoted 1 line · Andrey Klochko
Try attached patch
Ok, 2.5.7-dj2 compiles cleanly with your patch, but only if CONFIG_BSD_PROCESS_ACCT is not set at .config .
Thank you!
Quoted 1 line
Andrey
Sebastian
BTW:
Lilo says that 2.5.7-dj2 is too big!
How that?
Boot sector 512 bytes.
Setup is 4772 bytes.
System is 1011 kB