[Xcb] [Bug 79986] New: compiler error on AIX in xcb_in.c:339: '_xcb_in' has no member named 'reqevents'

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jun 13 07:18:41 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=79986

          Priority: medium
            Bug ID: 79986
          Assignee: xcb at lists.freedesktop.org
           Summary: compiler error on AIX in xcb_in.c:339: '_xcb_in' has
                    no member named 'reqevents'
        QA Contact: xcb at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: michael.haubenwallner at salomon.at
          Hardware: Other
            Status: NEW
           Version: 1.9.3
         Component: Library
           Product: XCB

Compiling libxcb-1.9.3 on AIX leads to this compiler error (occurs on multiple
line numbers):
/tools/haubi/gentoo/sauxz6/var/tmp/portage/x11-libs/libxcb-1.9.3-r1/work/libxcb-1.9.3/src/xcb_in.c:
In function 'get_event':
/tools/haubi/gentoo/sauxz6/var/tmp/portage/x11-libs/libxcb-1.9.3-r1/work/libxcb-1.9.3/src/xcb_in.c:339:
error: '_xcb_in' has no member named 'reqevents'

While the declaration itself actually is:
  typedef struct _xcb_in {
    ...
    struct event_list *events;
    ...
  } _xcb_in;

Now, <sys/poll.h> does "#define events reqevents", so this is where the name
'reqevents' comes from.

However, in xcb_in.c, <sys/poll.h> is included /after/ "xcbint.h", so the
struct _xcb_in declaration itself does not have 'events' redefined yet, while
the code later in xcb.in.c does have.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20140613/a4e2ead3/attachment.html>


More information about the Xcb mailing list