NetBSD Problem Report #56033

From  Thu Mar  4 16:18:14 2021
Return-Path: <>
Received: from ( [])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 5E6851A921F
	for <>; Thu,  4 Mar 2021 16:18:14 +0000 (UTC)
Message-Id: <>
Date: Thu,  4 Mar 2021 16:18:12 +0000 (UTC)
Subject: devel/nbpatch and others fail to compile on Solaris 10u7 w/ SunStudio 12u1
X-Send-Pr-Version: www-1.0

>Number:         56033
>Category:       pkg
>Synopsis:       devel/nbpatch and others fail to compile on Solaris 10u7 w/ SunStudio 12u1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 04 16:20:01 +0000 2021
>Closed-Date:    Fri Jun 04 16:12:24 +0000 2021
>Last-Modified:  Fri Jun 04 16:12:24 +0000 2021
>Originator:     Malte Dehling
>Release:        pkgsrc-2020Q4
SunOS deuterium 5.10 Generic_139555-08 sun4u sparc sun4u
cc: Sun C 5.10 SunOS_sparc 2009/06/03
This package (and many others) fail to compile with SunStudio with an error like this:

"/usr/include/stdbool.h", line 42: #error: "Use of <stdbool.h> is valid only in a c99 compilation environment."


Setting USE_LANGUAGES=c99 solves the issue for me.  I'm not sure whether this could cause issues on other systems that do provide stdbool.h but not a full c99 compiler.

--- Makefile.orig       Thu Mar  4 17:01:38 2021
+++ Makefile    Thu Mar  4 17:09:56 2021
@@ -10,6 +10,8 @@
 COMMENT=       Patch files using diff output

 # Allow checkperms and other core dependencies to use patches
 CHECK_PERMS=           no


From: "Jonathan Perkin" <>
Subject: PR/56033 CVS commit: pkgsrc/devel/nbpatch
Date: Fri, 4 Jun 2021 16:06:11 +0000

 Module Name:	pkgsrc
 Committed By:	jperkin
 Date:		Fri Jun  4 16:06:11 UTC 2021

 Modified Files:
 	pkgsrc/devel/nbpatch: Makefile

 Log Message:
 nbpatch: Needs C99.  Fixes PR#56033.

 To generate a diff of this commit:
 cvs rdiff -u -r1.11 -r1.12 pkgsrc/devel/nbpatch/Makefile

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

State-Changed-From-To: open->closed
State-Changed-When: Fri, 04 Jun 2021 16:12:24 +0000
Fixed, thanks!


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.