Building OpenJDK on Fedora Core 6
jsumali at redhat.com
Thu Oct 11 08:00:03 PDT 2007
Roger Abelenda wrote:
> Hi there, i'm trying to build de openjdk vm with the j2se packages. I
> tried installing lesstif, openmotif and pointing de ALT_MOMTIF_DIR to
> the correct path where this libraries were installed, and no success.
> Even i tryied to make it with without specifing that variable to allow
> the openjdk to make it own libraries, but it niether works. What I get
> is the following:
> "make: *** No hay ninguna regla para construir el objetivo `includes'. Alto.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> In function `Java_java_awt_AWTEvent_nativeSetSource':
> awt_AWTEvent.c:(.text+0x228): undefined reference to `XtIsObject'
> awt_AWTEvent.c:(.text+0x23d): undefined reference to `XtWindowOfObject'
> In function `Java_sun_awt_motif_MButtonPeer_setLabel':
> awt_Button.c:(.text+0xff): undefined reference to `XtVaSetValues'
> In function `Java_sun_awt_motif_MButtonPeer_create':
> awt_Button.c:(.text+0x338): undefined reference to `XtStrings'
> awt_Button.c:(.text+0x34c): undefined reference to `XtVaGetValues'
> awt_Button.c:(.text+0x3cd): undefined reference to `XtStrings'
> awt_Button.c:(.text+0x4b5): undefined reference to `XtVaCreateManagedWidget'
> awt_Button.c:(.text+0x562): undefined reference to `XtStrings'
> awt_Button.c:(.text+0x63c): undefined reference to `XtVaCreateManagedWidget'
> awt_Button.c:(.text+0x674): undefined reference to `XtSetMappedWhenManaged'
> awt_Button.c:(.text+0x69c): undefined reference to `XtAddCallback'
> I'm trying to make it usign the following command:
> "make BUILD_DEPLOY=false BUILD_INSTALL=false BOOTDIR=/opt/jdk1.5.0_12
> I also tryied modifying the openjdk_default_profile.sh file as says in
> an older post. Has anyone an idea of what it could be? Or what can i
> do to make it work?
From the README-builds.html included in openjdk:
All OpenJDK builds require access to the previously released JDK 6,
this is often called a bootstrap JDK. The JDK 6 binaries can be
downloaded from Sun's JDK 6 download site
<http://java.sun.com/j2se/1.6.0/download.html>. For build
performance reasons is very important that this bootstrap JDK be
made available on the local disk of the machine doing the build. You
should always set ALT_BOOTDIR
<cid:part1.02080007.04020505 at redhat.com> to point to the location of
the bootstrap JDK installation, this is the directory pathname that
contains a bin, lib, and include It's also a good idea to also place
its bin directory in the PATH environment variable, although it's
So I think you might have to try using JDK6 instead of 5. Hope that helps.
More information about the build-dev