Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#3824 closed defect (fixed)

Ant build failed with OpenJDK-bin, x86_64

Reported by: thomas Owned by: blfs-book@…
Priority: normal Milestone:
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

Hi,

i have installed only the binary package of OpenJDK on a fresh LFS-7.3. Than I tried to build ant, but it fails with

... Bootstrapping Ant Distribution
... Compiling Ant Classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
... Copying Required Files
... Building Ant Distribution
Buildfile: /tmp/build/apache-ant-1.8.4/build.xml

bootstrap:

prepare:
Caught an exception while logging the end of the build.  Exception was:
java.lang.NoClassDefFoundError: Could not initialize class sun.util.calendar.ZoneInfoFile
        at sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:663)
        at java.util.TimeZone.getTimeZone(TimeZone.java:560)
        at java.util.TimeZone.setDefaultZone(TimeZone.java:657)
        at java.util.TimeZone.getDefaultRef(TimeZone.java:624)
        at java.util.TimeZone.getDefault(TimeZone.java:611)
        at java.text.SimpleDateFormat.initializeCalendar(SimpleDateFormat.java:682)
        at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:581)
        at org.apache.tools.ant.util.DateUtils.<clinit>(DateUtils.java:69)
        at org.apache.tools.ant.DefaultLogger.formatTime(DefaultLogger.java:330)
        at org.apache.tools.ant.DefaultLogger.buildFinished(DefaultLogger.java:177)
        at org.apache.tools.ant.Project.fireBuildFinished(Project.java:2093)
        at org.apache.tools.ant.Main.runBuild(Main.java:832)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.Main.start(Main.java:180)
        at org.apache.tools.ant.Main.main(Main.java:268)
There has been an error prior to that:
/tmp/build/apache-ant-1.8.4/build.xml:1070: The following error occurred while executing this line:
/tmp/build/apache-ant-1.8.4/build.xml:542: java.lang.UnsatisfiedLinkError: /usr/lib/OpenJDK-1.7.0.9-x86_64-bin/jre/lib/amd64/libnio.so: libgio-2.0.so.0: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
...
(some more lines of error message comes - but nothing new there)

The cause for that fail is a missing libgio-2.0.so.0 (probably installed by glib).

I'd recommend to add glib as a required dependency for OpenJDK-bin too. When building the source, it is required anyhow as a dependency of gtk/atk.

Change History (2)

comment:1 by Armin K, 11 years ago

Resolution: fixed
Status: newclosed

Fixed in r11124

comment:2 by bdubbs@…, 10 years ago

Milestone: current

Milestone current deleted

Note: See TracTickets for help on using tickets.