NetBSD Problem Report #33036

From www@netbsd.org  Thu Mar  9 10:33:32 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 060FD63B89A; Thu,  9 Mar 2006 10:33:32 +0000 (UTC)
Message-Id: <20060309103332.060FD63B89A@narn.netbsd.org>
Date: Thu,  9 Mar 2006 10:33:32 +0000 (UTC)
From: stuart@zeus.com
Reply-To: stuart@zeus.com
To: gnats-bugs@netbsd.org
Subject: p5-pkgsrc-Dewey-1.0 uses warn() from err.h, even if not included
X-Send-Pr-Version: www-1.0

>Number:         33036
>Category:       pkg
>Synopsis:       p5-pkgsrc-Dewey-1.0 uses warn() from err.h, even if not included
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    rillig
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 09 10:35:00 +0000 2006
>Closed-Date:    Thu Mar 08 08:02:55 +0000 2007
>Last-Modified:  Thu Mar 08 08:05:01 +0000 2007
>Originator:     Stuart Shelton
>Release:        
>Organization:
>Environment:
>Description:

p5-pkgsrc-Dewey, now a dependancy for pkg_chk, condiitonally includes err.h

However, it then uses the warn() function regardless, which is not present if err.h isn't included.

The nbcompat package supplies its own err.h, but this is not used.

The p5-pkgsrc-Dewey source should be updated to require and use nbcompat for platforms without a native err.h
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: Stuart Shelton <stuart@zeus.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/33036: p5-pkgsrc-Dewey-1.0 uses warn() from err.h, even if
	not included
Date: Fri, 10 Mar 2006 13:42:32 +0000

 Although, or course, including err.h from nbcompat also fails because
 the C library doesn't include the warn() function that the header
 prototypes.

 Reimplementing warn() (and vwarn()) within defs.h is almost trivial
 (although I can't see any way to find the program name) - I guess this
 should be conditionally performed depending on the state of
 HAVE_ERR_H...

From: Quentin Garnier <cube@cubidou.net>
To: gnats-bugs@netbsd.org
Cc: stuart@zeus.com
Subject: Re: pkg/33036: p5-pkgsrc-Dewey-1.0 uses warn() from err.h, even if not included
Date: Sun, 12 Mar 2006 20:15:51 +0100

 --C8VkwhTltIEgspDW
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 On Thu, Mar 09, 2006 at 10:35:00AM +0000, stuart@zeus.com wrote:
 > >Number:         33036
 > >Category:       pkg
 > >Synopsis:       p5-pkgsrc-Dewey-1.0 uses warn() from err.h, even if not =
 included
 > >Confidential:   no
 > >Severity:       critical
 > >Priority:       high
 > >Responsible:    pkg-manager
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Thu Mar 09 10:35:00 +0000 2006
 > >Originator:     Stuart Shelton
 > >Release:       =20
 > >Organization:
 > >Environment:
 > >Description:
 >=20
 > p5-pkgsrc-Dewey, now a dependancy for pkg_chk, condiitonally includes err=
 .h
 >=20
 > However, it then uses the warn() function regardless, which is not presen=
 t if err.h isn't included.
 >=20
 > The nbcompat package supplies its own err.h, but this is not used.
 >=20
 > The p5-pkgsrc-Dewey source should be updated to require and use nbcompat =
 for platforms without a native err.h

 On what OS exactly does that issue appear?

 --=20
 Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
 "When I find the controls, I'll go where I like, I'll know where I want
 to be, but maybe for now I'll stay right here on a silent sea."
 KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

 --C8VkwhTltIEgspDW
 Content-Type: application/pgp-signature
 Content-Disposition: inline

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (NetBSD)

 iQEVAwUBRBRzZ9goQloHrPnoAQLrUQf/fYfUTejvxGC62m4U1SYvUaWVYC4pQ/lH
 jQZ62v2ULFcTF6ww0fU0Q9XD99+juL1NgubXjMYAQYu9aHSn4/XGM5uQs9MS3+cv
 MyhS0lZF3TSAQHzgIzNXKVBPn2BHyoEUY8RbKkSq69iCu6OdyWXrGmbGNn4PH5Ll
 NNza4m8+c1UM9lCelagBl8U5kA094tADDXhkzGQt3mnum8kYDgxk8533NBm+Q+2u
 +B+ydcNLQB++15ae8xidti0MMDpC+v4JYeA9QVE7w0wNx0o0stsPbjYbA2gXe+qp
 w9m0scDqi9i6Xew/6ymrWzD1nBRGvtyR6oX39eZE1BKUZI1nSsHQQg==
 =k0pe
 -----END PGP SIGNATURE-----

 --C8VkwhTltIEgspDW--

State-Changed-From-To: open->feedback
State-Changed-By: wiz@netbsd.org
State-Changed-When: Sat, 07 Oct 2006 19:15:31 +0000
State-Changed-Why:
cube asked for feedback >6 months ago...


Responsible-Changed-From-To: pkg-manager->rillig
Responsible-Changed-By: rillig@netbsd.org
Responsible-Changed-When: Thu, 08 Mar 2007 08:02:55 +0000
Responsible-Changed-Why:
I'll take it.


State-Changed-From-To: feedback->closed
State-Changed-By: rillig@netbsd.org
State-Changed-When: Thu, 08 Mar 2007 08:02:55 +0000
State-Changed-Why:
Fixed. Thanks for the PR.


From: Roland Illig <rillig@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/33036 CVS commit: pkgsrc/pkgtools/p5-pkgsrc-Dewey
Date: Thu,  8 Mar 2007 08:02:25 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	rillig
 Date:		Thu Mar  8 08:02:25 UTC 2007

 Modified Files:
 	pkgsrc/pkgtools/p5-pkgsrc-Dewey: Makefile

 Log Message:
 NetBSD has <err.h>. Fixes PR 33036.


 To generate a diff of this commit:
 cvs rdiff -r1.7 -r1.8 pkgsrc/pkgtools/p5-pkgsrc-Dewey/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.