[MacPorts] #59931: pstoedit @3.75 does not build on PPC Tiger, Mac OS X 10.4.11, because 'body of constexpr function 'constexpr float rnd(float, float)' not a return-statement'
MacPorts
noreply at macports.org
Thu Jan 9 15:20:53 UTC 2020
#59931: pstoedit @3.75 does not build on PPC Tiger, Mac OS X 10.4.11, because 'body
of constexpr function 'constexpr float rnd(float, float)' not a return-
statement'
------------------------+--------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Resolution: | Keywords: tiger
Port: pstoedit |
------------------------+--------------------
Comment (by ballapete):
On High Sierra (and also in documention) I am getting this hint:
{{{
libtool: compile: /usr/bin/clang++ -DHAVE_CONFIG_H -I. -DHAVE_LIBPLOTTER
-DHAVE_MKSTEMP -DHAVE_MAGIC -DMAGICKCORE_HDRI_ENABLE=0
-DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=0
-DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=0
-DMAGICKCORE_QUANTUM_DEPTH=16 -I/opt/local/include/ImageMagick-6
-DHAVE_LIBZIP -DDEFAULTGS=gs
-DPSTOEDITDATADIR=\"/opt/local/share/pstoedit\"
-DPSTOEDITLIBDIR=\"/opt/local/lib/pstoedit\" -Wall -Wextra -Wuninitialized
-Wswitch-default -Wunused -Wshadow -Wwrite-strings -Wcast-qual -Wpointer-
arith -Wno-long-long -I/opt/local/include -Wno-long-long -D_LITTLE_ENDIAN
-pipe -Os -std=c++11 -stdlib=libc++ -arch x86_64 -DINTERNALBOOL -MT
drvpdf.lo -MD -MP -MF .deps/drvpdf.Tpo -c drvpdf.cpp -fno-common -DPIC -o
.libs/drvpdf.o
drvpdf.cpp:46:14: warning: variable declaration in a constexpr function is
a C++14 extension [-Wc++14-extensions]
const float roundup = (f < 0.0f) ? -0.5f : 0.5f;
^
1 warning generated.
}}}
And indeed on Leopard using `C++ Standard from 2014` allows `pstoedit` to
build.
--
Ticket URL: <https://trac.macports.org/ticket/59931#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list