Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317372 - [eclipse-build] [debian] e36-branch fails to build on Ubuntu
Summary: [eclipse-build] [debian] e36-branch fails to build on Ubuntu
Status: RESOLVED FIXED
Alias: None
Product: Linux Tools
Classification: Tools
Component: eclipse-build (show other bugs)
Version: 0.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 0.6.1   Edit
Assignee: Packaging Tools Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-19 18:46 EDT by Benjamin Drung CLA
Modified: 2011-06-23 16:35 EDT (History)
1 user (show)

See Also:


Attachments
build_20100620004240.log (280.83 KB, text/x-log)
2010-06-19 18:46 EDT, Benjamin Drung CLA
no flags Details
java-home.patch (1.44 KB, patch)
2010-06-22 15:51 EDT, Benjamin Drung CLA
akurtakov: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Drung CLA 2010-06-19 18:46:59 EDT
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
Comment 1 Andrew Overholt CLA 2010-06-20 17:35:49 EDT
Did you define JAVA_HOME?
Comment 2 Benjamin Drung CLA 2010-06-20 18:39:41 EDT
I added following line to build.sh before execution:
export JAVA_HOME=/usr/lib/jvm/default-java
Comment 3 Andrew Overholt CLA 2010-06-21 09:58:25 EDT
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".
Comment 4 Benjamin Drung CLA 2010-06-22 15:51:29 EDT
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).
Comment 5 Alexander Kurtakov CLA 2010-07-05 12:27:24 EDT
Thanks for the patch. Applied in r25178.