<?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>2762</bug_id>
          
          <creation_ts>2012-07-13 14:03:28 +0000</creation_ts>
          <short_desc>dbus-glib 0.98: do_compile: failed to compile if enable-tests with dbus-glib</short_desc>
          <delta_ts>2012-07-26 13:16:10 +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>core</component>
          <version>1.3</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yao Zhao">yao.zhao</reporter>
          <assigned_to name="Yao Zhao">yao.zhao</assigned_to>
          <cc>alexandrux.palalau</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23098</commentid>
    <comment_count>0</comment_count>
    <who name="Yao Zhao">yao.zhao</who>
    <bug_when>2012-07-13 14:03:28 +0000</bug_when>
    <thetext>Host: x86_64

Add &quot;--enable-tests&quot; like below in dbus-glib:
EXTRA_OECONF = &quot;--with-introspect-xml=
${STAGING_DATADIR_NATIVE}/dbus/dbus-bus-introspect.xml \
                --with-dbus-binding-tool=
${STAGING_BINDIR_NATIVE}/dbus-binding-tool --enable-tests&quot;

build:
i686-wrs-linux-gnu-gcc   -m64 --sysroot=/mnt/work/build/yocto/qemu64/bitbake_build/tmp/sysroots/common-pc-64 -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../dbus -I../.. -I../../dbus -I/mnt/work/build/yocto/qemu64/bitbake_build/tmp/sysroots/common-pc-64/usr/include/dbus-1.0 -I/mnt/work/build/yocto/qemu64/bitbake_build/tmp/sysroots/common-pc-64/usr/lib64/dbus-1.0/include   -pthread -I/mnt/work/build/yocto/qemu64/bitbake_build/tmp/sysroots/common-pc-64/usr/include/glib-2.0 -I/mnt/work/build/yocto/qemu64/bitbake_build/tmp/sysroots/common-pc-64/usr/lib64/glib-2.0/include   -DDBUS_COMPILATION    -O2 -pipe -g -feliminate-unused-debug-types -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -fno-strict-aliasing -c test-service-glib.c
In file included from test-service-glib.c:14:0:
/mnt/work/build/yocto/qemu64/bitbake_build/tmp/sysroots/common-pc-64/usr/include/glib-2.0/glib/gquark.h:28:2: error: #error &quot;Only &lt;glib.h&gt; can be included directly.&quot;

problem:
 The problem is obvious that when test enabled, test-service-glibc is including glib/gquark.h. Change it to glib.h make build success.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23350</commentid>
    <comment_count>1</comment_count>
    <who name="Yao Zhao">yao.zhao</who>
    <bug_when>2012-07-20 19:31:14 +0000</bug_when>
    <thetext>It is fixed by this commit:

http://cgit.openembedded.org/openembedded-core/commit/?id=aefa55f3553f00753d1eb95905086bc12bc5bfaa</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23522</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Palalau">alexandrux.palalau</who>
    <bug_when>2012-07-26 13:16:10 +0000</bug_when>
    <thetext>Behavior could not be reproduced under the indicated commit ID.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>