From owner-freebsd-java@FreeBSD.ORG Tue Jun 29 05:34:08 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C85616A4CE for ; Tue, 29 Jun 2004 05:34:08 +0000 (GMT) Received: from mgr2.xmission.com (mgr2.xmission.com [198.60.22.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 754DC43D31 for ; Tue, 29 Jun 2004 05:34:07 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from [198.60.22.209] (helo=mgr9.xmission.com) by mgr2.xmission.com with esmtp (Exim 3.35 #1) id 1BfBFs-0001Ql-02; Mon, 28 Jun 2004 23:34:04 -0600 Received: from [166.70.56.15] (helo=misty.eyesbeyond.com) by mgr9.xmission.com with esmtp (Exim 4.32) id 1BfBFs-000554-Q6; Mon, 28 Jun 2004 23:34:04 -0600 Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) i5T5Y2v5016351; Mon, 28 Jun 2004 23:34:03 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.12.11/8.12.11/Submit) id i5T5Y1C5016350; Mon, 28 Jun 2004 23:34:01 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Mon, 28 Jun 2004 23:34:01 -0600 From: Greg Lewis To: Ethan Killian Message-ID: <20040629053401.GA16198@misty.eyesbeyond.com> References: <40CFFE0F.6040403@noc.ntua.gr> <20040616171610.3ad2fde7.nork@FreeBSD.org> <40D982A5.8050701@noc.ntua.gr> <40DE0929.6040509@noc.ntua.gr> <20040628102239.GF66588@anyware12.anyware> <40E043FC.4090408@noc.ntua.gr> <40E0EEC7.1030507@hkfanatic.com> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <40E0EEC7.1030507@hkfanatic.com> User-Agent: Mutt/1.4.2.1i Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on mgr9.xmission.com X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=8.0 tests=BAYES_00 autolearn=no version=2.63 X-SA-Exim-Connect-IP: 166.70.56.15 X-SA-Exim-Mail-From: glewis@eyesbeyond.com X-SA-Exim-Version: 4.0 (built Sat, 24 Apr 2004 12:31:30 +0200) X-SA-Exim-Scanned: Yes (on mgr9.xmission.com) cc: java@freebsd.org cc: Panagiotis Astithas Subject: Re: An alternative Eclipse 3 port X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 05:34:08 -0000 On Mon, Jun 28, 2004 at 10:23:35PM -0600, Ethan Killian wrote: > Nice job on the Motif port, I got it compiled after I added the > gcj/libgcj-config.h file to my build path. I am pretty sure my gcj > libraries are where they installed to on my FreeBSD 5.2.1 RELENG system > by default, I don't normally use gcj. Note, this is JUST for the Motif > port, the GTK version compiles and works nicely. This is the wrong "fix" and only makes things more broken. > Here is the errors I get: > ----------------------------------------------------------------------- > Building FreeBSD version of KDE DLL. > g++ -fno-rtti -c -O -I/usr/local/include -I/usr/X11R6/include > -I/usr/local/jdk1.4.2/include -I/usr/local/jdk1.4.2/include/bsd > -I/usr/local/jdk1.4.2/include/freebsd -o kde.o kde.cc > In file included from swt.h:23, > from kde.cc:21: > /usr/local/include/jni.h:17:31: gcj/libgcj-config.h: No such file or directory This is your problem. No, not that it can't find gcj/libgcj-config.h. The problem is that its including the wrong jni.h. It should be getting it from /usr/local/jdk1.4.2/include/ but instead its getting it from /usr/local/include due to the order of the -I flags in the compilation line above. The correct fix is to reorder the -I flags so that the correct jni.h header is found. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org