Bug 94232 - Problems compiling mesa with glibc 2.23
Summary: Problems compiling mesa with glibc 2.23
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-21 12:33 UTC by Mike Lothian
Modified: 2016-11-03 13:16 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Patch to include sys/sysmacros.h in mesa (284 bytes, text/plain)
2016-02-21 12:33 UTC, Mike Lothian
Details

Description Mike Lothian 2016-02-21 12:33:32 UTC
Created attachment 121866 [details]
Patch to include sys/sysmacros.h in mesa

I get errors about major and minor not being defined when compiling mesa after upgrading glibc to 2.23

Including sys/sysmacros.h fixes it for me
Comment 1 Brian Paul 2016-02-22 16:21:02 UTC
Exactly what/where is the compiler error?

Someone familiar with the gbm code should review this.
Comment 2 Emil Velikov 2016-02-22 17:34:50 UTC
FTR mesa is doing nothing wrong here - see bug 94231, for similar libdrm issue.

[Somewhat of] a brief:
glibc are proposing deprecation of the sys/sysmacros.h include in sys/types.h because of issues caused by _other_ headers. Gentoo have gone ahead and patches/removed the include during their build process.

If we get updated documentation, deprecation period and consistency with other libc (musl, dietlibc, uClibc) - sure thing :-) Or an updated documentation at the very least.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.