Description of problem: The current mingw header <rpc.h> pollutes the namespace with a '#define interface ...'. While this is bad practice, the dbus package should avoid the problems it causes by picking names that are less likely to collide in its function declarations, or even omitting parameter names altogether (and just declaring parameter types without names). I ran into this while trying to cross-compile libvirt for mingw. Version-Release number of selected component (if applicable): mingw32-dbus-1.6.8-1.fc18.noarch mingw32-headers-2.0.999-0.15.trunk.20121110.fc18.noarch How reproducible: 100% Steps to Reproduce: 1. cat foo.c 2. i686-w64-mingw32-gcc -c \ -I /usr/i686-w64-mingw32/sys-root/mingw/include/dbus-1.0 \ -I /usr/i686-w64-mingw32/sys-root/mingw/lib/dbus-1.0/include \ foo.c Actual results: 1. #include <rpc.h> #include <dbus/dbus.h> int dummy; 2. In file included from /usr/i686-w64-mingw32/sys-root/mingw/include/dbus-1.0/dbus/dbus-connection.h:32:0, from /usr/i686-w64-mingw32/sys-root/mingw/include/dbus-1.0/dbus/dbus-bus.h:30, from /usr/i686-w64-mingw32/sys-root/mingw/include/dbus-1.0/dbus/dbus.h:31, from foo.c:2: /usr/i686-w64-mingw32/sys-root/mingw/include/dbus-1.0/dbus/dbus-message.h:74:58: error: expected ';', ',' or ')' before 'struct' /usr/i686-w64-mingw32/sys-root/mingw/include/dbus-1.0/dbus/dbus-message.h:80:58: error: expected ';', ',' or ')' before 'struct' /usr/i686-w64-mingw32/sys-root/mingw/include/dbus-1.0/dbus/dbus-message.h:111:58: error: expected ';', ',' or ')' before 'struct' /usr/i686-w64-mingw32/sys-root/mingw/include/dbus-1.0/dbus/dbus-message.h:116:58: error: expected ';', ',' or ')' before 'struct' /usr/i686-w64-mingw32/sys-root/mingw/include/dbus-1.0/dbus/dbus-message.h:149:58: error: expected ';', ',' or ')' before 'struct' /usr/i686-w64-mingw32/sys-root/mingw/include/dbus-1.0/dbus/dbus-message.h:153:58: error: expected ';', ',' or ')' before 'struct' Expected results: no compilation error Additional info: see also bug 980270
I opened an issue on Freedesktop Bugtracker. https://bugs.freedesktop.org/show_bug.cgi?id=66493
mingw-dbus-1.6.8-4.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/mingw-dbus-1.6.8-4.fc19
mingw-dbus-1.6.8-4.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/mingw-dbus-1.6.8-4.fc18
Package mingw-dbus-1.6.8-4.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing mingw-dbus-1.6.8-4.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-15496/mingw-dbus-1.6.8-4.fc18 then log in and leave karma (feedback).
mingw-dbus-1.6.12-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/mingw-dbus-1.6.12-1.fc19
mingw-dbus-1.6.8-4.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
mingw-dbus-1.6.12-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.