<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7077</bug_id>
          
          <creation_ts>2014-12-11 18:46:27 +0000</creation_ts>
          <short_desc>qemu-native build broken when system glib&gt;=2.41 (archlinux, fedora 21, ...)</short_desc>
          <delta_ts>2014-12-30 12:53:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Tollerton">rich.tollerton</reporter>
          <assigned_to name="Cristian Iorga">cristian.iorga</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47522</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Tollerton">rich.tollerton</who>
    <bug_when>2014-12-11 18:46:27 +0000</bug_when>
    <thetext>qemu-native builds tend to fail with this error:

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib/libgtk-x11-2.0.so: undefined reference to `g_type_check_instance_is_fundamentally_a&apos;

Note that gtk is disabled in this build, but vte isn&apos;t. So, because pkg-config searches the system path for packages for the sake of libsdl-native (see e70913733a216b312ca11082ae55b0b9ed56ec45), it autodetects the system libvte, which pulls in the system gtk.

glib versions 2.41 and later redefined the G_IS_OBJECT() macro to use the new function g_type_check_instance_is_fundamentally_a(). Meanwhile, oe&apos;s glib is currently at 2.40, so it doesn&apos;t possess this function. qemu-native does depend on glib-2.0-native, so, when it links against system libvte, that links against system libgtk+, which links against oe libglib/libgobject, and *boom*.

This reproduces on archlinux and it almost certainly will reproduce on Fedora 21.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47567</commentid>
    <comment_count>1</comment_count>
      <attachid>2300</attachid>
    <who name="Richard Tollerton">rich.tollerton</who>
    <bug_when>2014-12-15 17:39:15 +0000</bug_when>
    <thetext>Created attachment 2300
Proposed fix

http://thread.gmane.org/gmane.comp.handhelds.openembedded.core/58614</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47643</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Tollerton">rich.tollerton</who>
    <bug_when>2014-12-19 20:53:18 +0000</bug_when>
    <thetext>Fix committed to master in 6cea10dd8f041731269ad16b94d8e172ab1f7257.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47706</commentid>
    <comment_count>3</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-12-30 12:53:23 +0000</bug_when>
    <thetext>Fixed with commit: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=48a03945c303dcf75230bf88b642ba6433f9a5bd</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>2300</attachid>
            <date>2014-12-15 17:39:15 +0000</date>
            <delta_ts>2014-12-15 17:39:15 +0000</delta_ts>
            <desc>Proposed fix</desc>
            <filename>0001-qemu-disable-vte-if-gtk-is-also-disabled.patch</filename>
            <type>text/plain</type>
            <size>1424</size>
            <attacher name="Richard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