Date: Wed, 06 Oct 2004 19:36:54 -0500 From: Ryan Sommers <ryans@gamersimpact.com> To: Mike Jakubik <mikej@rogers.com> Cc: davidxu@freebsd.org Subject: Re: build kernel failiure (kern_thr.c) Message-ID: <41648FA6.3030002@gamersimpact.com> In-Reply-To: <2353.192.168.0.188.1097108328.squirrel@192.168.0.188> References: <2353.192.168.0.188.1097108328.squirrel@192.168.0.188>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------080709060409040201010903
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Mike Jakubik wrote:
>cc -c -O -pipe -march=athlon -Wall -Wredundant-decls -Wnested-externs
>-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
>-Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I.
>-I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica
>-I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter
>-I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath
>-I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm
>-D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param
>inline-unit-growth=100 --param large-function-growth=1000
>-mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding
>-Werror /usr/src/sys/kern/kern_thr.c
>/usr/src/sys/kern/kern_thr.c: In function `thr_exit':
>/usr/src/sys/kern/kern_thr.c:196: error: structure has no member named
>`state'
>/usr/src/sys/kern/kern_thr.c:197: error: structure has no member named
>`state'
>*** Error code 1
>
>Stop in /usr/obj/usr/src/sys/DP.
>*** Error code 1
>
>
Apply the following patch (attached also) and then do:
cd /usr/src/sys/kern; make ../sys/sysproto.h
Index: /usr/src/sys/kern/syscalls.master
===================================================================
RCS file: /home/ncvs/src/sys/kern/syscalls.master,v
retrieving revision 1.176
diff -u -r1.176 syscalls.master
--- syscalls.master 13 Jul 2004 19:35:10 -0000 1.176
+++ syscalls.master 7 Oct 2004 00:31:23 -0000
@@ -614,7 +614,7 @@
acl_type_t type, struct acl *aclp); }
429 MSTD { int sigwait(const sigset_t *set, int *sig); }
430 MSTD { int thr_create(ucontext_t *ctx, long *id, int flags); }
-431 MSTD { void thr_exit(void); }
+431 MSTD { void thr_exit(long *state); }
432 MSTD { int thr_self(long *id); }
433 MSTD { int thr_kill(long id, int sig); }
434 MSTD { int _umtx_lock(struct umtx *umtx); }
--
Ryan Sommers
ryans@gamersimpact.com
--------------080709060409040201010903
Content-Type: text/plain;
name="syscalls.master.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="syscalls.master.diff"
Index: /usr/src/sys/kern/syscalls.master
===================================================================
RCS file: /home/ncvs/src/sys/kern/syscalls.master,v
retrieving revision 1.176
diff -u -r1.176 syscalls.master
--- syscalls.master 13 Jul 2004 19:35:10 -0000 1.176
+++ syscalls.master 7 Oct 2004 00:31:23 -0000
@@ -614,7 +614,7 @@
acl_type_t type, struct acl *aclp); }
429 MSTD { int sigwait(const sigset_t *set, int *sig); }
430 MSTD { int thr_create(ucontext_t *ctx, long *id, int flags); }
-431 MSTD { void thr_exit(void); }
+431 MSTD { void thr_exit(long *state); }
432 MSTD { int thr_self(long *id); }
433 MSTD { int thr_kill(long id, int sig); }
434 MSTD { int _umtx_lock(struct umtx *umtx); }
--------------080709060409040201010903--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41648FA6.3030002>
