Opened 6 months ago

Last modified 5 months ago

#73465 assigned defect

pdf2djvu @0.9.19_8: error: no member named 'starts_with' in 'std::string'

Reported by: Mankka (Henrik Mannerström) Owned by: NicosPavlov
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: pdf2djvu

Description

When updating to 2.12.0, pdf2djvu no longer builds (macOS Tahoe 26.2, arm). The error traces back to poppler (see attached log-file).

Attachments (1)

main.log (551.6 KB) - added by Mankka (Henrik Mannerström) 6 months ago.

Download all attachments as: .zip

Change History (5)

Changed 6 months ago by Mankka (Henrik Mannerström)

Attachment: main.log added

comment:1 Changed 6 months ago by jmroot (Joshua Root)

Owner: set to NicosPavlov
Port: pdf2djvu added
Status: newassigned

It looks like the poppler headers now require C++20.

comment:2 Changed 6 months ago by Mankka (Henrik Mannerström)

Possibly related to #73454.

comment:3 Changed 6 months ago by roederja

Changing the pdf2djvu port to include

configure.cxxflags-append -std=c++20
compiler.cxx_standard  2020

makes the span error go away, but then the pdf2djvu code fails to compile because it's not C++ 2020 compliant. This needs to be fixed upstream which is unlikely to happen because the project has been archived. The port is already blacklisting newer compilers because they won't compile it. Unless the maintainer wants to patch the port to be compliant with modern C++ it probably has to be removed.

Last edited 5 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

Summary: pdf2djvu 0.9.19_8: fail to buildpdf2djvu @0.9.19_8: error: no member named 'starts_with' in 'std::string'
Note: See TracTickets for help on using tickets.