<div class="gmail_quote">On Tue, May 29, 2012 at 12:23 PM, Radu Moisan <span dir="ltr"><<a href="mailto:radu.moisan@intel.com" target="_blank">radu.moisan@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
<br>How do I add something in the dependency chain? With --enable-test
dbus fails at do_configure complaining about<br><blockquote type="cite">
<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 >= 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>
| File "<string>", line 1, in <module><br>
| ImportError: No module named dbus<br>
| no</font></small></blockquote></div></div></div></blockquote><div><br></div><div>This says that the configure cannot find the dbus python module. This is created in the python-dbus package. So compile that first.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><div><div class="h5"><blockquote type="cite"><br>
<br>
Radu<br>
<br>
</blockquote></div></div>
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" && rm -f
"<a href="http://libdbus-testutils.la" target="_blank">libdbus-testutils.la</a>" && ln -s
"../<a href="http://libdbus-testutils.la" target="_blank">libdbus-testutils.la</a>" "<a href="http://libdbus-testutils.la" target="_blank">libdbus-testutils.la</a>" )<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 ../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></font></small></div></blockquote><div><br></div><div>You will need dbus-glib. This is the package which provides this header. This will be a dependency for your case.</div><div><br></div>
<div>Hope i gave to the right hints. If you need more detailed info just ping me.</div><div><br></div><div>@g </div></div>