[MacPorts] #65821: qtimageformats ports: error: use of undeclared identifier 'pow'
MacPorts
noreply at macports.org
Sun Sep 11 09:41:37 UTC 2022
#65821: qtimageformats ports: error: use of undeclared identifier 'pow'
-------------------------+-------------------------------------------------
Reporter: | Owner: (none)
chrstphrchvz |
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: qt53-qtimageformats
| qt55-qtimageformats qt56-qtimageformats
| qt57-qtimageformats qt58-qtimageformats
| qt59-qtimageformats qt511-qtimageformats
| qt513-qtimageformats
-------------------------+-------------------------------------------------
A missing `#include <math.h>` causes the build to fail for some OS
versions:
{{{
qjp2handler.cpp:847:41: error: use of undeclared identifier 'pow'
const double jasperRate = minRate + pow((double(quality) /
double(maxQuality)), 2) * maxRate;
}}}
Already fixed upstream since 5.15:
[https://invent.kde.org/qt/qt/qtimageformats/-/commit/704868db61be]. I can
likely propose to fix this in affected ports soon.
--
Ticket URL: <https://trac.macports.org/ticket/65821>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list