From owner-freebsd-bugs Wed Apr 19 20:40: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5AAC837B92A for ; Wed, 19 Apr 2000 20:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA86661; Wed, 19 Apr 2000 20:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from happy.checkpoint.com (happy.checkpoint.com [199.203.156.41]) by hub.freebsd.org (Postfix) with ESMTP id CC5D537B6E3 for ; Wed, 19 Apr 2000 20:33:33 -0700 (PDT) (envelope-from mellon@happy.checkpoint.com) Received: (from mellon@localhost) by happy.checkpoint.com (8.9.3/8.9.3) id GAA67396; Thu, 20 Apr 2000 06:32:19 GMT (envelope-from mellon) Message-Id: <200004200632.GAA67396@happy.checkpoint.com> Date: Thu, 20 Apr 2000 06:32:19 GMT From: mellon@pobox.com Reply-To: mellon@pobox.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/18104: missing include file in sh(1) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 18104 >Category: bin >Synopsis: a source file in sh(1) lacks #include >Confidential: yes >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 19 20:40:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Anatoly Vorobey >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: -CURRENT >Description: When sh(1) is compiled with DEBUG defined, as it usually isn't, show.c won't compile as it uses errno but lacks the include. The offending function, opentrace(), is inside a #ifdef DEBUG block. >How-To-Repeat: cd /usr/src/bin/sh DEBUG_FLAGS=-DDEBUG make >Fix: Index: show.c =================================================================== RCS file: /freebsd/cvs/src/bin/sh/show.c,v retrieving revision 1.11 diff -u -r1.11 show.c --- show.c 1999/11/29 19:11:01 1.11 +++ show.c 2000/04/20 06:31:22 @@ -48,6 +48,7 @@ #else #include #endif +#include #include "shell.h" #include "parser.h" >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message