Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jun 2004 09:53:50 +0300
From:      Panagiotis Astithas <past@noc.ntua.gr>
To:        Ethan Killian <ethan@hkfanatic.com>
Cc:        java@freebsd.org
Subject:   Re: An alternative Eclipse 3 port
Message-ID:  <40E111FE.9080602@noc.ntua.gr>
In-Reply-To: <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> <20040629053401.GA16198@misty.eyesbeyond.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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