[blfs-book] [BLFS Trac] #3824: Ant build failed with OpenJDK-bin, x86_64

BLFS Trac trac at linuxfromscratch.org
Tue Mar 5 07:42:02 PST 2013


#3824: Ant build failed with OpenJDK-bin, x86_64
--------------------+-------------------------
 Reporter:  thomas  |      Owner:  blfs-book@…
     Type:  defect  |     Status:  new
 Priority:  normal  |  Milestone:  current
Component:  BOOK    |    Version:  SVN
 Severity:  normal  |   Keywords:
--------------------+-------------------------
 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.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/3824>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch



More information about the blfs-book mailing list