Opened 3 years ago

Closed 17 months ago

#64715 closed defect (fixed)

gdal @3.4.0 +poppler: Build Failure

Reported by: ashimog Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: cooljeanius (Eric Gallager), evanmiller (Evan Miller)
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 (6)

comment:1 Changed 3 years ago by ashimog

Description: modified (diff)

comment:2 Changed 3 years ago by jmroot (Joshua Root)

Owner: set to Veence
Status: newassigned

comment:3 Changed 3 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:4 Changed 3 years ago by evanmiller (Evan Miller)

Cc: evanmiller added

comment:5 Changed 19 months ago by nilason (Nicklas Larsson)

This was fixed upstreams with GDAL 3.5.0. With present version 3.6.4 this is no longer an issue and this ticket may be closed.

comment:6 Changed 17 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.