From owner-freebsd-java@FreeBSD.ORG Tue Jun 29 06:54:03 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 2F99D16A4CE for ; Tue, 29 Jun 2004 06:54:03 +0000 (GMT) Received: from ulysses.noc.ntua.gr (ulysses.noc.ntua.gr [147.102.222.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 865ED43D1F for ; Tue, 29 Jun 2004 06:54:02 +0000 (GMT) (envelope-from past@noc.ntua.gr) Received: from ajax.noc.ntua.gr (ajax.noc.ntua.gr [147.102.220.1]) by ulysses.noc.ntua.gr (8.12.9p1/8.12.9) with ESMTP id i5T6roSi002423; Tue, 29 Jun 2004 09:53:50 +0300 (EEST) (envelope-from past@noc.ntua.gr) Received: from [147.102.220.45] (hal.noc.ntua.gr [147.102.220.45]) by ajax.noc.ntua.gr (8.12.11/8.12.11) with ESMTP id i5T6rosK094018; Tue, 29 Jun 2004 09:53:50 +0300 (EEST) (envelope-from past@noc.ntua.gr) Message-ID: <40E111FE.9080602@noc.ntua.gr> Date: Tue, 29 Jun 2004 09:53:50 +0300 From: Panagiotis Astithas Organization: NTUA/NMC User-Agent: Mozilla Thunderbird 0.6 (X11/20040609) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ethan Killian 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> <20040629053401.GA16198@misty.eyesbeyond.com> In-Reply-To: <20040629053401.GA16198@misty.eyesbeyond.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: java@freebsd.org 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 06:54:03 -0000 Greg Lewis wrote: > 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. Quite right, I haven't anticipated a gcj installation. I have made the necessary change to the port skeleton and I made a pass for anything similar. Let me know if this works for you. Cheers, -- Panagiotis Astithas Electrical & Computer Engineer, PhD Network Management Center National Technical University of Athens, Greece