Bug 980278 - dbus headers not tolerant to namespace pollution
Summary: dbus headers not tolerant to namespace pollution
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mingw-dbus
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ivan Romanov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-02 00:05 UTC by Eric Blake
Modified: 2013-09-13 00:58 UTC (History)
3 users (show)

Fixed In Version: mingw-dbus-1.6.12-1.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-11 01:58:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
FreeDesktop.org 66493 0 None None None Never

Description Eric Blake 2013-07-02 00:05:38 UTC
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

Comment 1 Ivan Romanov 2013-07-02 09:40:01 UTC
I opened an issue on Freedesktop Bugtracker.
https://bugs.freedesktop.org/show_bug.cgi?id=66493

Comment 2 Fedora Update System 2013-08-29 12:47:36 UTC
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

Comment 3 Fedora Update System 2013-08-29 12:48:32 UTC
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

Comment 4 Fedora Update System 2013-08-29 22:21:02 UTC
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).

Comment 5 Fedora Update System 2013-09-04 08:19:48 UTC
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

Comment 6 Fedora Update System 2013-09-11 01:58:35 UTC
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.

Comment 7 Fedora Update System 2013-09-13 00:58:19 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.