<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10pt; "><span style="font-family: garamond, 'new york', times, serif; font-size: 12pt; ">In order to compile dbus-1.6.0 using mingw32/msys on Windows XP SP3 (x86) you will need the following patch, courtesy of Brad Pitcher [1], because there is no MemoryBarrier macro in mingw, which is a known issue reported OPEN on the mingw32 </span><a target="_blank" href="http://sf.net/" style="font-family: garamond, 'new york', times, serif; font-size: 12pt; ">sf.net</a><span style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "> site [2] and WONTFIX in dbus Bugzilla [3]. </span><span style="font-family: garamond, 'new york', times, serif; font-size: 16px; ">It is fairly clear that this issue will not be addressed by
dbus, and </span><span style="font-family: garamond, 'new york', times, serif; font-size: 12pt; ">dbus developers appear to recommend mingw-w64 instead of ming32.</span><br></div><div style="font-size: 10pt; font-family: 'Courier New', courier, monaco, monospace, sans-serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div id="yiv939741778"><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 12pt; font-family: garamond, 'new york', times, serif; "><div><div><br></div><div><span style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; ">--- a/</span><span style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; ">dbus-1.6.0\</span><span style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; ">dbus\dbus-sysdeps-win.c</span></div><div><span style="font-size: 13px; font-family: courier, monaco, monospace,
sans-serif; ">+++ b/dbus-1.6.0\dbus\dbus-sysdeps-win.c</span></div><div><span style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; ">@@ -54,6 +54,13 @@</span></div><div><span style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; "> #include <windows.h></span></div><div><span style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; "> #include <ws2tcpip.h></span></div><div><span style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; "> #include <wincrypt.h></span></div><div><span style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; ">+</span></div><div><span style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; ">+__CRT_INLINE VOID MemoryBarrier(VOID)</span></div><div><span style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; ">+{</span></div><div><span
style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; ">+ LONG Barrier = 0;</span></div><div><span style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; ">+ __asm__ __volatile__("xchgl %%eax,%0 "</span></div><div><span style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; ">+ :"=r" (Barrier));</span></div><div><span style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; ">+}</span></div><div><span style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; "> </span></div><div><span style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; "> /* Declarations missing in mingw's headers */</span></div><div><span style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; "> extern BOOL WINAPI ConvertStringSidToSidA (LPCSTR StringSid, PSID *Sid);</span></div><div
style="font-size: 12pt; font-family: garamond, times, serif; "><br></div><div style="font-size: 12pt; font-family: garamond, times, serif; ">Some other patches, message threads, issues and links are posted below.</div><div style="font-size: 12pt; font-family: garamond, times, serif; "><br></div></div><div style="font-size: 12pt; font-family: garamond, times, serif; ">[1] <a rel="nofollow" target="_blank" href="https://bitbucket.org/bradpitcher/mingw-cross-env/src/5f91fb4e0199/src/dbus-1-fixes.patch" style="font-size:12pt;">https://bitbucket.org/bradpitcher/mingw-cross-env/src/5f91fb4e0199/src/dbus-1-fixes.patch</a> - patch by Brad Pitcher (2012-09-23)</div><div style="font-size: 12pt; font-family: garamond, times, serif; "><span style="font-size:12pt;">[2]</span> <a rel="nofollow" target="_blank"
href="https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3420424&group_id=2435">https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3420424&group_id=2435</a> - mingw bug 3420424 on sf.net by Ernie Boyd (2011-10-07)</div><div style="font-size: 12pt; font-family: garamond, times, serif; "><span style="font-size:12pt;">[3] </span><a rel="nofollow" target="_blank" href="https://bugs.freedesktop.org/show_bug.cgi?id=41423">https://bugs.freedesktop.org/show_bug.cgi?id=41423</a> - dbus Bugzilla Bug 41423 - MemoryBarrier only available on Vista+ <br></div><div style="font-size: 12pt; font-family: garamond, times, serif; ">[4] http://hg.savannah.gnu.org/hgweb/mingw-cross-env/rev/8bfc6d601bb1 - patch supplied by Mark Brand (2012-09-23)</div><div style="font-size: 12pt; font-family: garamond, times, serif;
">[5] http://lists.gnu.org/archive/html/mingw-cross-env-list/2011-09/msg00033.html - thread started by Mark Brand (2012-09-23)</div><div style="font-size: 12pt; font-family: garamond, times, serif; ">[6] http://lists-archives.com/mingw-users/15935-missing-definition-of-memorybarrier.html - link to original patch (broken in Mark Brand's thread)</div><div style="font-size: 12pt; font-family: garamond, times, serif; ">[7] <a rel="nofollow" target="_blank" href="https://bitbucket.org/vog/mingw-cross-env/src/906c0415cdb8/src/dbus-1-fixes.patch">https://bitbucket.org/vog/mingw-cross-env/src/906c0415cdb8/src/dbus-1-fixes.patch</a> - original fork of mingw-cross-env by Volker Grabsch</div><div style="font-size: 12pt; font-family: garamond, times, serif; ">[8] <a rel="nofollow" target="_blank" href="https://github.com/mxe/mxe">https://github.com/mxe/mxe</a> - currently<span
style="font-size:12pt;"> mingw-cross-env has been renamed </span><span style="font-size:12pt;">mxe (M cross environment)</span></div><div style="font-size: 12pt; font-family: garamond, times, serif; "><span style="font-size:12pt;">[9] </span>http://mingw-w64.sourceforge.net/ - mingw-w64 project page</div><div style="font-size: 12pt; font-family: garamond, times, serif; "><br></div><div style="font-size: 12pt; font-family: garamond, times, serif; "><br></div><div style="font-size: 12pt; font-family: garamond, times, serif; "><span style="font-family: garamond, times, serif; ">Thanks,<br>Mark Mikofski<br><a rel="nofollow" target="_blank" href="http://poquitopicante.blogspot.com/">poquitopicante.blogspot.com</a><br><a rel="nofollow" target="_blank" href="http://breakingbytes.blogspot.com/">breakingbytes.blogspot.com</a><br><a rel="nofollow" target="_blank"
href="http://www.breaking-bytes.com/">www.breaking-bytes.com</a></span></div></div></div><br> </div> </div> </div></body></html>