Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146531 - dev-java/log4j-1.2.9 fails to "compile"
Summary: dev-java/log4j-1.2.9 fails to "compile"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-06 03:07 UTC by Heitzso
Modified: 2006-09-10 02:51 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 Heitzso 2006-09-06 03:07:26 UTC
javac that comes up from "javac -version" is javac 1.5.0_07
I'm trying to upgrade to 2006.1 as per directions.  
This log4j being picked up by emerge -eva world about 2 days into the rebuild.
What follows is emerge output for just log4j.  Let me know if you want additional info.

>>> checking logging-log4j-1.2.9.tar.gz ;-)
>>> Unpacking source...
>>> Unpacking logging-log4j-1.2.9.tar.gz to /var/tmp/portage/log4j-1.2.9/work
tar: A lone zero block at 17639
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/log4j-1.2.9/work/logging-log4j-1.2.9 ...
Buildfile: build.xml

init:

build.core:
    [mkdir] Created dir: /var/tmp/portage/log4j-1.2.9/work/logging-log4j-1.2.9/dist/classes
    [javac] Compiling 158 source files to /var/tmp/portage/log4j-1.2.9/work/logging-log4j-1.2.9/dist/classes

    [javac] Issued 1 semantic warning compiling "/var/tmp/portage/log4j-1.2.9/work/logging-log4j-1.2.9/src/java/org/apache/log4j/helpers/LogLog.java":

    [javac]     66.       key = OptionConverter.getSystemProperty(CONFIG_DEBUG_KEY, null);
    [javac]                                                       ^--------------^
    [javac] *** Semantic Warning: The variable "CONFIG_DEBUG_KEY" declared in type "org.apache.log4j.helpers.LogLog" has been deprecated.
...
    [javac] Found 1 semantic error compiling "/var/tmp/portage/log4j-1.2.9/work/logging-log4j-1.2.9/src/java/org/apache/log4j/DailyRollingFileAppender.java":

    [javac]    358. class RollingCalendar extends GregorianCalendar {
    [javac]               ^-------------^
    [javac] *** Semantic Error: The abstract method "int compareTo(java.lang.Object $1);", inherited from type "java.lang.Comparable", is not implemented in the non-abstract class "org.apache.log4j.RollingCalendar".

...
BUILD FAILED
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-06 03:32:59 UTC
Please post output of:
emerge --info
equery list java-config (you might need to emerge gentoolkit to have equery)
equery list sun-jdk
Comment 2 Heitzso 2006-09-06 05:36:19 UTC
Gentoo Base System version 1.12.4
Portage 2.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 AMD Athlon(tm) XP 2200+
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.1.3-r1, 2.2.3-r5, 2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.8.1-r1, 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/grass60/etc /usr/share/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X aac acpi apache2 avi berkdb bitmap-fonts clamav cli crypt ctype cups curl dba dbm dga divx4linux dlloader doc dri dv dvdr dvdread fame fits fortran gb gcj gd gdal gdbm geos gimpprint gml gnomedb gnuplot gnustep gphoto2 gpm grass imap ipv6 isdnlog jasper java javascript jikes libg++ lzo maildir matrox mjpeg mmx mmx2 mp4live ncurses nentwork nls nptl nptlonly ogdi ogg pam pcre perl php png ppds pppd proj python quicktime readline real reflection rtc sasl session snmp soap spl sse2 ssl tcpd theora transcode truetype-fonts type1-fonts udev unicode urandom usb v4l videos wavelan wxwindows xanim xmlrpc xorg xprint xv xvid xvmc zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_mga video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS

======
equery list java-config
 * installed packages
dev-java/java-config-1.2.11-r1

====
equery list sun-jdk

* installed packages

=========
equery list ibm-jdk-bin
 * installed packages
dev-java/ibm-jdk-bin-1.4.2.03
========
# which javac
/opt/jdk1.5.0_07/bin/javac
# which java
/opt/jdk1.5.0_07/bin/java
# java -version
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)

=====
/etc/portage/*keywords masking lines related to dev-java 
dev-java/gnu-classpath-inetlib ~x86
dev-java/gnu-javamail ~x86
dev-java/ibm-jdk-bin ~x86
dev-java/jessie ~x86
Comment 3 Heitzso 2006-09-06 05:58:14 UTC
I "fixed" by "emerge sun-jdk"
updating the shell env as recommended
then "emerge log4j"

gentoo's log4j has trouble w/ 1.5.x javac
and setting up env to javac w/ 1.4.2 
took care of it.
Comment 4 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-06 10:11:50 UTC
(In reply to comment #2)
> # which javac
> /opt/jdk1.5.0_07/bin/javac
> # which java
> /opt/jdk1.5.0_07/bin/java
> # java -version
> java version "1.5.0_07"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
> Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)

What's that? Sun's JDK installed by hand, outside of portage? Because I think no 1.5 jdk we have in portage would install here. Sorry, but we don't support such non-portage installs. As you can see they interfere with java packages build system.

Read this: http://www.gentoo.org/doc/en/java-old.xml

Comment 5 Petteri Räty (RETIRED) gentoo-dev 2006-09-10 02:51:56 UTC
(In reply to comment #4)
> What's that? Sun's JDK installed by hand, outside of portage? Because I think
> no 1.5 jdk we have in portage would install here. Sorry, but we don't support
> such non-portage installs. As you can see they interfere with java packages
> build system.
> 

Because of this closing as invalid. Please reopen if this is not the case.