From owner-freebsd-java@FreeBSD.ORG Thu Sep 9 04:40:40 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 E799A16A4CE for ; Thu, 9 Sep 2004 04:40:40 +0000 (GMT) Received: from fmmailgate03.web.de (fmmailgate03.web.de [217.72.192.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78C0743D54 for ; Thu, 9 Sep 2004 04:40:39 +0000 (GMT) (envelope-from lukas@razik.de) Received: by fmmailgate03.web.de (8.12.6/8.12.6/webde Linux 0.7) with SMTP id i894dQxe004615; Thu, 9 Sep 2004 06:40:38 +0200 Received: from 217.84.131.167 by freemailng5301.web.de with HTTP; Thu, 09 Sep 2004 06:40:32 +0200 Date: Thu, 09 Sep 2004 06:40:32 +0200 Message-Id: <167950317@web.de> MIME-Version: 1.0 From: "Lukas Razik" To: freebsd-java@freebsd.org Precedence: fm-user X-WEBDE-Sender: Organization: http://freemail.web.de/ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit cc: brian.lamar@gmail.com Subject: Re: Eclipse Build Failure X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2004 04:40:41 -0000 > > This is an example of trying to build the C++ IDE, but I get the exact > same error when building Eclipse from java/eclipse. > > > ===> Installing for eclipse-cdt-2.0 > ===> eclipse-cdt-2.0 depends on file: > /usr/local/eclipse/plugins/org.eclipse.swt.gtk_3.0.0/ws/gtk/swt.jar - > not found > ===> Verifying install for > /usr/local/eclipse/plugins/org.eclipse.swt.gtk_3.0.0/ws/gtk/swt.jar in > /usr/ports/java/eclipse > ===> Building for eclipse-3.0_1 > ===> Building libswt. > cd "plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library" && \ > /bin/sh ./build.sh && \ > /bin/cp *.so ../../../../org.eclipse.swt.gtk/os/freebsd/x86/ > gmake[1]: Entering directory > `/usr/ports/java/eclipse/work/plugins/org.eclipse.swt/Eclipse SWT > PI/gtk/library' > cc -O -Wall -DSWT_VERSION=3062 -DFREEBSD -DGTK > -I/usr/local/linux-sun-jdk1.4.2/include > -I/usr/local/linux-sun-jdk1.4.2/include/bsd > -I/usr/local/linux-sun-jdk1.4.2/include/freebsd > -I../../../Eclipse_SWT/common/library > -I../../../Eclipse_SWT_PI/gtk/library -I/usr/X11R6/include -fpic -c > swt.c > In file included from swt.h:23, > from swt.c:12: > /usr/local/linux-sun-jdk1.4.2/include/jni.h:27:20: jni_md.h: No such > file or directory > In file included from swt.h:23, > from swt.c:12: > /usr/local/linux-sun-jdk1.4.2/include/jni.h:45: error: syntax error > before "jsize" > /usr/local/linux-sun-jdk1.4.2/include/jni.h:45: warning: type defaults > to `int' in declaration of `jsize' > /usr/local/linux-sun-jdk1.4.2/include/jni.h:45: warning: data > definition has no type or storage class > /usr/local/linux-sun-jdk1.4.2/include/jni.h:104: error: syntax error > before "jbyte" > /usr/local/linux-sun-jdk1.4.2/include/jni.h:107: error: syntax error > before "jint" > /usr/local/linux-sun-jdk1.4.2/include/jni.h:193: error: syntax error > before "jint" > /usr/local/linux-sun-jdk1.4.2/include/jni.h:195: error: syntax error > before '*' token > /usr/local/linux-sun-jdk1.4.2/include/jni.h:198: error: syntax error > before '*' token > > SNIP: About 100 more syntax error before '*' token errors > > /usr/local/linux-sun-jdk1.4.2/include/jni.h:730: error: syntax error > before '*' token > /usr/local/linux-sun-jdk1.4.2/include/jni.h:732: error: syntax error > before '*' token > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1834: error: syntax error > before "jint" > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1842: error: syntax error > before "jint" > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1851: error: syntax error > before "jint" > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1854: error: syntax error > before "jint" > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1862: error: syntax error > before "jint" > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1863: error: syntax error > before '*' token > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1864: error: syntax error > before '*' token > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1871: error: syntax error > before "jint" > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1888: error: syntax error > before "jint" > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1927: error: syntax error > before "jint" > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1928: warning: type > defaults to `int' in declaration of `JNI_GetDefaultJavaVMInitArgs' > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1928: warning: data > definition has no type or storage class > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1930: error: syntax error > before "jint" > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1931: warning: type > defaults to `int' in declaration of `JNI_CreateJavaVM' > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1931: warning: data > definition has no type or storage class > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1933: error: syntax error > before "jint" > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1934: error: syntax error > before "jsize" > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1934: warning: type > defaults to `int' in declaration of `JNI_GetCreatedJavaVMs' > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1934: warning: data > definition has no type or storage class > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1937: error: syntax error > before "jint" > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1938: warning: type > defaults to `int' in declaration of `JNI_OnLoad' > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1938: warning: data > definition has no type or storage class > /usr/local/linux-sun-jdk1.4.2/include/jni.h:1940: error: syntax error > before "void" > swt.c:17: error: syntax error before "jint" > swt.c:17: warning: return type defaults to `int' > gmake[1]: *** [swt.o] Error 1 > gmake[1]: Leaving directory > `/usr/ports/java/eclipse/work/plugins/org.eclipse.swt/Eclipse SWT > PI/gtk/library' > gmake: *** [libswt] Error 2 > *** Error code 2 > > Stop in /usr/ports/java/eclipse. > *** Error code 1 > > Stop in /usr/ports/java/eclipse-cdt. > > > Thank you for any insight you can toss my way. > > _____________________ > Brian Lamar > > ACM at VT Assistant Sysadmin > I had the same problem while compiling openoffice-1.1 Change into "/usr/local/linux-sun-jdk1.4.2/include" and do the following: ln -s linux/jni_md.h . ln -s linux/jawt_md.h . Now try to build the project again... Good luck!!! Kind regards, Lukas