[MacPorts] #56603: zstd: error: expected ')'
MacPorts
noreply at macports.org
Mon Jun 4 03:51:00 UTC 2018
#56603: zstd: error: expected ')'
--------------------+--------------------
Reporter: kencu | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port:
--------------------+--------------------
`zstd` build fails on darwin 12 and older. There are two issues:
Firstly, on 10.6 and older, it requires `__STDC_FORMAT_MACROS` to be
defined due to changes in `inttypes.h` on 10.7 and newer, and generates
this error otherwise:
{{{
Pzstd.cpp:104:46: error: expected ')'
state.log(INFO, "%-20s :%6.2f%% (%6" PRIu64 " => %6" PRIu64
}}}
and secondly, the port uses c++11:
{{{
/opt/local/bin/clang++-mp-3.9 -arch x86_64 -MMD -MP -MF main.Td
-I../../lib -I../../lib/common -I../../programs -I. -DNDEBUG -O3 -Wall
-Wextra -pedantic -std=c++11 -c main.cpp -o main.o
mv -f main.Td main.d
}}}
and so needs the c++11 PortGroup.
--
Ticket URL: <https://trac.macports.org/ticket/56603>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list