From owner-freebsd-current Sun Apr 8 4:20:12 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.yadt.co.uk (yadt.demon.co.uk [158.152.4.134]) by hub.freebsd.org (Postfix) with SMTP id 6E89237B423 for ; Sun, 8 Apr 2001 04:20:00 -0700 (PDT) (envelope-from davidt@yadt.co.uk) Received: (qmail 19517 invoked from network); 8 Apr 2001 11:19:59 -0000 Received: from gattaca.local.yadt.co.uk (HELO mail.gattaca.yadt.co.uk) (qmailr@10.0.0.2) by xfiles.yadt.co.uk with SMTP; 8 Apr 2001 11:19:59 -0000 Received: (qmail 18794 invoked by uid 1000); 8 Apr 2001 11:19:58 -0000 Date: Sun, 8 Apr 2001 12:19:58 +0100 From: David Taylor To: freebsd-current@freebsd.org Subject: Re: problem building linux kernel module in current Message-ID: <20010408121958.A18489@gattaca.yadt.co.uk> Mail-Followup-To: freebsd-current@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jcarlson@cc.hut.fi on Fri, Apr 06, 2001 at 17:56:55 +0300 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --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