Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jul 2002 11:53:00 +0200
From:      Szilveszter Adam <sziszi@bsd.hu>
To:        freebsd-current@FreeBSD.ORG
Subject:   Re: Problems with j2sdk_1.3.1
Message-ID:  <20020713095300.GB805@fonix.adamsfamily.xx>
In-Reply-To: <20020713095903.T3579-100000@kwiatek.eu.org>
References:  <20020713095903.T3579-100000@kwiatek.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

On Sat, Jul 13, 2002 at 10:00:43AM +0200, Andrzej Kwiatkowski wrote:
> When i try to compile Openoffice 1.0
> my instalation stops when compiling port jdk13
> My output looks like:

<...>

> -I../../../../src/solaris/javavm/export -I/usr/X11R6/include  -o
> ../../tmp/bsd/i386/GetFactory.o
> ../../oji-plugin/src/motif/common/GetFactory.cpp
> In file included from
> ../../oji-plugin/include/solaris/navig4/oji/nsIJVMPlugin.h:34,
>                  from
> ../../oji-plugin/src/motif/common/JavaPluginFactory.h:34,
>                  from ../../oji-plugin/src/motif/common/GetFactory.cpp:55:
> /usr/local/include/jni.h:17:31: gcj/libgcj-config.h: No such file or
> directory

<...>

> My gcc is 3.1 installed from ports:
> Reading specs from
> /usr/local/lib/gcc-lib/i386-portbld-freebsd5.0/3.1.1/specs
> Configured with: ./..//gcc-20020701/configure --disable-nls --with-gnu-as
> --with-gnu-ld
> --with-gxx-include-dir=/usr/local/lib/gcc-lib/i386-portbld-freebsd5.0/3.1.1/incl
> ude/g++
> --disable-libgcj --disable-shared --prefix=/usr/local
> i386-portbld-freebsd5.0
> Thread model: posix
> gcc version 3.1.1 20020701 (prerelease) [FreeBSD]

It seems that the compile gets confused, and wants to use "gcj" the GNU
Java compiler for compilation, but that one cannot work because there is
no libgcj yet (the comment in the Makefile says it does not bootstrap). 

This problem also appears with the new gettext port which also has some
Java components and the configure script detects gcj if it is installed
but does not notice that it is not useable.

The solution is to set JAVAC=javac in the environment before starting
the make. If you want to go for sure, you can give an exact path. If
needed, other Java tools may also be set similarly to the ones from the
JDK instead of GCC. (eg Javah comes to mind)

Hope this helps.
-- 
Regards:

Szilveszter ADAM
Szombathely Hungary

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020713095300.GB805>