Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170663 - dev-java/jline-0.9.91 fails to compile witch <1.5 jdk - missing package com.sun.jmx.snmp
Summary: dev-java/jline-0.9.91 fails to compile witch <1.5 jdk - missing package com.s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Java team
URL: http://sourceforge.net/tracker/index....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-12 22:19 UTC by Aaron Hagopian
Modified: 2007-03-13 15:05 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 Aaron Hagopian 2007-03-12 22:19:32 UTC
Tried to update jline on my system to version 0.9.9-r1 and the build failed

compile:
    [mkdir] Created dir: /var/tmp/portage/dev-java/jline-0.9.91/work/jline-0.9.91/src/target/classes
    [javac] Compiling 21 source files to /var/tmp/portage/dev-java/jline-0.9.91/work/jline-0.9.91/src/target/classes
    [javac] /var/tmp/portage/dev-java/jline-0.9.91/work/jline-0.9.91/src/src/main/java/jline/Terminal.java:11: package com.sun.jmx.snmp does not exist
    [javac] import com.sun.jmx.snmp.ThreadContext;
    [javac]                         ^
    [javac] /var/tmp/portage/dev-java/jline-0.9.91/work/jline-0.9.91/src/src/main/java/jline/ConsoleReader.java:670: warning: plainTextFlavor in java.awt.datatransfer.DataFlavor has been deprecated
    [javac]                     .getTransferData(DataFlavor.plainTextFlavor);
    [javac]                                                ^
    [javac] 1 error
    [javac] 1 warning

BUILD FAILED
/var/tmp/portage/dev-java/jline-0.9.91/work/jline-0.9.91/src/build.xml:52: Compile failed; see the compiler error output for details.


I then opened up that file: jline-0.9.91/src/src/main/java/jline/Terminal.java and noticed that the class being imported isn't even used in the file.  I deleted that line and it built fine.  Not sure if this is just missing a dependancy or what but its obviously not actually needed.


Reproducible: Always




Portage 2.1.2.2 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r6 x86_64 Intel(R) Pentium(R) D CPU 3.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 12 Mar 2007 14:00:08 +0000
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=nocona -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/nx"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acpi ads akode alsa amd64 arts artswrappersuid ati avahi bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli cracklib crypt cups dbus directfb dri dvd dvdr eds emboss encode esd fam ffmpeg firefox foomaticdb fortran gdbm gif gimpprint gphoto2 gpm gstreamer gtk gtk2 hal howl howl-compat iconv imlib ipod ipv6 isdnlog java jpeg kde kerberos ldap libg++ mad midi mikmod mp3 mpeg musicbrainz mysql ncurses nls nptl nptlonly nsplugin odbc ogg opengl oss pam pcre pdf perl png ppds pppd python qt qt3 qt4 quicktime rdesktop readline reflection ruby samba sasl sdl session spell spl sql ssl subversion tcpd tiff truetype truetype-fonts type1-fonts unicode usb visualization vorbis winbind xinerama xml xorg xv zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vga vesa r300"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-03-12 22:47:02 UTC
You should have posted the complete error, including the important information about GENTOO_VM, COMPILER etc that it produces when it fails.
Comment 2 Aaron Hagopian 2007-03-13 14:00:29 UTC
ok here it is:

!!! ERROR: dev-java/jline-0.9.91 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4631:   Called src_compile
  jline-0.9.91.ebuild, line 48:   Called eant 'package' '-Dmaven.build.finalName=jline-0.9.91'
  java-utils-2.eclass, line 1694:   Called die

!!! eant failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-java/jline-0.9.91/temp/build.log'.

!!! When you file a bug report, please include the following information:
GENTOO_VM=blackdown-jdk-1.4.2  CLASSPATH="" JAVA_HOME="/opt/blackdown-jdk-1.4.2.03"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
and of course, the output of emerge --info
Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-03-13 15:01:48 UTC
OK, did a little research about the package com.sun.jmx.snmp
- ibm/sun/blackdown jdk 1.4 doesn't have it
- ibm and sun jdk 1.5 has it (assuming 1.6 has it too) 
- so it's not sun-specific but 1.5+ specific
- it's not part of dev-java/sun-jmx (and there's no newer version than we package, nor it's part of jmx-remote we don't package)
- snmp seems to be covered by jsr174 where the reference implementation is sun jdk 1.5 and I didn't find any other

jline page says it needs 1.2+ jdk while this clearly contradicts it... not sure what a console input library needs snmp for

Comment 4 Aaron Hagopian 2007-03-13 15:05:27 UTC
(In reply to comment #3)
... not sure
> what a console input library needs snmp for

And as far as I can tell it doesn't since that package isn't actually used anywhere in the code, just that import statement but the class is seriously never used.  I think it was a bad commit by a developer or something.

Comment 5 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-03-13 15:05:40 UTC
Ah I see, it's imported but not used at all. Fixed in CVS via patch that removes the import and reported upstream. Thanks for reporting.