Date: Sun, 8 Apr 2001 12:19:58 +0100 From: David Taylor <davidt@yadt.co.uk> To: freebsd-current@freebsd.org Subject: Re: problem building linux kernel module in current Message-ID: <20010408121958.A18489@gattaca.yadt.co.uk> In-Reply-To: <Pine.OSF.4.10.10104061746490.22711-100000@kosh.hut.fi>; from jcarlson@cc.hut.fi on Fri, Apr 06, 2001 at 17:56:55 %2B0300 References: <Pine.OSF.4.10.10104061746490.22711-100000@kosh.hut.fi>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
davidt@yadt.co.uk
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE60ElefIqKXSsJ/xERAitkAJ4xdTRUXQLZSWxFfqH5IcA0BMD5wgCeJzoY
sP8B4zlPGuEgWm6l9Ut+VA4=
=5NxG
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010408121958.A18489>
