On Fri, 06 Apr 2001, John Carlson wrote:
> Hi,
>
> I cvsupped today to -CURRENT, thinking to upgrade my -STABLE installation
> (4.3-BETA). I followed the instructions in the UPDATING file, but ran into
> a persistent problem when trying to compile the kernel after a successful
> buildworld. The kernel compilation dies while making the modules at this
> point:
>
> cc -O -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs
> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
> -Wcast-qual -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I.
> -I@ -I@/dev -I@/../include -mpreferred-stack-boundary=2 -c linux_sysent.c
> linux_sysent.c:21: sizeof applied to an incomplete type
> linux_sysent.c:21: warning: built-in function `exit' used without
> declaration
> linux_sysent.c:21: warning: cast discards qualifiers from pointer target
> type
> *** Error code 1
>
> Anyone else noticed this problem or is it just me doing something wrong?
> Any help would be appreciated.
>
Hmm... I also noticed this problem, after following the UPDATING
instructions to get from 4.3-RC -> 5.0-CURRENT...
I managed to get the kernel to build successfully by hacking at the
linux_sysent.c file...
For some reason, the sys_exit line in linux_sysent.c in /usr/src gets
changed to something which breaks when it gets copied into /usr/obj...
(IIRC, I don't have both copies of the file available any more)
{ AS(sys_exit_args), (sy_call_t *)sys_exit }, /* 1 = exit */
was changed to something like
{ AS(rexit), (sy_call_t *)exit }, /* 1 = exit */
^^^^^ ^^^^
The 'underlined' (^^^) bits are definately right, I'm not sure about the
cast...
Any one have any ideas what would cause that?
(presumably linux_sysent.c is getting regenerated, incorrectly, somewhere?)
--
David Taylor
[EMAIL PROTECTED]
PGP signature