Subject: port-i386/20568: compile error in /sys/lkm/compat/svr4/lkminit_emul.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mochi@thn.ne.jp>
List: netbsd-bugs
Date: 03/04/2003 18:12:35
>Number: 20568
>Category: port-i386
>Synopsis: compile error in /sys/lkm/compat/svr4/lkminit_emul.c
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: port-i386-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 04 01:13:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: MOCHIZUKI Tomomitsu
>Release: NetBSD 1.6P
>Organization:
>Environment:
Today(2003.03.04 8:00 JST) get anoncvs source tree.
System: NetBSD daiki 1.6P NetBSD 1.6P (DAIKI) #0: Sat Mar 1 19:27:21 JST 2003 mochi@daiki:/sys/arch/i386/compile/DAIKI i386
Architecture: i386
Machine: i386
>Description:
/usr/obj/tooldir/bin/i386--netbsdelf-gcc -O2 -ffreestanding -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-uninitialized-Werror -Demul_find=svr4_emul_find -Dstackgap_init=svr4_stackgap_init -Demul_flags_translate=svr4_emul_flags_translate -Dstackgap_alloc=svr4_stackgap_alloc -Dcompat_offseterr=svr4_compat_offseterr -DCOMPAT_SVR4 -DSYSVSEM -DSYSVMSG -DSYSVSHM -DSVR4_COMPAT_SOLARIS2 -nostdinc -I. -I/sys/lkm/compat/svr4 -isystem /usr/sup/src/sys -isystem /usr/sup/src/sys/arch -D_KERNEL -D_LKM -c /sys/lkm/compat/svr4/lkminit_emul.c
/sys/lkm/compat/svr4/lkminit_emul.c: In function `svr4_init':
/sys/lkm/compat/svr4/lkminit_emul.c:89: structure has no member named `gd'
/sys/lkm/compat/svr4/lkminit_emul.c: In function `svr4_done':
/sys/lkm/compat/svr4/lkminit_emul.c:103: structure has no member named `gd'
*** Error code 1
>How-To-Repeat:
I think that this correction is the cause.
</sys/arch/i386/include> cvs diff -u -p -r1.35 segments.h
Index: segments.h
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/include/segments.h,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -p -r1.35 -r1.36
--- segments.h 2002/10/05 21:26:24 1.35
+++ segments.h 2003/03/03 22:14:18 1.36
@@ -1,4 +1,4 @@
-/* $NetBSD: segments.h,v 1.35 2002/10/05 21:26:24 fvdl Exp $ */
+/* $NetBSD: segments.h,v 1.36 2003/03/03 22:14:18 fvdl Exp $ */
/*-
* Copyright (c) 1995, 1997
@@ -132,7 +132,8 @@ struct region_descriptor {
#endif
#ifdef _KERNEL
-extern union descriptor *idt, *gdt, *ldt;
+extern union descriptor *gdt, *ldt;
+extern struct gate_descriptor *idt;
void setgate __P((struct gate_descriptor *, void *, int, int, int, int));
void setregion __P((struct region_descriptor *, void *, size_t));
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: