diff options
author | Amy Fong <amy.fong@windriver.com> | 2015-04-16 14:04:02 -0400 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2016-01-04 09:21:06 -0200 |
commit | e3ac9836ab585c0b4134c7c0857cc275c403ad32 (patch) | |
tree | 9ed488b8d1a2ecba85a9d4400f5519e5890eb39e /recipes-core/icedtea/openjdk-7-release-03b147.inc | |
parent | 278c9b5530a22bb3646cbe5883b9ae857da70dff (diff) | |
download | meta-java-e3ac9836ab585c0b4134c7c0857cc275c403ad32.tar.gz |
icedtea7-native compile failure undefined reference to `main'
On hosts without /usr/include/X11/extensions, icedtea7-native compile
results in a build failure while trying to create an object file:
+/data/home/.../git/csu/../sysdeps/x86_64/start.S:118: undefined reference to `main'
[2015-03-31 15:22:53.115930161+00:00] | collect2: error: ld returned 1 exit status
The compile line shows: (-c gets eaten)
... -I -c -o
The makefile tries to do the following which results in a faulty build
line if /usr/include/X11/extensions doesn't exist:
CPPFLAGS += -I$(firstword $(wildcard $(OPENWIN_HOME)/include/X11/extensions) \
$(wildcard /usr/include/X11/extensions))
This looks like a missed line from the following patch which removes
the need for X11/extensions:
icedtea-ecj-disable-compilation.patch
Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Diffstat (limited to 'recipes-core/icedtea/openjdk-7-release-03b147.inc')
-rw-r--r-- | recipes-core/icedtea/openjdk-7-release-03b147.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes-core/icedtea/openjdk-7-release-03b147.inc b/recipes-core/icedtea/openjdk-7-release-03b147.inc index b1cf6e9..dbdc045 100644 --- a/recipes-core/icedtea/openjdk-7-release-03b147.inc +++ b/recipes-core/icedtea/openjdk-7-release-03b147.inc | |||
@@ -85,6 +85,7 @@ OPENJDK_PATCHES = " \ | |||
85 | file://icedtea-disable-x11-in-headless.patch;apply=no \ | 85 | file://icedtea-disable-x11-in-headless.patch;apply=no \ |
86 | file://icedtea-disable-sun.applet-for-tools-in-headless.patch;apply=no \ | 86 | file://icedtea-disable-sun.applet-for-tools-in-headless.patch;apply=no \ |
87 | file://icedtea-hotspot-fix-undefined-behaviour.patch;apply=no \ | 87 | file://icedtea-hotspot-fix-undefined-behaviour.patch;apply=no \ |
88 | file://icedtea-x11_extension_cleanup.patch;apply=no \ | ||
88 | " | 89 | " |
89 | 90 | ||
90 | OPENJDK_HEADLESS_PATCHES = " \ | 91 | OPENJDK_HEADLESS_PATCHES = " \ |
@@ -104,5 +105,6 @@ export DISTRIBUTION_PATCHES = " \ | |||
104 | patches/icedtea-openjdk-remove-currency-data-generation-expi.patch \ | 105 | patches/icedtea-openjdk-remove-currency-data-generation-expi.patch \ |
105 | patches/icedtea-change-to-gdb-debug-format.patch \ | 106 | patches/icedtea-change-to-gdb-debug-format.patch \ |
106 | patches/icedtea-hotspot-fix-undefined-behaviour.patch \ | 107 | patches/icedtea-hotspot-fix-undefined-behaviour.patch \ |
108 | patches/icedtea-x11_extension_cleanup.patch \ | ||
107 | ${CLEAN_X11_DISTRIBUTION_PATCH} \ | 109 | ${CLEAN_X11_DISTRIBUTION_PATCH} \ |
108 | " | 110 | " |