Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87328 - Emerge of gnu-crypto fails with JDK 1.5.0.02
Summary: Emerge of gnu-crypto fails with JDK 1.5.0.02
Status: RESOLVED DUPLICATE of bug 79206
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-30 13:21 UTC by Eduard Martinescu
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eduard Martinescu 2005-03-30 13:21:03 UTC
Emerging gnu-crypto with Sun's JDK 1.4.2.07 works fine.  Only fails if using Sun JDK 1.5.x (only tried 1.5.0.02, but will assume it fails for all 1.5.x versions).

I think the problem is that JDK 1.5 includes the javax.security.sasl.* classes in the 'rt.jar' file, so comes with an implementation already, that is not compatible with gnu-crypto

Reproducible: Always
Steps to Reproduce:
1.java-config -S sun-jdk-1.5.0.02
2.env-update && source /etc/profile
3.emerge gnu-crypto

Actual Results:  
CLASSPATH=.:/var/tmp/portage/gnu-crypto-2.0.1/work/gnu-crypto-2.0.1/jce/javax-crypto.jar:/var/tmp/portage/gnu-crypto-2.0.1/work/gnu-crypto-2.0.1/security/javax-security.jar /opt/sun-jdk-1.5.0.02/bin/javac  
gnu/crypto/jce/hash/MD5Spi.java 
./gnu/crypto/sasl/ClientMechanism.java:143: 
getNegotiatedProperty(java.lang.String) in gnu.crypto.sasl.ClientMechanism 
cannot implement getNegotiatedProperty(java.lang.String) in 
javax.security.sasl.SaslClient; overridden method does not throw 
javax.security.sasl.SaslException 
   public Object getNegotiatedProperty(final String propName) throws 
SaslException { 
                 ^ 
./gnu/crypto/sasl/ServerMechanism.java:150: 
getNegotiatedProperty(java.lang.String) in gnu.crypto.sasl.ServerMechanism 
cannot implement getNegotiatedProperty(java.lang.String) in 
javax.security.sasl.SaslServer; overridden method does not throw 
javax.security.sasl.SaslException 
   public Object getNegotiatedProperty(final String propName) throws 
SaslException { 
                 ^ 
./gnu/crypto/sasl/anonymous/AnonymousClient.java:61: 
getNegotiatedProperty(java.lang.String) in gnu.crypto.sasl.ClientMechanism 
cannot implement getNegotiatedProperty(java.lang.String) in 
javax.security.sasl.SaslClient; overridden method does not throw 
javax.security.sasl.SaslException 
public class AnonymousClient extends ClientMechanism implements SaslClient { 
       ^ 
./gnu/crypto/sasl/crammd5/CramMD5Client.java:66: 
getNegotiatedProperty(java.lang.String) in gnu.crypto.sasl.ClientMechanism 
cannot implement getNegotiatedProperty(java.lang.String) in 
javax.security.sasl.SaslClient; overridden method does not throw 
javax.security.sasl.SaslException 
public class CramMD5Client extends ClientMechanism implements SaslClient { 
       ^ 
CLASSPATH=.:/var/tmp/portage/gnu-crypto-2.0.1/work/gnu-crypto-2.0.1/jce/javax-crypto.jar:/var/tmp/portage/gnu-crypto-2.0.1/work/gnu-crypto-2.0.1/security/javax-security.jar /opt/sun-jdk-1.5.0.02/bin/javac  
gnu/crypto/jce/hash/RipeMD128Spi.java 
./gnu/crypto/sasl/plain/PlainClient.java:60: 
getNegotiatedProperty(java.lang.String) in gnu.crypto.sasl.ClientMechanism 
cannot implement getNegotiatedProperty(java.lang.String) in 
javax.security.sasl.SaslClient; overridden method does not throw 
javax.security.sasl.SaslException 
public class PlainClient extends ClientMechanism implements SaslClient { 
       ^ 
./gnu/crypto/sasl/srp/SRPClient.java:88: 
getNegotiatedProperty(java.lang.String) in gnu.crypto.sasl.ClientMechanism 
cannot implement getNegotiatedProperty(java.lang.String) in 
javax.security.sasl.SaslClient; overridden method does not throw 
javax.security.sasl.SaslException 
public class SRPClient extends ClientMechanism implements SaslClient { 
       ^ 
./gnu/crypto/sasl/anonymous/AnonymousServer.java:60: 
getNegotiatedProperty(java.lang.String) in gnu.crypto.sasl.ServerMechanism 
cannot implement getNegotiatedProperty(java.lang.String) in 
javax.security.sasl.SaslServer; overridden method does not throw 
javax.security.sasl.SaslException 
public class AnonymousServer extends ServerMechanism implements SaslServer { 
       ^ 
./gnu/crypto/sasl/crammd5/CramMD5Server.java:67: 
getNegotiatedProperty(java.lang.String) in gnu.crypto.sasl.ServerMechanism 
cannot implement getNegotiatedProperty(java.lang.String) in 
javax.security.sasl.SaslServer; overridden method does not throw 
javax.security.sasl.SaslException 
public class CramMD5Server extends ServerMechanism implements SaslServer { 
       ^ 
./gnu/crypto/sasl/plain/PlainServer.java:66: 
getNegotiatedProperty(java.lang.String) in gnu.crypto.sasl.ServerMechanism 
cannot implement getNegotiatedProperty(java.lang.String) in 
javax.security.sasl.SaslServer; overridden method does not throw 
javax.security.sasl.SaslException 
public class PlainServer extends ServerMechanism implements SaslServer { 
       ^ 
./gnu/crypto/sasl/srp/SRPServer.java:82: 
getNegotiatedProperty(java.lang.String) in gnu.crypto.sasl.ServerMechanism 
cannot implement getNegotiatedProperty(java.lang.String) in 
javax.security.sasl.SaslServer; overridden method does not throw 
javax.security.sasl.SaslException 
public class SRPServer extends ServerMechanism implements SaslServer { 
       ^ 
CLASSPATH=.:/var/tmp/portage/gnu-crypto-2.0.1/work/gnu-crypto-2.0.1/jce/javax-crypto.jar:/var/tmp/portage/gnu-crypto-2.0.1/work/gnu-crypto-2.0.1/security/javax-security.jar /opt/sun-jdk-1.5.0.02/bin/javac  
gnu/crypto/jce/hash/RipeMD160Spi.java 
Note: Some input files use unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 
10 errors 
make[1]: *** [gnu/crypto/jce/GnuCrypto.class] Error 1 
make[1]: *** Waiting for unfinished jobs.... 
make[1]: Leaving directory 
`/var/tmp/portage/gnu-crypto-2.0.1/work/gnu-crypto-2.0.1/source' 
make: *** [all-recursive] Error 1 
 
!!! ERROR: dev-java/gnu-crypto-2.0.1 failed. 
!!! Function src_compile, Line 23, Exitcode 2 
!!! (no error message) 
!!! If you need support, post the topmost build error, NOT this status 
message. 
 
 

Expected Results:  
emerge successfully 
 

Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, 
glibc-2.3.4.20050125-r1, 2.6.10-gentoo-r6 i686) 
================================================================= 
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz 
Gentoo Base System version 1.4.16 
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 
10:14:11)] 
dev-lang/python:     2.3.4-r1 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 
sys-devel/binutils:  2.15.92.0.2-r1 
sys-devel/libtool:   1.5.10-r4 
virtual/os-headers:  2.6.8.1-r2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" 
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ 
http://mirror.datapipe.net/gentoo  http://gentoo.mirrors.pair.com/ 
http://mirror.datapipe.net/gentoo" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 3dnow X alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts 
cdr crypt curl doc dvd emboss encode esd fam flac font-server foomaticdb 
fortran freetds gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib java 
javamail jikes jpeg junit kde kerberos ldap libg++ libwww lm_sensors mad 
mikmod mmx motif mozilla mp3 mpeg mysql ncurses nntp oggvorbis opengl oss pam 
pdflib perl png python qt quicktime readline real ruby samba sdl slang snmp 
spell sqlite sse ssl svga tcpd tetex theora tiff truetype truetype-fonts 
type1-fonts xinerama xml2 xmms xscreensaver xv zlib" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-30 13:57:03 UTC

*** This bug has been marked as a duplicate of 79206 ***