NetBSD Problem Report #1424
From gnats Thu Aug 31 00:13:38 1995
Received: from azathoth (slip-5-12.shore.net [198.115.180.212]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id AAA29159 for <gnats-bugs@gnats.netbsd.org>; Thu, 31 Aug 1995 00:13:35 -0400
Message-Id: <199508310412.AAA03975@azathoth>
Date: Thu, 31 Aug 1995 00:12:11 -0400
From: Mike Long <mikel@shore.net>
Reply-To: Mike Long <mike.long@analog.com>
To: gnats-bugs@gnats.netbsd.org
Subject: i386 linux_machdep.c depends on pcvt
X-Send-Pr-Version: 3.2
>Number: 1424
>Category: port-i386
>Synopsis: i386 linux_machdep.c depends on pcvt
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 31 00:20:02 +0000 1995
>Closed-Date: Thu Aug 31 09:36:10 +0000 1995
>Last-Modified: Sat Jul 10 09:23:39 +0000 2004
>Originator: Mike Long
>Release: 950830
>Organization:
fnord
>Environment:
System: NetBSD azathoth 1.0A NetBSD 1.0A (AZATHOTH) #1: Wed Aug 30 01:45:51 EDT 1995 root@azathoth:/usr/src/sys/arch/i386/compile/AZATHOTH i386
>Description:
Some variable declarations in linux_machdepioctl() need to be
wrapped with #if NVT > 0 / #endif, or the kernel build will choke on
'struct vt_mode lvt'.
>How-To-Repeat:
Build an i386 kernel with 'options COMPAT_LINUX' but without
pcvt.
>Fix:
Apply this patch:
*** /sys/arch/i386/i386/linux_machdep.c~ Wed Aug 30 03:06:36 1995
--- /sys/arch/i386/i386/linux_machdep.c Wed Aug 30 23:19:34 1995
***************
*** 418,421 ****
--- 418,422 ----
{
struct ioctl_args bia, tmparg;
+ #if NVT > 0
int error, mode;
struct vt_mode lvt;
***************
*** 424,427 ****
--- 425,429 ----
struct file *fp;
struct filedesc *fdp;
+ #endif
u_long com;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: fvdl
State-Changed-When: Thu Aug 31 05:36:10 EDT 1995
State-Changed-Why:
Fixed, as suggested.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.