* [meta-java] [PATCH] icedtea7-native fails on hosts without /usr/include/X11/extensions
@ 2015-04-14 19:20 Amy Fong
2015-04-14 19:37 ` Otavio Salvador
0 siblings, 1 reply; 2+ messages in thread
From: Amy Fong @ 2015-04-14 19:20 UTC (permalink / raw)
To: openembedded-core, amy.fong
From 4789a5dc622cc8537df28596a4beb66db4ba4774 Mon Sep 17 00:00:00 2001
From: Amy Fong <amy.fong@windriver.com>
Date: Tue, 14 Apr 2015 13:10:22 -0400
Subject: [PATCH] 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>
---
recipes-core/icedtea/icedtea7-native.inc | 2 ++
.../openjdk-7-03b147/headless_x11_cleanup.patch | 35 ++++++++++++++++++++++
2 files changed, 37 insertions(+)
create mode 100644 recipes-core/icedtea/openjdk-7-03b147/headless_x11_cleanup.patch
diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc
index 81e9b66..f555d70 100644
--- a/recipes-core/icedtea/icedtea7-native.inc
+++ b/recipes-core/icedtea/icedtea7-native.inc
@@ -30,6 +30,7 @@ SRC_URI = " \
SRC_URI += "file://icedtea-unzip.patch"
SRC_URI += "file://icedtea-unzip-phase2.patch;apply=no"
+SRC_URI += "file://headless_x11_cleanup.patch;apply=no"
S = "${WORKDIR}/${ICEDTEA}"
B = "${S}/build"
@@ -149,6 +150,7 @@ do_configure_append() {
oe_runmake patch-boot
cd ${S} && cat ${WORKDIR}/icedtea-unzip-phase2.patch | patch -p1
+ cd ${S} && cat ${WORKDIR}/headless_x11_cleanup.patch | patch -p1
}
EXTRA_OEMAKE = ' \
diff --git a/recipes-core/icedtea/openjdk-7-03b147/headless_x11_cleanup.patch b/recipes-core/icedtea/openjdk-7-03b147/headless_x11_cleanup.patch
new file mode 100644
index 0000000..5b3e650
--- /dev/null
+++ b/recipes-core/icedtea/openjdk-7-03b147/headless_x11_cleanup.patch
@@ -0,0 +1,35 @@
+---
+ build/openjdk-boot/jdk/make/sun/awt/mawt.gmk | 6 ------
+ build/openjdk/jdk/make/sun/awt/mawt.gmk | 6 ------
+ 2 files changed, 12 deletions(-)
+
+--- a/build/openjdk-boot/jdk/make/sun/awt/mawt.gmk
++++ b/build/openjdk-boot/jdk/make/sun/awt/mawt.gmk
+@@ -258,12 +258,6 @@
+ -I$(PLATFORM_SRC)/native/$(PKGDIR) \
+ $(EVENT_MODEL)
+
+-ifeq ($(PLATFORM), linux)
+- # Checking for the X11/extensions headers at the additional location
+- CPPFLAGS += -I$(firstword $(wildcard $(OPENWIN_HOME)/include/X11/extensions) \
+- $(wildcard /usr/include/X11/extensions))
+-endif
+-
+ ifeq ($(PLATFORM), solaris)
+ CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions
+ endif
+--- a/build/openjdk/jdk/make/sun/awt/mawt.gmk
++++ b/build/openjdk/jdk/make/sun/awt/mawt.gmk
+@@ -258,12 +258,6 @@
+ -I$(PLATFORM_SRC)/native/$(PKGDIR) \
+ $(EVENT_MODEL)
+
+-ifeq ($(PLATFORM), linux)
+- # Checking for the X11/extensions headers at the additional location
+- CPPFLAGS += -I$(firstword $(wildcard $(OPENWIN_HOME)/include/X11/extensions) \
+- $(wildcard /usr/include/X11/extensions))
+-endif
+-
+ ifeq ($(PLATFORM), solaris)
+ CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions
+ endif
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [meta-java] [PATCH] icedtea7-native fails on hosts without /usr/include/X11/extensions
2015-04-14 19:20 [meta-java] [PATCH] icedtea7-native fails on hosts without /usr/include/X11/extensions Amy Fong
@ 2015-04-14 19:37 ` Otavio Salvador
0 siblings, 0 replies; 2+ messages in thread
From: Otavio Salvador @ 2015-04-14 19:37 UTC (permalink / raw)
To: Amy Fong; +Cc: Patches and discussions about the oe-core layer
Hello Amy,
On Tue, Apr 14, 2015 at 4:20 PM, Amy Fong <amy.fong@windriver.com> wrote:
> From 4789a5dc622cc8537df28596a4beb66db4ba4774 Mon Sep 17 00:00:00 2001
> From: Amy Fong <amy.fong@windriver.com>
> Date: Tue, 14 Apr 2015 13:10:22 -0400
> Subject: [PATCH] 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>
The right mailing list for this is openembedded-devel, as described in
the README.
> ---
> recipes-core/icedtea/icedtea7-native.inc | 2 ++
> .../openjdk-7-03b147/headless_x11_cleanup.patch | 35 ++++++++++++++++++++++
> 2 files changed, 37 insertions(+)
> create mode 100644 recipes-core/icedtea/openjdk-7-03b147/headless_x11_cleanup.patch
>
> diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc
> index 81e9b66..f555d70 100644
> --- a/recipes-core/icedtea/icedtea7-native.inc
> +++ b/recipes-core/icedtea/icedtea7-native.inc
> @@ -30,6 +30,7 @@ SRC_URI = " \
>
> SRC_URI += "file://icedtea-unzip.patch"
> SRC_URI += "file://icedtea-unzip-phase2.patch;apply=no"
> +SRC_URI += "file://headless_x11_cleanup.patch;apply=no"
>
> S = "${WORKDIR}/${ICEDTEA}"
> B = "${S}/build"
> @@ -149,6 +150,7 @@ do_configure_append() {
> oe_runmake patch-boot
>
> cd ${S} && cat ${WORKDIR}/icedtea-unzip-phase2.patch | patch -p1
> + cd ${S} && cat ${WORKDIR}/headless_x11_cleanup.patch | patch -p1
> }
This should be done if X11 is not available.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-14 19:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-14 19:20 [meta-java] [PATCH] icedtea7-native fails on hosts without /usr/include/X11/extensions Amy Fong
2015-04-14 19:37 ` Otavio Salvador
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox