Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Sep 2004 06:40:32 +0200
From:      "Lukas Razik" <lukas@razik.de>
To:        freebsd-java@freebsd.org
Cc:        brian.lamar@gmail.com
Subject:   Re: Eclipse Build Failure
Message-ID:  <167950317@web.de>

next in thread | raw e-mail | index | archive | help
> 
> 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
> <blamar at vt.edu>
> 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




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