From owner-freebsd-current Sat Jul 13 2:53:14 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD59837B400 for ; Sat, 13 Jul 2002 02:52:57 -0700 (PDT) Received: from mx2.datanet.hu (mx2.datanet.hu [194.149.13.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5551943E65 for ; Sat, 13 Jul 2002 02:52:57 -0700 (PDT) (envelope-from sziszi@bsd.hu) Received: from fonix.adamsfamily.xx (nilus-155.adsl.datanet.hu [195.56.48.155]) by mx2.datanet.hu (DataNet) with ESMTP id 5EAE558C6 for ; Sat, 13 Jul 2002 11:52:55 +0200 (CEST) Received: from fonix.adamsfamily.xx (localhost [127.0.0.1]) by fonix.adamsfamily.xx (8.12.5/8.12.5) with ESMTP id g6D9r1F4055171 for ; Sat, 13 Jul 2002 11:53:01 +0200 (CEST) (envelope-from sziszi@bsd.hu) Received: (from cc@localhost) by fonix.adamsfamily.xx (8.12.5/8.12.5/Submit) id g6D9r0MX055170 for freebsd-current@FreeBSD.ORG; Sat, 13 Jul 2002 11:53:00 +0200 (CEST) X-Authentication-Warning: fonix.adamsfamily.xx: cc set sender to sziszi@bsd.hu using -f Date: Sat, 13 Jul 2002 11:53:00 +0200 From: Szilveszter Adam To: freebsd-current@FreeBSD.ORG Subject: Re: Problems with j2sdk_1.3.1 Message-ID: <20020713095300.GB805@fonix.adamsfamily.xx> Mail-Followup-To: Szilveszter Adam , freebsd-current@FreeBSD.ORG References: <20020713095903.T3579-100000@kwiatek.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020713095903.T3579-100000@kwiatek.eu.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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