Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476018 - =dev-java/pdfbox-0.7.3-r2 - [javac] src/org/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:54: error: cannot find symbol org.bouncycastle.asn1.DERObject
Summary: =dev-java/pdfbox-0.7.3-r2 - [javac] src/org/pdfbox/pdmodel/encryption/PublicK...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-07 00:15 UTC by Jason Mours
Modified: 2013-07-11 22:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,8.20 KB, text/plain)
2013-07-07 00:16 UTC, Jason Mours
Details
emerge-info (pdfbox-0.7.3-r2-emerge-info,16.15 KB, text/plain)
2013-07-07 00:17 UTC, Jason Mours
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mours 2013-07-07 00:15:43 UTC
Running into 14 errors emerging dev-java/pdfbox-0.7.3-r2 : 

compile:
    [javac] Compiling 373 source files to /var/tmp/portage/dev-java/pdfbox-0.7.3-r2/work/PDFBox-0.7.3/classes
    [javac] /var/tmp/portage/dev-java/pdfbox-0.7.3-r2/work/PDFBox-0.7.3/src/org/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:54: error: cannot find symbol
    [javac] import org.bouncycastle.asn1.DERObject;
    [javac]                             ^
    [javac]   symbol:   class DERObject
    [javac]   location: package org.bouncycastle.asn1
    [javac] /var/tmp/portage/dev-java/pdfbox-0.7.3-r2/work/PDFBox-0.7.3/src/org/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:69: error: package org.bouncycastle.cms does not exist
    [javac] import org.bouncycastle.cms.CMSEnvelopedData;
    [javac]                            ^
    [javac] /var/tmp/portage/dev-java/pdfbox-0.7.3-r2/work/PDFBox-0.7.3/src/org/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:70: error: package org.bouncycastle.cms does not exist
    [javac] import org.bouncycastle.cms.CMSException;
    [javac]                            ^
    [javac] /var/tmp/portage/dev-java/pdfbox-0.7.3-r2/work/PDFBox-0.7.3/src/org/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:71: error: package org.bouncycastle.cms does not exist
    [javac] import org.bouncycastle.cms.RecipientInformation;
    [javac]                            ^
    [javac] /var/tmp/portage/dev-java/pdfbox-0.7.3-r2/work/PDFBox-0.7.3/src/org/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:368: error: cannot find symbol
    [javac]     private DERObject createDERForRecipient(byte[] in, X509Certificate cert) 
    [javac]             ^
    [javac]   symbol:   class DERObject
    [javac]   location: class PublicKeySecurityHandler
    [javac] /var/tmp/portage/dev-java/pdfbox-0.7.3-r2/work/PDFBox-0.7.3/src/org/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:164: error: cannot find symbol
    [javac]                 CMSEnvelopedData data = new CMSEnvelopedData(recipientBytes);
    [javac]                 ^
    [javac]   symbol:   class CMSEnvelopedData
    [javac]   location: class PublicKeySecurityHandler
    [javac] /var/tmp/portage/dev-java/pdfbox-0.7.3-r2/work/PDFBox-0.7.3/src/org/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:164: error: cannot find symbol
    [javac]                 CMSEnvelopedData data = new CMSEnvelopedData(recipientBytes);
    [javac]                                             ^
    [javac]   symbol:   class CMSEnvelopedData
    [javac]   location: class PublicKeySecurityHandler
    [javac] /var/tmp/portage/dev-java/pdfbox-0.7.3-r2/work/PDFBox-0.7.3/src/org/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:168: error: cannot find symbol
    [javac]                     RecipientInformation ri = 
    [javac]                     ^
    [javac]   symbol:   class RecipientInformation
    [javac]   location: class PublicKeySecurityHandler
    [javac] /var/tmp/portage/dev-java/pdfbox-0.7.3-r2/work/PDFBox-0.7.3/src/org/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:169: error: cannot find symbol
    [javac]                         (RecipientInformation)recipCertificatesIt.next();
    [javac]                          ^
    [javac]   symbol:   class RecipientInformation
    [javac]   location: class PublicKeySecurityHandler
    [javac] /var/tmp/portage/dev-java/pdfbox-0.7.3-r2/work/PDFBox-0.7.3/src/org/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:226: error: cannot find symbol
    [javac]         catch(CMSException e)
    [javac]               ^
    [javac]   symbol:   class CMSException
    [javac]   location: class PublicKeySecurityHandler
    [javac] /var/tmp/portage/dev-java/pdfbox-0.7.3-r2/work/PDFBox-0.7.3/src/org/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:301: error: cannot find symbol
    [javac]                 DERObject obj = createDERForRecipient(pkcs7input, certificate);
    [javac]                 ^
    [javac]   symbol:   class DERObject
    [javac]   location: class PublicKeySecurityHandler
    [javac] /var/tmp/portage/dev-java/pdfbox-0.7.3-r2/work/PDFBox-0.7.3/src/org/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:379: error: cannot find symbol
    [javac]         DERObject derobject = asn1inputstream.readObject();
    [javac]         ^
    [javac]   symbol:   class DERObject
    [javac]   location: class PublicKeySecurityHandler
    [javac] /var/tmp/portage/dev-java/pdfbox-0.7.3-r2/work/PDFBox-0.7.3/src/org/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:392: error: reference to EnvelopedData is ambiguous, both constructor EnvelopedData(OriginatorInfo,ASN1Set,EncryptedContentInfo,ASN1Set) in EnvelopedData and constructor EnvelopedData(OriginatorInfo,ASN1Set,EncryptedContentInfo,Attributes) in EnvelopedData match
    [javac]         EnvelopedData env = new EnvelopedData(null, derset, encryptedcontentinfo, null);
    [javac]                             ^
    [javac] /var/tmp/portage/dev-java/pdfbox-0.7.3-r2/work/PDFBox-0.7.3/src/org/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:395: error: cannot find symbol
    [javac]         return contentinfo.getDERObject();        
    [javac]                           ^
    [javac]   symbol:   method getDERObject()
    [javac]   location: variable contentinfo of type ContentInfo
    [javac] 14 errors

BUILD FAILED
/var/tmp/portage/dev-java/pdfbox-0.7.3-r2/work/PDFBox-0.7.3/build.xml:85: Compile failed; see the compiler error output for details.

: Posting build.log

Reproducible: Always
Comment 1 Jason Mours 2013-07-07 00:16:59 UTC
Created attachment 352760 [details]
build.log
Comment 2 Jason Mours 2013-07-07 00:17:48 UTC
Created attachment 352762 [details]
emerge-info
Comment 3 Jason Mours 2013-07-07 00:20:48 UTC
[javac] /var/tmp/portage/dev-java/pdfbox-0.7.3-r2/work/PDFBox-0.7.3/src/org/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:69: error: package org.bouncycastle.cms does not exist

Perhaps this should be the headline of the bug, not the missing symbol.
Comment 4 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-09 20:22:15 UTC
Which version(s) of bcmail, bcpg, bcpkix, bcprov do you have installed?
Comment 5 Jason Mours 2013-07-09 20:39:18 UTC
(In reply to Tom Wijsman (TomWij) from comment #4)
> Which version(s) of bcmail, bcpg, bcpkix, bcprov do you have installed?

dev-java/bcprov-1.49-r2 - installed
dev-java/bcmail-1.49 - installed
dev-java/bcpg-1.49 - *not installed*

I emerged dev-java/bcpg-1.49 successfully, but the results with pdfbox-0.7.3-r2 are the same.
Comment 6 Tim Teichmann 2013-07-11 22:03:23 UTC
I have the same problem here and my build log also mentions JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac".
In fact "javac -version" returns "javac 1.7.0_21" (from dev-java/icedtea-7.2.3.9). Could this be connected to the problem?
Comment 7 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-11 22:52:25 UTC
(In reply to Tim Teichmann from comment #6)
> I have the same problem here and my build log also mentions
> JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac".
> In fact "javac -version" returns "javac 1.7.0_21" (from
> dev-java/icedtea-7.2.3.9). Could this be connected to the problem?

No, that's the lowest version of Java the package supports.

The problem here is that we've introduced newer versions of those libraries I've asked about above; so, to resolve this we need to restrict the version to those that are known to work. Did so, tested and it should work if you sync the Portage tree in an hour or so from now.

+  11 Jul 2013; Tom Wijsman <TomWij@gentoo.org> pdfbox-0.7.3-r2.ebuild:
+  Fixed dependencies to not depend on newest versions which break compilation;
+  might need better slotting, planning to look into that tomorrow. Fixes bug
+  #476018, reported by Jason Mours.

Thank you for reporting and providing details.