Bug 94232

Summary: Problems compiling mesa with glibc 2.23
Product: Mesa Reporter: Mike Lothian <mike>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: medium CC: mike
Version: git   
Hardware: Other   
OS: All   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=94231
Whiteboard:
i915 platform: i915 features:
Attachments: Patch to include sys/sysmacros.h in mesa

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.