[MacPorts] #60326: jsoncpp @1.9.2: error: inline declaration of 'as<bool>' follows non-inline definition

MacPorts noreply at macports.org
Fri Jun 5 06:16:01 UTC 2020


#60326: jsoncpp @1.9.2: error: inline declaration of 'as<bool>' follows non-inline
definition
-------------------------+-----------------------
  Reporter:  ryandesign  |      Owner:  michaelld
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.2
Resolution:  fixed       |   Keywords:  yosemite
      Port:  jsoncpp     |
-------------------------+-----------------------

Comment (by ryandesign):

 I'm now having trouble building raceintospace (which depends on jsoncpp)
 on 10.9, and it's giving an error on these same lines of json/value.h.
 raceintospace already specifies that it requires compiler.cxx_standard
 2011 but it does not additionally blacklist clang < 900 because that has
 never before been necessary for C++11 support and I find it hard to
 believe that it is required here.

 I think the real problem is that jsoncpp was failing to set `-std=c++11`
 everywhere it needed to. I think forcing the use of clang 900 or later
 gave you a compiler that defaults to C++11 mode, avoiding the problem.

 As far as I can tell this problem has been fixed in jsoncpp 1.9.3 so I'll
 suggest reverting your change in the PR that I'll submit shortly. I'm not
 sure what upstream commit fixed it but it might be [https://github.com
 /open-source-
 parsers/jsoncpp/commit/12ceb014850d2a7bbaf7f23cd4a1ab8f6571b17f this one].

-- 
Ticket URL: <https://trac.macports.org/ticket/60326#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list