[MacPorts] #64715: gdal @3.4.0 +poppler: Build Failure
MacPorts
noreply at macports.org
Wed Feb 23 08:50:58 UTC 2022
#64715: gdal @3.4.0 +poppler: Build Failure
----------------------+--------------------
Reporter: ashimog | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: gdal |
----------------------+--------------------
Description changed by ashimog:
Old description:
> Poppler 22+ requires c++17 while this port still uses c++14.
> {{{
> /opt/local/include/poppler/Form.h:326:10: error: no template named
> 'optional' in namespace 'std'
> std::optional<GooString> getCheckedSignature(Goffset
> *checkedFileSize);
> ~~~~~^
> /opt/local/include/poppler/Form.h:619:10: error: no template named
> 'optional' in namespace 'std'
> std::optional<GooString> getCheckedSignature(Goffset
> *checkedFileSize);
> ~~~~~^
> 2 errors generated.
> }}}
>
> This is the exactly same issue as
> https://github.com/OSGeo/gdal/issues/5071.
>
> Change `compiler.cxx_standard` to `2017`, and \\
> add `configure.cxxflags-append -std=c++17` solves this problem.
New description:
Poppler 22+ requires c++17 while this port still uses c++14.
{{{
/opt/local/include/poppler/Form.h:326:10: error: no template named
'optional' in namespace 'std'
std::optional<GooString> getCheckedSignature(Goffset
*checkedFileSize);
~~~~~^
/opt/local/include/poppler/Form.h:619:10: error: no template named
'optional' in namespace 'std'
std::optional<GooString> getCheckedSignature(Goffset
*checkedFileSize);
~~~~~^
2 errors generated.
}}}
This is exactly the same issue as
https://github.com/OSGeo/gdal/issues/5071.
Change `compiler.cxx_standard` to `2017`, and \\
add `configure.cxxflags-append -std=c++17` solves this problem.
--
--
Ticket URL: <https://trac.macports.org/ticket/64715#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list