[OE-core] [meta-java] [PATCH] icedtea7-native fails on hosts without /usr/include/X11/extensions

Otavio Salvador otavio at ossystems.com.br
Tue Apr 14 19:37:33 UTC 2015


Hello Amy,

On Tue, Apr 14, 2015 at 4:20 PM, Amy Fong <amy.fong at windriver.com> wrote:
> From 4789a5dc622cc8537df28596a4beb66db4ba4774 Mon Sep 17 00:00:00 2001
> From: Amy Fong <amy.fong at 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 at 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



More information about the Openembedded-core mailing list