Re: Compile problems with 2.5.7
Bob Miller (rem@osdl.org)
Sat, 23 Mar 2002 08:22:07 -0800
On Sat, Mar 23, 2002 at 12:57:29PM +0100, Grega Fajdiga wrote:
> Good day,
>
> I get a compile error when trying to compile above mentioned kernel version.
> The message is:
>
> acct.c:237: parse error before "do"
> acct.c:380: parse error before "do"
> acct.c:386: parse error before '&' token
> acct.c:388: warning: type defaults to `int' in declaration of `do_acct_process'
> acct.c:388: warning: parameter names (without types) in function declaration
> acct.c:388: conflicting types for `do_acct_process'
> acct.c:299: previous declaration of `do_acct_process'
> acct.c:388: warning: data definition has no type or storage class
> acct.c:389: warning: type defaults to `int' in declaration of `fput'
> acct.c:389: warning: parameter names (without types) in function declaration
> acct.c:389: conflicting types for `fput'
> /usr/src/linux-2.5.5/include/linux/file.h:36: previous declaration of `fput'
> acct.c:389: warning: data definition has no type or storage class
> acct.c:390: parse error before '}' token
> make[2]: *** [acct.o] Error 1
> make[1]: *** [first_rule] Error 2
> make: *** [_dir_kernel] Error 2
>
> My config-file contents are as follows:
>
>
> #
> # Automatically generated by make menuconfig: don't edit
> #
> CONFIG_X86=y
> CONFIG_ISA=y
> # CONFIG_SBUS is not set
> CONFIG_UID16=y
>
> #
> CONFIG_NET=y
> CONFIG_SYSVIPC=y
> # CONFIG_BSD_PROCESS_ACCT is not set
> CONFIG_SYSCTL=y
>
>
Grega,
Things are a little funny. You have CONFIG_BSD_PROCESS_ACCT not set
but the compile errors you're getting are for code in acct.c that
will only compile if CONFIG_BSD_PROCESS_ACCT is SET. I suspect that
something is not right with your view.
1. Patch to acct.c didn't work correctly (did you get 2.5.7 by patching
or a clean tar?).
2. need to do a make mrproper/config/dep/clean/etc...
Could you double check things and let me know.
--
Bob Miller Email: rem@osdl.org
Open Source Development Lab Phone: 503.626.2455 Ext. 17
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/