Opened 9 months ago

Closed 9 months ago

#69307 closed defect (duplicate)

pdftk-java @3.3.3_0: error: cannot find symbol

Reported by: manuelmenal Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: Cc: chrstphrchvz (Christopher Chavez)
Port: pdftk-java

Description (last modified by ryandesign (Ryan Carsten Schmidt))

pdftk-java 3.3.3_0 does not build with bcprov >1.75 because it uses a deprecated method that was deleted in bcprov till 1.75.

Installing bcprov 1.74_0 instead fixes the problem.

Bug has been reported upstream but seems to lack patch ATM: https://gitlab.com/pdftk-java/pdftk/-/issues/155

Here's build log:

compile:
    [javac] Compiling 47 source files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_pdftk-java/pdftk-java/work/pdftk-3.3.3/build/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 8
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_pdftk-java/pdftk-java/work/pdftk-3.3.3/java/com/gitlab/pdftk_java/com/lowagie/text/pdf/PdfPKCS7.java:228: error: cannot find symbol
    [javac]         ASN1Sequence content = (ASN1Sequence)((DERTaggedObject)signedData.getObjectAt(1)).getObject();
    [javac]                                                                                          ^
    [javac]   symbol:   method getObject()
    [javac]   location: class DERTaggedObject
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_pdftk-java/pdftk-java/work/pdftk-3.3.3/java/com/gitlab/pdftk_java/com/lowagie/text/pdf/PdfPKCS7.java:261: error: cannot find symbol
    [javac]             DEROctetString rsaDataContent = (DEROctetString)((DERTaggedObject)rsaData.getObjectAt(1)).getObject();
    [javac]                                                                                                      ^
    [javac]   symbol:   method getObject()
    [javac]   location: class DERTaggedObject
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_pdftk-java/pdftk-java/work/pdftk-3.3.3/java/com/gitlab/pdftk_java/com/lowagie/text/pdf/PdfPKCS7.java:297: error: cannot find symbol
    [javac]             ASN1Sequence sseq = (ASN1Sequence)tagsig.getObject();
    [javac]                                                     ^
    [javac]   symbol:   method getObject()
    [javac]   location: variable tagsig of type ASN1TaggedObject
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 3 errors
    [javac] 1 warning

BUILD FAILED
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_pdftk-java/pdftk-java/work/pdftk-3.3.3/build.xml:16: Compile failed; see the compiler error output for details.

Change History (2)

comment:1 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: pdftk-java added
Summary: pdftk-java 3.3.3_0: does not build with bcprov >1.75pdftk-java @3.3.3_0: error: cannot find symbol

The upstream bug report you linked to contains a link to how the problem was solved in another program, so that could be used as a basis for a patch, if you or someone wanted to develop one.

comment:2 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: chrstphrchvz added
Resolution: duplicate
Status: newclosed

Duplicate of #68744.

Note: See TracTickets for help on using tickets.