Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2000 06:32:19 GMT
From:      mellon@pobox.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/18104: missing include file in sh(1)
Message-ID:  <200004200632.GAA67396@happy.checkpoint.com>

next in thread | raw e-mail | index | archive | help

>Number:         18104
>Category:       bin
>Synopsis:       a source file in sh(1) lacks #include <errno.h>
>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 <varargs.h>
 #endif
+#include <errno.h>
 
 #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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004200632.GAA67396>