The following update failed: ubi17mobile ~ # emerge -vpuD world These are the packages that I would merge, in order: Calculating world dependencies ...done! [ebuild U ] dev-java/log4j-1.2.9 [1.2.8-r1] -doc -javamail -jikes -jms -jmx -source 0 kB This is the build error ----------------------------------------------------------------------- build.jmx: [javac] Compiling 7 source files to /var/tmp/portage/log4j-1.2.9/work/logging-log4j-1.2.9/dist/classes [javac] /var/tmp/portage/log4j-1.2.9/work/logging-log4j-1.2.9/src/java/org/apache/log4j/jmx/Agent.java:7: package com.sun.jdmk.comm does not exist [javac] import com.sun.jdmk.comm.HtmlAdaptorServer; [javac] ^ [javac] /var/tmp/portage/log4j-1.2.9/work/logging-log4j-1.2.9/src/java/org/apache/log4j/jmx/Agent.java:24: cannot find symbol [javac] symbol : class HtmlAdaptorServer [javac] location: class org.apache.log4j.jmx.Agent [javac] HtmlAdaptorServer html = new HtmlAdaptorServer(); [javac] ^ [javac] /var/tmp/portage/log4j-1.2.9/work/logging-log4j-1.2.9/src/java/org/apache/log4j/jmx/Agent.java:24: cannot find symbol [javac] symbol : class HtmlAdaptorServer [javac] location: class org.apache.log4j.jmx.Agent [javac] HtmlAdaptorServer html = new HtmlAdaptorServer(); [javac] ^ [javac] /var/tmp/portage/log4j-1.2.9/work/logging-log4j-1.2.9/src/java/org/apache/log4j/jmx/AppenderDynamicMBean.java:233: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] cast to java.lang.Object for a varargs call [javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning [javac] return mu.readMethod.invoke(appender, null); [javac] ^ [javac] /var/tmp/portage/log4j-1.2.9/work/logging-log4j-1.2.9/src/java/org/apache/log4j/jmx/LayoutDynamicMBean.java:180: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] cast to java.lang.Object for a varargs call [javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning [javac] return mu.readMethod.invoke(layout, null); [javac] ^ [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 3 errors [javac] 2 warnings BUILD FAILED /var/tmp/portage/log4j-1.2.9/work/logging-log4j-1.2.9/build.xml:261: Compile failed; see the compiler error output for details. Reproducible: Always Steps to Reproduce: 1.# emerge dev-java/log4j Calculating dependencies ...done! >>> emerge (1 of 1) dev-java/log4j-1.2.9 to / ... Actual Results: !!! ERROR: dev-java/log4j-1.2.9 failed. !!! Function src_compile, Line 41, Exitcode 1 !!! compilation error Expected Results: you know ;-)
you are using 1.5 ?
(In reply to comment #1) > you are using 1.5 ? Yes! # java-config -L [sun-jre-bin-1.5.0.02] "Sun JRE 1.5.0.02" (/etc/env.d/java/20sun-jre-bin-1.5.0.02) [sun-jre-bin-1.4.2.08] "Sun JRE 1.4.2.08" (/etc/env.d/java/20sun-jre-bin-1.4.2.08) [sun-jdk-1.4.2.08] "Sun JDK 1.4.2.08" (/etc/env.d/java/20sun-jdk-1.4.2.08) [sun-jdk-1.5.0.04] "Sun JDK 1.5.0.04" (/etc/env.d/java/20sun-jdk-1.5.0.04) *
1.5 is package.masked
This should be a dup of bug #79206, where I just proposed a patch that made log4j-1.2.11 work for me.