NetBSD Problem Report #33037

From www@netbsd.org  Thu Mar  9 11:05:43 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 29FEB63B89A; Thu,  9 Mar 2006 11:05:43 +0000 (UTC)
Message-Id: <20060309110543.29FEB63B89A@narn.netbsd.org>
Date: Thu,  9 Mar 2006 11:05:43 +0000 (UTC)
From: stuart@zeus.com
Reply-To: stuart@zeus.com
To: gnats-bugs@netbsd.org
Subject: nbcompat/err.h header file incomplete?
X-Send-Pr-Version: www-1.0

>Number:         33037
>Category:       pkg
>Synopsis:       nbcompat/err.h header file incomplete?
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 09 11:10:00 +0000 2006
>Closed-Date:    
>Last-Modified:  Mon Mar 01 02:52:43 +0000 2010
>Originator:     Stuart Shelton
>Release:        
>Organization:
>Environment:
>Description:

libnbcompat-20041024's err.h library seems, so far as I can tell, to be incomplete: It uses the __P macro and va_list without including the relevent headers.

I'm not a C expert, so I might have misunderstood how this header is supposed to be used ... but shouldn't the following change be applied:

 #if HAVE_ERR_H
 # include <err.h>
 #endif

+#ifndef _NBCOMPAT_SYS_CDEFS_H_
+# include <nbcompat/cdefs.h>
+#endif
+
+#ifndef __STDARG_H__
+# include <stdarg.h>
+#endif
+
 #if !HAVE_ERR
 void    err __P((int, const char *, ...));
 void    errx __P((int, const char *, ...));
 void    verr __P((int, const char *, va_list));

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: asau@NetBSD.org
State-Changed-When: Fri, 19 Feb 2010 10:56:23 +0000
State-Changed-Why:
The library was updated many times, does the problem persist?


State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 01 Mar 2010 02:52:43 +0000
State-Changed-Why:
feedback mail bounceth; however, the problem does still remain.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.