pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/56033: devel/nbpatch and others fail to compile on Solaris 10u7 w/ SunStudio 12u1



>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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 04 16:20:01 +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
 


Home | Main Index | Thread Index | Old Index