Community
Participate
Working Groups
Created attachment 172281 [details] build_20100620004240.log I tried the latest e36-branch on Ubuntu 10.04, but it fails to build (full log attached): [exec] cc -g -s -Wall -fpic -DLINUX -DMOZILLA_FIX -DDEFAULT_OS="\"linux\"" -DDEFAULT_OS_ARCH="\"x86_64\"" -DDEFAULT_WS="\"gtk\"" -DDEFAULT_JAVA_EXEC -DGTK_LIB="\"libgtk-x11-2.0.so.0\"" -DGDK_LIB="\"libgdk-x11-2.0.so.0\"" -DPIXBUF_LIB="\"libgdk_pixbuf-2.0.so.0\"" -DGOBJ_LIB="\"libgobject-2.0.so.0\"" -DX11_LIB="\"libX11.so.6\"" -I. -I.. -I/include -I/include/linux `pkg-config --cflags gtk+-2.0` -c ../eclipseConfig.c -o eclipseConfig.o [exec] In file included from ../eclipseOS.h:16, [exec] from ../eclipseConfig.c:12: [exec] ../eclipseJNI.h:15:17: error: jni.h: No such file or directory [exec] In file included from ../eclipseOS.h:16, [exec] from ../eclipseConfig.c:12: [exec] ../eclipseJNI.h:23: error: expected ‘)’ before ‘*’ token [exec] ../eclipseJNI.h:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ [exec] ../eclipseJNI.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ [exec] ../eclipseJNI.h:53: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ [exec] ../eclipseJNI.h:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jlong’ [exec] ../eclipseJNI.h:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ [exec] ../eclipseJNI.h:71: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ [exec] In file included from ../eclipseConfig.c:12: [exec] ../eclipseOS.h:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘getSplashHandle’ [exec] make: *** [eclipseConfig.o] Fehler 1
Did you define JAVA_HOME?
I added following line to build.sh before execution: export JAVA_HOME=/usr/lib/jvm/default-java
The problem is due to JAVA_HOME not resolving properly when building the launcher. See this "-I/include -I/include/linux" section? That should be "<whatever JAVA_HOME resolves to>/include".
Created attachment 172454 [details] java-home.patch The problem is caused by features/org.eclipse.equinox.executable/library/gtk/build.sh that overwrote the exported JAVA_HOME. I filed bug 317634 against Equinox. The attached patch is for eclipse-build (e3.6 branch).
Thanks for the patch. Applied in r25178.