<br><br><div class="gmail_quote">On Thu, Mar 3, 2011 at 1:15 AM, Romain Pokrzywka <span dir="ltr"><<a href="mailto:romain.pokrzywka@kdab.com">romain.pokrzywka@kdab.com</a>></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></div><div class="h5"><br>
On Tuesday 01 March 2011 09:01:09 Vincent Torri wrote:<br>
> Hey,<br>
><br>
> On Tue, Mar 1, 2011 at 2:04 AM, Romain Pokrzywka<br>
><br>
> <<a href="mailto:romain.pokrzywka@kdab.com">romain.pokrzywka@kdab.com</a>>wrote:<br>
> > On Monday 28 February 2011 12:07:40 Vincent Torri wrote:<br>
> > > Hey,<br>
> > ><br>
> > > On Mon, Feb 28, 2011 at 4:59 PM, Romain Pokrzywka<br>
> > > <<a href="mailto:romain.pokrzywka@kdab.com">romain.pokrzywka@kdab.com</a><br>
> > ><br>
> > > > wrote:<br>
> > > ><br>
> > > > Hi Vincent,<br>
> > > ><br>
> > > > If you just want to make sure the bus starts up correctly, you can<br>
> > > > open<br>
> ><br>
> > a<br>
> ><br>
> > > > console and go to the bin folder where dbus<br>
> > > > was build, then try running:<br>
> > ><br>
> > > they are in my PATH.<br>
> > ><br>
> > > > dbus-daemon.exe --session<br>
> > ><br>
> > > done<br>
> > ><br>
> > > > which starts up the bus, then :<br>
> > > ><br>
> > > > dbus-monitor<br>
> > > ><br>
> > > > It should print out some info, that means your bus is up and running,<br>
> ><br>
> > and<br>
> ><br>
> > > > ready to register services objects.<br>
> > ><br>
> > > actually, no. I have:<br>
> > ><br>
> > > $ dbus-monitor.exe<br>
> > > Failed to open connection to session bus: Failed to get autolaunch<br>
> ><br>
> > address<br>
> ><br>
> > > from launched dbus-daemon<br>
> > ><br>
> > > in the Task manager, I see one dbus-daemon launch by dbus-daemon.exe<br>
> > > --session. Then when i launch bus-monitor.exe, I see 2 others<br>
> > > dbus-daemon.exe processes, one terminated almost immediatly (so it<br>
> ><br>
> > remains<br>
> ><br>
> > > 2 dbus-daemon.exe processes running).<br>
> > ><br>
> > > That's all I can say.<br>
> ><br>
> > Thanks for the info.<br>
> > Weird, that sounds like dbus-monitor was built with a different version<br>
> > than dbus-daemon. The symptoms you describe<br>
> > indicate that dbus-monitor doesn't recognize the running daemon, which is<br>
> > normally a built-in mechanism.<br>
> > I suppose you don't have any other dbus builds in your path, or previous<br>
> > installations, and that you didn't modify the<br>
> > file etc/session.conf ?<br>
><br>
> I have no other dbus installation. It didn't even know there was a<br>
> session.conf. This file is located /usr/local/etc/dbus-1<br>
><br>
> > Otherwise it sounds like a problem related to the options passed (or not)<br>
> > when building dbus. Can you provide us with<br>
> > the following :<br>
> ><br>
> > - which source version you used (1.4.x ?)<br>
><br>
> 1.4.6<br>
><br>
> > - what build tool you used : cmake or automake<br>
><br>
> autotools<br>
><br>
> > - which command line options you passed it<br>
><br>
> --with-xml=libxml<br>
><br>
> I have libxml2, and there was no error messages during configuration.<br>
> Should I use expat ?<br>
><br>
> 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> </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> </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>
120 blocks swapped from order 'l' to 'B'<br> 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 KiIntSystemCall+0x6<br>
3 WaitForSingleObject+0x12<br>2 dbus-test.exe+0x21875<br>2 dbus-test.exe+0xb897<br>2 dbus-test.exe+0x2c65c<br>2 dbus-test.exe+0x1e42c<br>2 dbus-test.exe+0x1e392<br>2 dbus-test.exe+0x37bdd<br>
2 dbus-test.exe+0x1faa5<br>2 dbus-test.exe+0x44e0d<br>2 dbus-test.exe+0x36422<br>2 dbus-test.exe+0x42906<br>2 dbus-test.exe+0x10db<br>2 dbus-test.exe+0x1178<br>3 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>
<br>Vincent Torri<br></div></div>