Patchwork [1/1] glib-2.0: fix a compilation issue due to dtrace

login
register
mail settings
Submitter Nitin A Kamble
Date July 21, 2011, 11:09 a.m.
Message ID <eafb85c6bdc1904c6d99ae3fee97298fc5798f2b.1311246527.git.nitin.a.kamble@intel.com>
Download mbox | patch
Permalink /patch/8233/
State New, archived
Headers show

Comments

Nitin A Kamble - July 21, 2011, 11:09 a.m.
From: Nitin A Kamble <nitin.a.kamble@intel.com>

With multilib & x32 builds dtrace is getting turned-on by the glib-2.0
configure, which causes following compilation failure.

| x86_64-linux-libtool: link: ccache gcc
-isystem/disk0/pokybuild/build-multilib/tmp/sysroots/x86_64-linux/usr/include
-O2 -pipe -Wall -Wl,-rpath-link
-Wl,/disk0/pokybuild/build-multilib/tmp/sysroots/x86_64-linux/usr/lib
-Wl,-rpath
-Wl,/disk0/pokybuild/build-multilib/tmp/sysroots/x86_64-linux/usr/lib
-Wl,-O1 -o .libs/gtester gtester.o
-L/disk0/pokybuild/build-multilib/tmp/sysroots/x86_64-linux/usr/lib
./.libs/libglib-2.0.so -lrt -Wl,-rpath
-Wl,/disk0/pokybuild/build-multilib/tmp/sysroots/x86_64-linux/usr/lib
| ./.libs/libglib-2.0.so: undefined reference to `GLIB_SLICE_ALLOC'
| ./.libs/libglib-2.0.so: undefined reference to `GLIB_MEM_REALLOC'
| ./.libs/libglib-2.0.so: undefined reference to `GLIB_SLICE_FREE'
| ./.libs/libglib-2.0.so: undefined reference to `GLIB_MEM_ALLOC'
| ./.libs/libglib-2.0.so: undefined reference to `GLIB_MEM_FREE'
| ./.libs/libglib-2.0.so: undefined reference to `GLIB_QUARK_NEW'
| collect2: ld returned 1 exit status
| make[4]: *** [gtester] Error 1

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
---
 meta/recipes-core/glib-2.0/glib-2.0_2.27.5.bb |    2 +-
 meta/recipes-core/glib-2.0/glib-2.0_2.28.8.bb |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
Saul Wold - July 22, 2011, 7:22 a.m.
On 07/21/2011 04:09 AM, nitin.a.kamble@intel.com wrote:
> From: Nitin A Kamble<nitin.a.kamble@intel.com>
>
> With multilib&  x32 builds dtrace is getting turned-on by the glib-2.0
> configure, which causes following compilation failure.
>
> | x86_64-linux-libtool: link: ccache gcc
> -isystem/disk0/pokybuild/build-multilib/tmp/sysroots/x86_64-linux/usr/include
> -O2 -pipe -Wall -Wl,-rpath-link
> -Wl,/disk0/pokybuild/build-multilib/tmp/sysroots/x86_64-linux/usr/lib
> -Wl,-rpath
> -Wl,/disk0/pokybuild/build-multilib/tmp/sysroots/x86_64-linux/usr/lib
> -Wl,-O1 -o .libs/gtester gtester.o
> -L/disk0/pokybuild/build-multilib/tmp/sysroots/x86_64-linux/usr/lib
> ./.libs/libglib-2.0.so -lrt -Wl,-rpath
> -Wl,/disk0/pokybuild/build-multilib/tmp/sysroots/x86_64-linux/usr/lib
> | ./.libs/libglib-2.0.so: undefined reference to `GLIB_SLICE_ALLOC'
> | ./.libs/libglib-2.0.so: undefined reference to `GLIB_MEM_REALLOC'
> | ./.libs/libglib-2.0.so: undefined reference to `GLIB_SLICE_FREE'
> | ./.libs/libglib-2.0.so: undefined reference to `GLIB_MEM_ALLOC'
> | ./.libs/libglib-2.0.so: undefined reference to `GLIB_MEM_FREE'
> | ./.libs/libglib-2.0.so: undefined reference to `GLIB_QUARK_NEW'
> | collect2: ld returned 1 exit status
> | make[4]: *** [gtester] Error 1
>
> Signed-off-by: Nitin A Kamble<nitin.a.kamble@intel.com>
> ---
>   meta/recipes-core/glib-2.0/glib-2.0_2.27.5.bb |    2 +-
>   meta/recipes-core/glib-2.0/glib-2.0_2.28.8.bb |    3 ++-
>   2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.27.5.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.27.5.bb
> index 0b30d17..26fc8fb 100644
> --- a/meta/recipes-core/glib-2.0/glib-2.0_2.27.5.bb
> +++ b/meta/recipes-core/glib-2.0/glib-2.0_2.27.5.bb
> @@ -1,6 +1,6 @@
>   require glib.inc
>
> -PR = "r5"
> +PR = "r6"
>
Why do you bump the PR here?

Sau!

>   SRC_URI = "${GNOME_MIRROR}/glib/2.27/glib-${PV}.tar.bz2 \
>              file://configure-libtool.patch \
> diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.28.8.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.28.8.bb
> index a2e609f..dce6802 100644
> --- a/meta/recipes-core/glib-2.0/glib-2.0_2.28.8.bb
> +++ b/meta/recipes-core/glib-2.0/glib-2.0_2.28.8.bb
> @@ -1,6 +1,6 @@
>   require glib.inc
>
> -PR = "r2"
> +PR = "r3"
>   PE = "1"
>
>   SRC_URI = "${GNOME_MIRROR}/glib/2.28/glib-${PV}.tar.bz2 \
> @@ -20,3 +20,4 @@ SRC_URI[sha256sum] = "222f3055d6c413417b50901008c654865e5a311c73f0ae918b0a9978d1
>
>   BBCLASSEXTEND = "native"
>
> +EXTRA_OECONF_append = " --enable-dtrace=no"

Patch

diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.27.5.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.27.5.bb
index 0b30d17..26fc8fb 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.27.5.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.27.5.bb
@@ -1,6 +1,6 @@ 
 require glib.inc
 
-PR = "r5"
+PR = "r6"
 
 SRC_URI = "${GNOME_MIRROR}/glib/2.27/glib-${PV}.tar.bz2 \
            file://configure-libtool.patch \
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.28.8.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.28.8.bb
index a2e609f..dce6802 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.28.8.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.28.8.bb
@@ -1,6 +1,6 @@ 
 require glib.inc
 
-PR = "r2"
+PR = "r3"
 PE = "1"
 
 SRC_URI = "${GNOME_MIRROR}/glib/2.28/glib-${PV}.tar.bz2 \
@@ -20,3 +20,4 @@  SRC_URI[sha256sum] = "222f3055d6c413417b50901008c654865e5a311c73f0ae918b0a9978d1
 
 BBCLASSEXTEND = "native"
 
+EXTRA_OECONF_append = " --enable-dtrace=no"