build kernel failiure (kern_thr.c)
Ryan Sommers
ryans at gamersimpact.com
Wed Oct 6 17:36:37 PDT 2004
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 at gamersimpact.com
-------------- next part --------------
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); }
More information about the freebsd-current
mailing list