Opened 3 years ago

Last modified 15 months ago

#64715 closed defect

gdal @3.4.0 +poppler: Build Failure — at Version 1

Reported by: ashimog Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: gdal

Description (last modified by ashimog)

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.

Change History (1)

comment:1 Changed 3 years ago by ashimog

Description: modified (diff)
Note: See TracTickets for help on using tickets.