Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100454 - dev-java/log4j-1.2.9 - BUILD FAILED
Summary: dev-java/log4j-1.2.9 - BUILD FAILED
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-27 04:18 UTC by Andreas
Modified: 2005-08-31 01:02 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 Andreas 2005-07-27 04:18:22 UTC
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 ;-)
Comment 1 Thomas Matthijs (RETIRED) gentoo-dev 2005-07-27 04:20:04 UTC
you are using 1.5 ?
Comment 2 Andreas 2005-07-27 15:45:15 UTC
(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) *
Comment 3 Thomas Matthijs (RETIRED) gentoo-dev 2005-07-27 16:02:49 UTC
1.5 is package.masked
Comment 4 Martin von Gagern 2005-08-31 01:02:25 UTC
This should be a dup of bug #79206, where I just proposed a patch that made
log4j-1.2.11 work for me.