<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Am 03.03.2011 08:21, schrieb Vincent Torri:
    <blockquote
      cite="mid:AANLkTindSKC=hefNaM5Sxz9r=1B4z6C8NzoNCidLSaCK@mail.gmail.com"
      type="cite"><br>
      <br>
      <div class="gmail_quote">On Thu, Mar 3, 2011 at 1:15 AM, Romain
        Pokrzywka <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:romain.pokrzywka@kdab.com">romain.pokrzywka@kdab.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div>
            <div class="h5"><br>
              On Tuesday 01 March 2011 09:01:09 Vincent Torri wrote:<br>
              &gt; Hey,<br>
              &gt;<br>
              &gt; On Tue, Mar 1, 2011 at 2:04 AM, Romain Pokrzywka<br>
              &gt;<br>
              &gt; &lt;<a moz-do-not-send="true"
                href="mailto:romain.pokrzywka@kdab.com">romain.pokrzywka@kdab.com</a>&gt;wrote:<br>
              &gt; &gt; On Monday 28 February 2011 12:07:40 Vincent
              Torri wrote:<br>
              &gt; &gt; &gt; Hey,<br>
              &gt; &gt; &gt;<br>
              &gt; &gt; &gt; On Mon, Feb 28, 2011 at 4:59 PM, Romain
              Pokrzywka<br>
              &gt; &gt; &gt; &lt;<a moz-do-not-send="true"
                href="mailto:romain.pokrzywka@kdab.com">romain.pokrzywka@kdab.com</a><br>
              &gt; &gt; &gt;<br>
              &gt; &gt; &gt; &gt; wrote:<br>
              &gt; &gt; &gt; &gt;<br>
              &gt; &gt; &gt; &gt; Hi Vincent,<br>
              &gt; &gt; &gt; &gt;<br>
              &gt; &gt; &gt; &gt; If you just want to make sure the bus
              starts up correctly, you can<br>
              &gt; &gt; &gt; &gt; open<br>
              &gt; &gt;<br>
              &gt; &gt; a<br>
              &gt; &gt;<br>
              &gt; &gt; &gt; &gt; console and go to the bin folder where
              dbus<br>
              &gt; &gt; &gt; &gt; was build, then try running:<br>
              &gt; &gt; &gt;<br>
              &gt; &gt; &gt; they are in my PATH.<br>
              &gt; &gt; &gt;<br>
              &gt; &gt; &gt; &gt; dbus-daemon.exe --session<br>
              &gt; &gt; &gt;<br>
              &gt; &gt; &gt; done<br>
              &gt; &gt; &gt;<br>
              &gt; &gt; &gt; &gt; which starts up the bus, then :<br>
              &gt; &gt; &gt; &gt;<br>
              &gt; &gt; &gt; &gt; dbus-monitor<br>
              &gt; &gt; &gt; &gt;<br>
              &gt; &gt; &gt; &gt; It should print out some info, that
              means your bus is up and running,<br>
              &gt; &gt;<br>
              &gt; &gt; and<br>
              &gt; &gt;<br>
              &gt; &gt; &gt; &gt; ready to register services objects.<br>
              &gt; &gt; &gt;<br>
              &gt; &gt; &gt; actually, no. I have:<br>
              &gt; &gt; &gt;<br>
              &gt; &gt; &gt; $ dbus-monitor.exe<br>
              &gt; &gt; &gt; Failed to open connection to session bus:
              Failed to get autolaunch<br>
              &gt; &gt;<br>
              &gt; &gt; address<br>
              &gt; &gt;<br>
              &gt; &gt; &gt; from launched dbus-daemon<br>
              &gt; &gt; &gt;<br>
              &gt; &gt; &gt; in the Task manager, I see one dbus-daemon
              launch by dbus-daemon.exe<br>
              &gt; &gt; &gt; --session. Then when i launch
              bus-monitor.exe, I see 2 others<br>
              &gt; &gt; &gt; dbus-daemon.exe processes, one terminated
              almost immediatly (so it<br>
              &gt; &gt;<br>
              &gt; &gt; remains<br>
              &gt; &gt;<br>
              &gt; &gt; &gt; 2 dbus-daemon.exe processes running).<br>
              &gt; &gt; &gt;<br>
              &gt; &gt; &gt; That's all I can say.<br>
              &gt; &gt;<br>
              &gt; &gt; Thanks for the info.<br>
              &gt; &gt; Weird, that sounds like dbus-monitor was built
              with a different version<br>
              &gt; &gt; than dbus-daemon. The symptoms you describe<br>
              &gt; &gt; indicate that dbus-monitor doesn't recognize the
              running daemon, which is<br>
              &gt; &gt; normally a built-in mechanism.<br>
              &gt; &gt; I suppose you don't have any other dbus builds
              in your path, or previous<br>
              &gt; &gt; installations, and that you didn't modify the<br>
              &gt; &gt; file etc/session.conf &nbsp;?<br>
              &gt;<br>
              &gt; I have no other dbus installation. It didn't even
              know there was a<br>
              &gt; session.conf. This file is located
              /usr/local/etc/dbus-1<br>
              &gt;<br>
              &gt; &gt; Otherwise it sounds like a problem related to
              the options passed (or not)<br>
              &gt; &gt; when building dbus. Can you provide us with<br>
              &gt; &gt; the following :<br>
              &gt; &gt;<br>
              &gt; &gt; - which source version you used (1.4.x ?)<br>
              &gt;<br>
              &gt; 1.4.6<br>
              &gt;<br>
              &gt; &gt; - what build tool you used : cmake or automake<br>
              &gt;<br>
              &gt; autotools<br>
              &gt;<br>
              &gt; &gt; - which command line options you passed it<br>
              &gt;<br>
              &gt; --with-xml=libxml<br>
              &gt;<br>
              &gt; I have libxml2, and there was no error messages
              during configuration.<br>
              &gt; Should I use expat ?<br>
              &gt;<br>
              &gt; Vincent Torri<br>
              <br>
            </div>
          </div>
          Ok, thanks for the additional info.<br>
          <br>
          I personally use expat, but I think libxml should work fine
          too.<br>
        </blockquote>
        <div><br>
          I tried with expat, same problem<br>
          &nbsp;</div>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          My gut feeling is that there is a wrong default in the
          autotools build options, so the resulting dbus-daemon doesn't<br>
          work out-of-the-box. Could you try building with cmake instead
          maybe ?<br>
        </blockquote>
        <div><br>
          I've never succeeded in using cmake on Windows. Anyway, if
          there is a problem with the autotools, it must be fixed.<br>
          &nbsp;</div>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <br>
          Also, it looks like you're using msys or cygwin as the shell
          to build and run the tests, as you mention<br>
          /usr/local/etc/dbus-1. I'm not sure this is a supported/tested
          scenario, especially with the path-based scoping<br>
          mechanism for the daemon and clients.<br>
        </blockquote>
        <div><br>
          On Windows, The autotools can be used only with MSYS or
          cygwin. I use MSYS.<br>
          <br>
          If this is not a supported scenario, where should I copy the
          data (sessions.conf and other data files) ?<br>
          <br>
          Anyway, I just remarked that there is a README.win. He talks
          about unit test. I enabled them (configure command:
          ./configure --with-xml=expat --enable-tests
          --enable-verbose-mode). I tried dbus-test check<br>
          <br>
          the README.win says that dbus-test.exe is installed in some
          bin/ directory. It is not the case. It seems normal as in
          dbus/Makefile.am, there is a noinst_PROGRAMS=$(TESTS) and no
          hook is done to install it in another directory<br>
          <br>
          I run it from top level dir : <br>
          <br>
          ./dbus/.libs/dbus-test test/data<br>
          <br>
          and I get<br>
          <br>
          ----------------<br>
          <br>
          torri@CARO-50BC2B3960 ~/tmp/dbus-1.4.6<br>
          $ ./dbus/.libs/dbus-test.exe test/data<br>
          Test data in test/data<br>
          dbus-test: running string tests<br>
          dbus-test: checking for memleaks<br>
          dbus-test: running sysdeps tests<br>
          dbus-test: checking for memleaks<br>
          dbus-test: running data-slot tests<br>
          dbus-test: checking for memleaks<br>
          dbus-test: running misc tests<br>
          dbus-test: checking for memleaks<br>
          dbus-test: running address tests<br>
          dbus-test: checking for memleaks<br>
          dbus-test: running server tests<br>
          dbus-test: checking for memleaks<br>
          dbus-test: running object-tree tests<br>
          dbus-test: checking for memleaks<br>
          dbus-test: running signature tests<br>
          dbus-test: checking for memleaks<br>
          dbus-test: running marshalling tests<br>
          dbus-test: checking for memleaks<br>
          recursive marshal tests disabled<br>
          dbus-test: running byteswap tests<br>
          &nbsp; 120 blocks swapped from order 'l' to 'B'<br>
          &nbsp; 120 blocks swapped from order 'B' to 'l'<br>
          dbus-test: checking for memleaks<br>
          dbus-test: running memory tests<br>
          dbus-test: checking for memleaks<br>
          dbus-test: running mem-pool tests<br>
          dbus-test: checking for memleaks<br>
          dbus-test: running list tests<br>
          dbus-test: checking for memleaks<br>
          dbus-test: running marshal-validate tests<br>
          dbus-test: checking for memleaks<br>
          dbus-test: running marshal-header tests<br>
          dbus-test: checking for memleaks<br>
          dbus-test: running message tests<br>
          process 3508: dbus message iterator looks uninitialized or
          corrupted<br>
          Backtrace:<br>
          3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KiIntSystemCall+0x6<br>
          3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WaitForSingleObject+0x12<br>
          2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbus-test.exe+0x21875<br>
          2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbus-test.exe+0xb897<br>
          2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbus-test.exe+0x2c65c<br>
          2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbus-test.exe+0x1e42c<br>
          2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbus-test.exe+0x1e392<br>
          2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbus-test.exe+0x37bdd<br>
          2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbus-test.exe+0x1faa5<br>
          2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbus-test.exe+0x44e0d<br>
          2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbus-test.exe+0x36422<br>
          2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbus-test.exe+0x42906<br>
          2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbus-test.exe+0x10db<br>
          2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbus-test.exe+0x1178<br>
          3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RegisterWaitForInputIdle+0x49<br>
          <br>
          This application has requested the Runtime to terminate it in
          an unusual way.<br>
          Please contact the application's support team for more
          information.<br>
          <br>
          ----------------<br>
          <br>
          I tried with a MSYS terminal or a Windows console, same
          result. I stop here as it seems that there is a seg fault,
          here, which is very bad. Is there any way to debug that ?<br>
        </div>
      </div>
    </blockquote>
    <br>
    execute in a command shell <br>
    <br>
    set DBUS_VERBOSE=1 <br>
    <br>
    before running any dbus related apps.<br>
    <br>
    BTW: In &lt;build-root&gt;/bus&nbsp; shere should be a session.conf,
    which includes the address where dbus-daemon is listening to.
    Normally this will be installed somewhere. like .../etc/dbus-1<br>
    <br>
    Ralf <br>
    &nbsp;
    <br>
    <br>
  </body>
</html>