NetBSD Problem Report #56033

From www@netbsd.org  Thu Mar  4 16:18:14 2021
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 5E6851A921F
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  4 Mar 2021 16:18:14 +0000 (UTC)
Message-Id: <20210304161812.EE4431A924E@mollari.NetBSD.org>
Date: Thu,  4 Mar 2021 16:18:12 +0000 (UTC)
From: mdehling@gmail.com
Reply-To: mdehling@gmail.com
To: gnats-bugs@NetBSD.org
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
>Organization:
>Environment:
SunOS deuterium 5.10 Generic_139555-08 sun4u sparc sun4u
cc: Sun C 5.10 SunOS_sparc 2009/06/03
>Description:
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."

>How-To-Repeat:

>Fix:
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 @@
 HOMEPAGE=      https://www.pkgsrc.org/
 COMMENT=       Patch files using diff output

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


>Release-Note:

>Audit-Trail:
From: "Jonathan Perkin" <jperkin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
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-By: jperkin@NetBSD.org
State-Changed-When: Fri, 04 Jun 2021 16:12:24 +0000
State-Changed-Why:
Fixed, thanks!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

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