can not compile dbus 1.6.2 on Win 7 64 bits

Vincent Torri vincent.torri at
Tue Jul 17 07:32:44 PDT 2012


I have installed MSYS, mingw-w64 64 bits 4.7.0.
I have compiled and installed expat 2.1.0 myself in /usr/local
I have configure dbus with just ./configure
Then make :


  CCLD   dbus-daemon.exe
cannot find -lrt
collect2.exe: error: ld returned 1 exit status

so -lrt is passed somewhere while it does not exist on Windows.

If you want more informations, please tell me.

Note : some warnings:


In file included from dbus-sockets-win.h:36:0,
                 from dbus-sysdeps-win.c:49:
: warning: #warning Please include winsock2.h before windows.h [-Wcpp]

that's something to fix. You can find some arguments why it must be
fixed in the mingw-w64 ML, iirc.

dbus-sysdeps-win.c:2374:21: warning: format '%lx' expects argument of
type 'long unsigned int', but argument 3 has type 'DWORD64' [-Wformat]

It's %I64u that should be used

Vincent Torri

More information about the dbus mailing list