Bug 93218

Summary: xserver (git version) fails to build due to error in file miarc.c
Product: xorg Reporter: Jos van Wolput <wolput>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: high    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Jos van Wolput 2015-12-03 02:49:05 UTC
When trying to make xserver (git version) I get the following error:
-----
Making all in mi
make[1]: Entering directory '/home/jos/src/xorg/git/xserver/mi'
  CC       miarc.lo
miarc.c:89:1: error: static declaration of 'cbrt' follows non-static declaration
 cbrt(double x)
 ^
In file included from /usr/include/features.h:361:0,
                 from /usr/include/math.h:26,
                 from miarc.c:53:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:169:1: note: previous declaration of 'cbrt' was here
 __MATHCALL (cbrt,, (_Mdouble_ __x));
 ^
Makefile:716: recipe for target 'miarc.lo' failed
make[1]: *** [miarc.lo] Error 1
make[1]: Leaving directory '/home/jos/src/xorg/git/xserver/mi'
Makefile:769: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
-----
Comment 1 Jos van Wolput 2015-12-03 06:41:22 UTC
This issue was caused by installing libc6 version 2.22-0 from Debian/experimental.
Reverting to libc6 version 2.21-1 from Debian/sid fixed this issue.

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.