Opened 3 years ago

Closed 3 years ago

#64899 closed defect (fixed)

pdf2djvu @0.9.18.2: error: no matching constructor for initialization of '::PDFDoc'

Reported by: angelog0 (Angelo Graziosi) Owned by: NicosPavlov
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc: chrstphrchvz (Christopher Chavez)
Port: pdf2djvu

Description

After the upgrade to MacPorts 2.7.2 this occurs

$ sudo port selfupdate
Password:
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.7.1 installed,
MacPorts base version 2.7.2 downloaded.
[...]
$ sudo port upgrade outdated
[...]
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  Found 1 broken file, matching files to ports
--->  Found 1 broken port, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt: pdf2djvu @0.9.18.2
[...]
--->  Computing dependencies for pdf2djvu
--->  Fetching distfiles for pdf2djvu
--->  Verifying checksums for pdf2djvu
--->  Extracting pdf2djvu
--->  Applying patches to pdf2djvu
--->  Configuring pdf2djvu
--->  Building pdf2djvu
Error: Failed to build pdf2djvu: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_pdf2djvu/pdf2djvu/main.log for details.
Error: rev-upgrade failed: Error rebuilding pdf2djvu
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
[...]

Attached the main.log

The system is macOS 10.13.6

$ uname -a
Darwin MacBookPro 17.7.0 Darwin Kernel Version 17.7.0: Fri Oct 30 13:34:27 PDT 2020; root:xnu-4570.71.82.8~1/RELEASE_X86_64 x86_64

Attachments (1)

pdf2djvu-main.log.bz2 (4.3 KB) - added by angelog0 (Angelo Graziosi) 3 years ago.

Download all attachments as: .zip

Change History (8)

Changed 3 years ago by angelog0 (Angelo Graziosi)

Attachment: pdf2djvu-main.log.bz2 added

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

Owner: set to NicosPavlov
Status: newassigned

comment:2 Changed 3 years ago by kencu (Ken)

:info:build pdf-backend.cc:133:3: error: no matching constructor for initialization of '::PDFDoc'
:info:build : ::PDFDoc(new pdf::String(file_name.c_str()), nullptr, nullptr)
:info:build   ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/include/poppler/PDFDoc.h:132:14: note: candidate constructor not viable: no known conversion from 'pdf::String *' (aka 'GooString *') to 'std::unique_ptr<GooString>' for 1st argument
:info:build     explicit PDFDoc(std::unique_ptr<GooString> &&fileNameA, const std::optional<GooString> &ownerPassword = {}, const std::optional<GooString> &userPassword = {}, void *guiDataA = nullptr,
:info:build              ^
:info:build /opt/local/include/poppler/PDFDoc.h:139:14: note: candidate constructor not viable: no known conversion from 'pdf::String *' (aka 'GooString *') to 'BaseStream *' for 1st argument
:info:build     explicit PDFDoc(BaseStream *strA, const std::optional<GooString> &ownerPassword = {}, const std::optional<GooString> &userPassword = {}, void *guiDataA = nullptr, const std::function<void()> &xrefReconstructedCallback = {});
:info:build              ^
:info:build /opt/local/include/poppler/PDFDoc.h:142:5: note: candidate constructor not viable: requires 1 argument, but 3 were provided
:info:build     PDFDoc(const PDFDoc &) = delete;
:info:build     ^
:info:build /opt/local/include/poppler/PDFDoc.h:371:5: note: candidate constructor not viable: requires 0 arguments, but 3 were provided
:info:build     PDFDoc();
:info:build     ^
:info:build 1 error generated.

comment:3 Changed 3 years ago by kencu (Ken)

Summary: Failure to rebuild broken port: pdf2djvupdf2djvu @0.9.18.2: error: no matching constructor for initialization of '::PDFDoc'

comment:4 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

pdf2djvu is currently incompatible with the new APIs in poppler 22.03.0 (libpoppler119). This should be reported upstream Edit: upstream has committed fixes for this, which have yet to be published in a release.

Last edited 3 years ago by chrstphrchvz (Christopher Chavez) (previous) (diff)

comment:5 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:6 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

comment:7 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

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