Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65978 - jikes does not compile jmx
Summary: jikes does not compile jmx
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-30 20:22 UTC by Brant Gurganus
Modified: 2004-10-12 12:29 UTC (History)
1 user (show)

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


Attachments
fixed ebuild file (jmx-1.2.1-r1.ebuild,1.34 KB, text/plain)
2004-10-08 14:58 UTC, Daniel Solano Gómez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brant Gurganus 2004-09-30 20:22:36 UTC
Jikes does not compile jmx.  Blackdown's javac does, however.

Reproducible: Always
Steps to Reproduce:
1. Use ~x86.
2. Emerge jmx with jikes in USE flags.
Actual Results:  
Build fails.

    [javac] Found 1 semantic error and issued 1 warning compiling
"/var/tmp/portage/jmx-1.2.1/work/jmx-1_2_1-src/src/jmxri/javax/management/timer/TimerAlarmClockNotification.java":

    [javac]     29.     extends javax.management.Notification {
    [javac]                           ^--------^
    [javac] *** Semantic Error: You need to modify your classpath, sourcepath,
bootclasspath, and/or extdirs setup. Jikes could not find package
"javax.management" in:
    [javac]                 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/ext/dnsns.jar
    [javac]                 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/ext/ldapsec.jar
   [javac]                 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/ext/localedata.jar
    [javac]                
/opt/blackdown-jdk-1.4.2_rc1/jre/lib/ext/sunjce_provider.jar
    [javac]                
/var/tmp/portage/jmx-1.2.1/work/jmx-1_2_1-src/build/classes
    [javac]                 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/rt.jar
    [javac]                 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/jce.jar
    [javac]                 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/jsse.jar
    [javac]                 /var/tmp/portage/jmx-1.2.1/work/jmx-1_2_1-src/src
    [javac]                 .



    [javac]     45.     public TimerAlarmClockNotification(TimerAlarmClock source) {
    [javac]                                                ^-------------^
    [javac] *** Semantic Warning: The type "TimerAlarmClock" is defined in the
file "Timer.java" but referenced in the file
"/var/tmp/portage/jmx-1.2.1/work/jmx-1_2_1-src/src/jmxri/javax/management/timer/TimerAlarmClockNotification.java".
It is recommended that it be redefined in "TimerAlarmClock.java".

BUILD FAILED
/var/tmp/portage/jmx-1.2.1/work/jmx-1_2_1-src/build.xml:49: Compile failed; see
the compiler error output for details.

Total time: 23 seconds

!!! ERROR: dev-java/jmx-1.2.1 failed.
!!! Function src_compile, Line 38, Exitcode 1
!!! compile problem
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
Build is successful.

Portage 2.0.51_rc7 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r0,
2.6.8-gentoo-r3 i686)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz
Gentoo Base System version 1.5.3
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4m -mtune=pentium4m -fomit-frame-pointer -pipe
-fprefetch-loop-arrays -ftracer -ffast-math -funit-at-a-time -fstack-protector
-mno-push-args -maccumulate-outgoing-args"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /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="-O3 -march=pentium4m -mtune=pentium4m -fomit-frame-pointer -pipe
-fprefetch-loop-arrays -ftracer -ffast-math -funit-at-a-time -fstack-protector
-mno-push-args -maccumulate-outgoing-args"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks fixpackages sandbox strict"
GENTOO_MIRRORS="ftp://gentoo.cs.rose-hulman.edu/linux/gentoo
http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo
http://gentoo.eliteitminds.com ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://gentoo.cs.rose-hulman.edu/portage"
USE="X X509 Xaw3d acl acpi alsa apache2 arts audiofile avi berkdb bidi
bitmap-fonts bonobo cdparanoia cdr chroot cjk crypt cups dga divx4linux doc dvd
dvdread edl encode esd expat extensions f77 flac foomaticdb gcj gdbm gif gnome
gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 icc imlib innodb ipv6 ithreads
java javamail jbig jikes jms jmx jpeg junit jython kde kerberos krb4 lcms ldap
lesstif libg++ libwww live lzo lzw-tiff mad mikmod mmap mmx mmx2 mng motif
mozilla moznocompose moznoirc moznomail mpeg mysql ncurses network nls nptl oav
objc odbc offensive oggvorbis opengl oss pam parse-clocks pcre pdflib perl
pg-hier pg-intdatetime pg-vacuumdelay pic png pnp postgres ppds pwdb python qt
quicktime readline rhino rtc samba sasl scanner sdl sftplogging skey slang slp
socks5 speex spell sse sse2 ssl stencil-buffer tcltk tcpd tetex theora threads
tiff truetype unicode usb vhosts wmf x86 xine xml xml2 xmms xprint xv xvid zlib"
Comment 1 Daniel Solano Gómez 2004-10-08 14:58:24 UTC
Created attachment 41395 [details]
fixed ebuild file

The reason why jikes doesn't like jmx is because the sources are actually in
'src/jmxri' instead of 'src' and 'src' is used as the base for the classpath. 
I have added a line which uses sed to fix the build.xml.  The result is that
jikes now loves jmx as much as javac.
Comment 2 Thomas Matthijs (RETIRED) gentoo-dev 2004-10-12 12:29:53 UTC
Thanks edded