<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    On 05/29/2012 11:29 AM, Radu Moisan wrote:
    <blockquote cite="mid:4FC488CF.2030803@intel.com" type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <br>
      <br>
      On 05/28/2012 04:44 PM, Richard Purdie wrote:
      <blockquote cite="mid:1338212677.20169.75.camel@ted" type="cite">
        <pre wrap="">On Mon, 2012-05-28 at 14:30 +0100, Burton, Ross wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">On 28 May 2012 14:26, Andrei Gherzan <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:andrei@gherzan.ro">&lt;andrei@gherzan.ro&gt;</a> wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">There is an internal test suite for dbus. You can enable building those
tests in configure:
"--enable-tests"
</pre>
          </blockquote>
          <pre wrap="">Is there a good reason why these shouldn't be always ran when building dbus?
</pre>
        </blockquote>
        <pre wrap="">Well, we're cross compiling so it depends how they're written and
whether they can run in a cross environment. We've also taken steps to
reduce our build time so if these need something like perl or python,
adding those into the dependency chain is problematic.

I'm open to ideas here but so far they've not been useful so are likely
disabled.

Cheers,

Richard

</pre>
      </blockquote>
      How do I add something in the dependency chain? With --enable-test
      dbus fails at do_configure complaining about<br>
      <br>
      <small><font face="Droid Sans Mono">| configure: Full test
          coverage was requested with --enable-tests=yes<br>
          | configure: This has many dependencies (GLib, dbus-glib,
          Python)<br>
          | checking for i586-poky-linux-pkg-config... no<br>
          | checking for pkg-config...
/home/radu/Documents/Development/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/pkg-config<br>
          | checking pkg-config is at least version 0.9.0... yes<br>
          | checking for GLIB... yes<br>
          | checking for DBUS_GLIB... yes<br>
          | configure: Full test coverage (--enable-tests=yes) requires
          Python, dbus-python, pygobject<br>
          | checking for a Python interpreter with version &gt;= 2.6...
          python<br>
          | checking for python...
/home/radu/Documents/Development/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/python<br>
          | checking for python version... 2.7<br>
          | checking for python platform... linux2<br>
          | checking for python script directory...
          ${libdir}/python2.7/site-packages<br>
          | checking for python extension module directory...
          ${libdir}/python2.7/site-packages<br>
          | checking for Python modules for full test coverage...
          Traceback (most recent call last):<br>
          |&nbsp;&nbsp; File "&lt;string&gt;", line 1, in &lt;module&gt;<br>
          | ImportError: No module named dbus<br>
          | no<br>
          | configure: error: cannot import dbus, gobject,
          dbus.mainloop.glib Python modules<br>
          | ERROR: oe_runconf failed<br>
          NOTE: package dbus-1.4.20-r3.0: task do_configure: Failed<br>
          ERROR: Task 6
          (/home/radu/Documents/Development/yocto/poky/meta/recipes-core/dbus/dbus_1.4.20.bb,

          do_configure) failed with exit code '1'<br>
          NOTE: Tasks Summary: Attempted 1119 tasks of which 1118 didn't
          need to be rerun and 1 failed.<br>
          <br>
          Summary: 1 task failed:<br>
          &nbsp;
          /home/radu/Documents/Development/yocto/poky/meta/recipes-core/dbus/dbus_1.4.20.bb,

          do_configure<br>
          Summary: There was 1 ERROR message shown, returning a non-zero
          exit code.</font></small><br>
      <br>
      <br>
      Radu<br>
      <br>
    </blockquote>
    Leaving --enable-tests aside for a moment, I'm trying to build dbus
    with --enable-embedded-tests which is less but still good instead of
    nothing. However, the build fails at do_compile complaining about
    dbus/dbus-glib-lowlevel.h missing, although it's there. So I think
    some variable in Makefile is not pointing correctly, but I cannot
    find which.<br>
    <br>
    <small><font face="Droid Sans Mono">| i586-poky-linux-libtool: link:
        i586-poky-linux-ar cru .libs/libdbus-testutils.a
        .libs/test-utils.o<br>
        | i586-poky-linux-libtool: link: i586-poky-linux-ranlib
        .libs/libdbus-testutils.a<br>
        | i586-poky-linux-libtool: link: ( cd ".libs" &amp;&amp; rm -f
        "libdbus-testutils.la" &amp;&amp; ln -s
        "../libdbus-testutils.la" "libdbus-testutils.la" )<br>
        | dbus-daemon.c:32:37: fatal error: dbus/dbus-glib-lowlevel.h:
        No such file or directory<br>
        | compilation terminated.<br>
        | i586-poky-linux-libtool: link: ccache i586-poky-linux-gcc -m32
        -march=i586
        --sysroot=/home/radu/Documents/Development/yocto/build/tmp/sysroots/qemux86
        -Wall -Wchar-subscripts -Wmissing-declarations
        -Wmissing-prototypes -Wnested-externs -Wpointer-arith
        -Wcast-align -Wno-address -Wfloat-equal
        -Wdeclaration-after-statement -Wno-unused -Wno-sign-compare
        -Wno-pointer-sign -Wno-deprecated-declarations -fno-common
        -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types
        -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o test-segfault
        test-segfault.o<br>
        | make[3]: *** [test_dbus_daemon-dbus-daemon.o] Error 1<br>
        | make[3]: *** Waiting for unfinished jobs....<br>
        | i586-poky-linux-libtool: link: ccache i586-poky-linux-gcc -m32
        -march=i586
        --sysroot=/home/radu/Documents/Development/yocto/build/tmp/sysroots/qemux86
        -Wall -Wchar-subsERROR: Function failed: do_compile (see
        /home/radu/Documents/Development/yocto/build/tmp/work/i586-poky-linux/dbus-1.4.20-r3.0/temp/log.do_compile.10606
        for further information)<br>
        | cripts -Wmissing-declarations -Wmissing-prototypes
        -Wnested-externs -Wpointer-arith -Wcast-align -Wno-address
        -Wfloat-equal -Wdeclaration-after-statement -Wno-unused
        -Wno-sign-compare -Wno-pointer-sign -Wno-deprecated-declarations
        -fno-common -fno-strict-aliasing -O2 -pipe -g
        -feliminate-unused-debug-types -Wl,-O1 -Wl,--hash-style=gnu
        -Wl,--as-needed -o test-exit test-exit.o<br>
        | i586-poky-linux-libtool: link: ccache i586-poky-linux-gcc -m32
        -march=i586
        --sysroot=/home/radu/Documents/Development/yocto/build/tmp/sysroots/qemux86
        -Wall -Wchar-subscripts -Wmissing-declarations
        -Wmissing-prototypes -Wnested-externs -Wpointer-arith
        -Wcast-align -Wno-address -Wfloat-equal
        -Wdeclaration-after-statement -Wno-unused -Wno-sign-compare
        -Wno-pointer-sign -Wno-deprecated-declarations -fno-common
        -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types
        -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o
        test-sleep-forever test-sleep-forever.o<br>
        | loopback.c:32:37: fatal error: dbus/dbus-glib-lowlevel.h: No
        such file or directory<br>
        | compilation terminated.<br>
        | make[3]: *** [test_loopback-loopback.o] Error 1<br>
        | i586-poky-linux-libtool: link: ccache i586-poky-linux-gcc -m32
        -march=i586
        --sysroot=/home/radu/Documents/Development/yocto/build/tmp/sysroots/qemux86
        -Wall -Wchar-subscripts -Wmissing-declarations
        -Wmissing-prototypes -Wnested-externs -Wpointer-arith
        -Wcast-align -Wno-address -Wfloat-equal
        -Wdeclaration-after-statement -Wno-unused -Wno-sign-compare
        -Wno-pointer-sign -Wno-deprecated-declarations -fno-common
        -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types
        -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o spawn-test
        spawn-test.o&nbsp; ../dbus/.libs/libdbus-internal.a -lpthread -lrt<br>
        | corrupt.c:33:37: fatal error: dbus/dbus-glib-lowlevel.h: No
        such file or directory<br>
        | compilation terminated.<br>
        | make[3]: *** [test_corrupt-corrupt.o] Error 1<br>
        | make[3]: Leaving directory
`/home/radu/Documents/Development/yocto/build/tmp/work/i586-poky-linux/dbus-1.4.20-r3.0/dbus-1.4.20/test'<br>
        | make[2]: *** [all-recursive] Error 1<br>
        | make[2]: Leaving directory
`/home/radu/Documents/Development/yocto/build/tmp/work/i586-poky-linux/dbus-1.4.20-r3.0/dbus-1.4.20/test'<br>
        | make[1]: *** [all-recursive] Error 1<br>
        | make[1]: Leaving directory
`/home/radu/Documents/Development/yocto/build/tmp/work/i586-poky-linux/dbus-1.4.20-r3.0/dbus-1.4.20'<br>
        | make: *** [all] Error 2<br>
        | ERROR: oe_runmake failed<br>
        NOTE: package dbus-1.4.20-r3.0: task do_compile: Failed<br>
        ERROR: Task 7
        (/home/radu/Documents/Development/yocto/poky/meta/recipes-core/dbus/dbus_1.4.20.bb,
        do_compile) failed with exit code '1'<br>
        NOTE: Tasks Summary: Attempted 1120 tasks of which 1119 didn't
        need to be rerun and 1 failed.<br>
        <br>
        Summary: 1 task failed:<br>
        &nbsp;
        /home/radu/Documents/Development/yocto/poky/meta/recipes-core/dbus/dbus_1.4.20.bb,
        do_compile<br>
        Summary: There was 1 ERROR message shown, returning a non-zero
        exit code.<br>
      </font></small><br>
    Radu<br>
  </body>
</html>