Skip site navigation (1)Skip section navigation (2)
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

--6TrnltStXW4iwmi0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, 06 Apr 2001, John Carlson wrote:
> Hi,=20
>=20
> I cvsupped today to -CURRENT, thinking to upgrade my -STABLE installation
> (4.3-BETA). I followed the instructions in the UPDATING file, but ran int=
o=20
> a persistent problem when trying to compile the kernel after a successful
> buildworld. The kernel compilation dies while making the modules at this
> point:=20
>=20
> 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=3D2 -c linux_sysen=
t.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
>=20
> Anyone else noticed this problem or is it just me doing something wrong?
> Any help would be appreciated.
>=20


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 =3D exit */         =
=20

was changed to something like
	{ AS(rexit), (sy_call_t *)exit },	/* 1 =3D 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?)

--=20
David Taylor
davidt@yadt.co.uk

--6TrnltStXW4iwmi0
Content-Type: application/pgp-signature
Content-Disposition: inline

-----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-----

--6TrnltStXW4iwmi0--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010408121958.A18489>