Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149447 - www-servers/resin-3.0.21 build error
Summary: www-servers/resin-3.0.21 build error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-28 13:37 UTC by unlord
Modified: 2006-09-28 16:37 UTC (History)
1 user (show)

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


Attachments
resin-3.0.21_jdk-1.5-fix.patch (resin-3.0.21_jdk-1.5-fix.patch,68 bytes, patch)
2006-09-28 13:41 UTC, unlord
Details | Diff
resin-3.0.21_jdk-1.5-fix.patch (resin-3.0.21_jdk-1.5-fix.patch,341 bytes, patch)
2006-09-28 13:42 UTC, unlord
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description unlord 2006-09-28 13:37:02 UTC
Right now the resin-3.0.21.ebuild has the following RDEPEND:

RDEPEND=">=virtual/jdk-1.5
    >=dev-java/iso-relax-20050331"

If a 1.6 JDK is installed, it will try to compile resin with it, which will cause the following errors:


module:
    [mkdir] Created dir: /var/tmp/portage/resin-3.0.21/work/resin-3.0.21/modules/resin/classes
     [copy] Copying 58 files to /var/tmp/portage/resin-3.0.21/work/resin-3.0.21/modules/resin/classes
    [javac] Compiling 2692 source files to /var/tmp/portage/resin-3.0.21/work/resin-3.0.21/modules/resin/classes
    [javac] /var/tmp/portage/resin-3.0.21/work/resin-3.0.21/modules/resin/src/com/caucho/amber/query/ResultSetImpl.java:63: com.caucho.amber.query.ResultSetImpl is not abstract and does not override abstract method updateNClob(java.lang.String,java.io.Reader) in java.sql.ResultSet
    [javac] public class ResultSetImpl implements ResultSet {
    [javac]        ^
    [javac] /var/tmp/portage/resin-3.0.21/work/resin-3.0.21/modules/resin/src/com/caucho/amber/jdbc/AmberConnectionImpl.java:40: com.caucho.amber.jdbc.AmberConnectionImpl is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Object[]) in java.sql.Connection
    [javac] public class AmberConnectionImpl implements Connection {
    [javac]        ^
    [javac] /var/tmp/portage/resin-3.0.21/work/resin-3.0.21/modules/resin/src/com/caucho/amber/jdbc/AmberStatementImpl.java:36: com.caucho.amber.jdbc.AmberStatementImpl is not abstract and does not override abstract method isPoolable() in java.sql.Statement
    [javac] public class AmberStatementImpl implements java.sql.Statement {
    [javac]        ^
    [javac] /var/tmp/portage/resin-3.0.21/work/resin-3.0.21/modules/resin/src/com/caucho/db/jdbc/GeneratedKeysResultSet.java:56: com.caucho.db.jdbc.GeneratedKeysResultSet is not abstract and does not override abstract method updateNClob(java.lang.String,java.io.Reader) in java.sql.ResultSet
    [javac] public class GeneratedKeysResultSet extends AbstractResultSet {
    [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] 41 errors

BUILD FAILED
/var/tmp/portage/resin-3.0.21/work/resin-3.0.21/build.xml:206: The following error occurred while executing this line:
/var/tmp/portage/resin-3.0.21/work/resin-3.0.21/build.xml:265: Compile failed; see the compiler error output for details.

Total time: 2 minutes 29 seconds

!!! ERROR: www-servers/resin-3.0.21 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  resin-3.0.21.ebuild, line 67:   Called eant
  java-utils-2.eclass, line 1324:   Called die

!!! eant failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.0_beta95"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac"
and of course, the output of emerge --info


Clearly, this is caused by the newer 1.6 classes having additional abstract methods not implemented by resin.  The following change to the ebuild fixes this:


# diff /usr/portage/www-servers/resin/resin-3.0.21.ebuild resin-3.0.21.ebuild
16c16
< RDEPEND=">=virtual/jdk-1.5
---
> RDEPEND="=virtual/jdk-1.5*
Comment 1 unlord 2006-09-28 13:41:06 UTC
Created attachment 98333 [details, diff]
resin-3.0.21_jdk-1.5-fix.patch
Comment 2 unlord 2006-09-28 13:42:35 UTC
Created attachment 98334 [details, diff]
resin-3.0.21_jdk-1.5-fix.patch
Comment 3 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-09-28 15:36:19 UTC
Applied to 3.0.21
Comment 4 unlord 2006-09-28 16:37:13 UTC
Thanks, appreciate that.