Bug 684520

Summary: FTBFS - using deprecated API
Product: Red Hat Enterprise Linux 6 Reporter: Zenon Panoussis <redhatbugs>
Component: avalon-logkitAssignee: Alexander Kurtakov <akurtako>
Status: CLOSED WONTFIX QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-05 20:43:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Zenon Panoussis 2011-03-13 10:07:17 UTC
Building from SRPM fails:

avalon-site-warn:
     [echo] ******************************************************
     [echo] *
     [echo] *  The avalon-site CVS module is not available.
     [echo] *  Without it, you cannot build the documentation
     [echo] *  from source.
     [echo] *
     [echo] *  Recovery:
     [echo] *  Set the avalon-site.dir property in either
     [echo] *  ant.properties or /root/.ant.properties to
     [echo] *  point at your cvs checkout of avalon-site, or run
     [echo] *  the build target import-avalon-site and it will
     [echo] *  check out the required parts of avalon-site into the
     [echo] *  parent directory.
     [echo] *
     [echo] *  In order to not let the build fail completely, I'll
     [echo] *  created a directory ../avalon-site/lib.
     [echo] *
     [echo] ******************************************************
     [echo] 
    [mkdir] Created dir: /root/rpmbuild/BUILD/avalon-site/lib

optional-warnings:

compile:
    [mkdir] Created dir: /root/rpmbuild/BUILD/LogKit-1.2/build
    [mkdir] Created dir: /root/rpmbuild/BUILD/LogKit-1.2/build/classes
    [javac] Compiling 79 source files to /root/rpmbuild/BUILD/LogKit-1.2/build/classes
    [javac] /root/rpmbuild/BUILD/LogKit-1.2/src/java/org/apache/log/ContextMap.java:71: warning: unmappable character for encoding ASCII
    [javac]  * <li>caller ? ?-&gt;com.biz.MyCaller.method(MyCaller.java:18)</li>
    [javac]               ^
    [javac] /root/rpmbuild/BUILD/LogKit-1.2/src/java/org/apache/log/ContextMap.java:71: warning: unmappable character for encoding ASCII
    [javac]  * <li>caller ? ?-&gt;com.biz.MyCaller.method(MyCaller.java:18)</li>
    [javac]                 ^
    [javac] /root/rpmbuild/BUILD/LogKit-1.2/src/java/org/apache/log/ContextMap.java:72: warning: unmappable character for encoding ASCII
    [javac]  * <li>source ? ?-&gt;1.6.3.2:33</li>
    [javac]               ^
    [javac] /root/rpmbuild/BUILD/LogKit-1.2/src/java/org/apache/log/ContextMap.java:72: warning: unmappable character for encoding ASCII
    [javac]  * <li>source ? ?-&gt;1.6.3.2:33</li>
    [javac]                 ^
    [javac] /root/rpmbuild/BUILD/LogKit-1.2/src/java/org/apache/log/Logger.java:336: warning: unmappable character for encoding ASCII
    [javac]      * Determine if messages of priority ?will be logged.
    [javac]                                          ^
    [javac] /root/rpmbuild/BUILD/LogKit-1.2/src/java/org/apache/log/output/db/DefaultDataSource.java:69: org.apache.log.output.db.DefaultDataSource is not abstract and does not override abstract method isWrapperFor(java.lang.Class<?>) in java.sql.Wrapper
    [javac] public class DefaultDataSource
    [javac]        ^
    [javac] /root/rpmbuild/BUILD/LogKit-1.2/src/compat/org/apache/log/format/ExceptionUtil.java:234: 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 (Throwable)method.invoke( throwable, null );
    [javac]                                                             ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error
    [javac] 6 warnings

BUILD FAILED
/root/rpmbuild/BUILD/LogKit-1.2/build.xml:330: Compile failed; see the compiler error output for details.

Total time: 8 seconds
error: Bad exit status from /var/tmp/rpm-tmp.zk9L9I (%build)
===

The internet suggests that it might build under an older java.

Comment 2 RHEL Program Management 2011-03-13 10:37:38 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 3 Alexander Kurtakov 2011-04-14 16:38:54 UTC
It builds with java 1.5 only as it was done. Please use gcj for the  builds as we have done.

Comment 4 Alexander Kurtakov 2011-12-05 20:43:24 UTC
The package builds just fine with gcj which is perfectly available in RHEL 6.
Closing.