Compiling java jdk15 on AMD64 FreeBSD 6.1

Pat Lashley patl+freebsd at volant.org
Mon Sep 11 11:45:12 PDT 2006



--On 6 September, 2006 10:50:59 -0500 Bruce Burden <brucegb at realtime.net> wrote:

>
> On Wed, Sep 06, 2006 at 07:44:22AM -0400, Dmitriy Fitisov wrote:
> > Hello everyone,
> > I may not compile java on FreeBSD 6.1 AMD64
> >
> > ...
>
>         Why are you (still) using linux_base-8 for you Linux
>    emulation? This is a very old, dated port.
>
>         I have JDK1.5 installed with linux_base-fc4 on AMD64, and
>    things seem to work. It did take a few tries on the compilation,
>    but in the end...

If you're trying to build the native jdk15, you don't actually have to use 
linux at all.  Install the amd64 version of the diablo-jdk15 port; then apply 
the following patch to java/jdk15/Makefile and build jdk15:

--- Makefile.dist    Tue Aug  1 14:38:25 2006
+++ Makefile      Wed Sep  6 09:31:08 2006
@@ -59,6 +59,8 @@
 .if !defined(WITH_LINUX_BOOTSTRAP)
 .if ${MACHINE_ARCH} == "i386"
 NATIVE_BOOTSTRAP_JDKS+=        ${LOCALBASE}/diablo-jdk1.5.0
+.elif ${MACHINE_ARCH} == "amd64"
+NATIVE_BOOTSTRAP_JDKS+=        ${LOCALBASE}/diablo-jdk1.5.0
 .endif
 NATIVE_BOOTSTRAP_JDKS+=        ${LOCALBASE}/jdk1.5.0 \
                        ${LOCALBASE}/jdk1.4.2


(That probably isn't the cleanest way to do that; but it's a simple 
copy-and-paste with a one-word replacement; which reduces the chances of 
introducing a typo. And it does allow for the possibility of [hopefully 
temporary] divergence between the amd64 and i386 version numbers on the diablo 
port.)


I haven't yet tested the result thoroughly; but it builds OK and seems to 
work...



-Pat


More information about the freebsd-java mailing list