can not compile dbus 1.6.2 on Win 7 64 bits

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


Hey

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
c:/mingw/mingw-w64-x86_32/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.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:

1)

In file included from dbus-sockets-win.h:36:0,
                 from dbus-sysdeps-win.c:49:
c:\mingw\mingw-w64-x86_32\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/include/winsock2.h:15:2
: 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.

2)
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