| Summary: | Can't emerge log4j with sun-jdk-1.5.0 regardless of USE-flags | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Claes Mogren <cm> |
| Component: | New packages | Assignee: | Java team <java> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | 2004.3 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Claes Mogren
2004-12-12 06:05:22 UTC
Not all stuff does work with Java 5, yet. That's, why this package is hard masked. I tried with sun-jdk-1.4.05 too, but that didn't work either. But after I unmerged dev-java/ant, dev-java/ant-core and dev-java/ant-tasks I could emerge ant-core and then log4j with 1.4. But then ant-tasks fails instead on this: . . BUILD SUCCESSFUL Total time: 13 seconds ... Cleaning Up Build Directories ... Done Bootstrapping Ant Distribution Buildfile: build.xml prepare: check_for_optional_packages: BUILD FAILED java.lang.UnsupportedClassVersionError: org/apache/commons/logging/LogFactory (Unsupported major.minor version 49.0) Total time: 2 seconds !!! ERROR: dev-java/ant-tasks-1.6.2-r5 failed. !!! Function src_compile, Line 68, Exitcode 1 !!! build failed That was with the standard emerge. To get around that I set the nocommonslogging USE-flag, but instead go this: BUILD FAILED java.lang.UnsupportedClassVersionError: com/jcraft/jsch/Session (Unsupported major.minor version 49.0) Finally, after adding the nojsch flag it compiled. Guess it had something to do with those tools being compiled with java-1.5. Anyway, finally got ant back in. :') At the present time, you can not expect your system to work if you compile packages with the JDK 1.5 and back down to JDK 1.4 afterwards. By default, the JDK 1.5 creates .class files that will only run on 1.5 and newer. This is what bites you. Recompile all packages you compiled with 1.5. We are gradually adding 1.5 support to all packages, see #69970. Thanks for the info! Bug 69970 looks like a good way to deal with this. :) |