Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • libX11 libX11
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 67
    • Issues 67
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorg
  • lib
  • libX11libX11
  • Issues
  • #15
Closed
Open
Created Mar 31, 2012 by Bugzilla Migration User@bugzilla-migration

Please replace "#define Status int" by "typedef int Status;" - others want to use that name, too.

Submitted by Viktor Dick

Assigned to Xorg Project Team

Link to original bug (#48117)

Description

When I, for example, try to complie clutter-gtkmm on ArchLinux, I get a rather confusing error message. If compiling with clang, it becomes clearer:

In file included from embed.cc:4:
In file included from ../clutter-gtkmm/embed.h:27:
In file included from /usr/include/gtkmm-3.0/gtkmm/container.h:30:
In file included from /usr/include/gtkmm-3.0/gtkmm/widget.h:41:
In file included from /usr/include/gdkmm-3.0/gdkmm/event.h:27:
/usr/include/gdkmm-3.0/gdkmm/types.h:198:6: error: unnamed enumeration must be a definition
enum Status
     ^
/usr/include/X11/Xlib.h:87:16: note: expanded from:
#define Status int
               ^

So Xlib.h:87 defines the type Status and no one else can use it. I know this is C, so it has no namespaces, but it has typedefs (in Xlib.h:84 a typedef is used). I fixed it locally, maybe you can fix it upstream. It is not critical, but I don't think that you get much bugreports that are that easy to fix.

Thanks

Edited Aug 17, 2020 by Alan Coopersmith
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking