Description of problem:
I got the error below trying to build tokyocabinet in koji (http://koji.fedoraproject.org/koji/taskinfo?taskID=1641937). The package builds fine in F-11 branch.
In file included from /usr/include/math.h:416,
/usr/include/bits/mathinline.h: In function '__signbitf':
/usr/include/bits/mathinline.h:39: error: expected ')' before ':' token
/usr/include/bits/mathinline.h: In function '__signbit':
/usr/include/bits/mathinline.h:46: error: expected ')' before ':' token
Version-Release number of selected component (if applicable): glibc-2.10.90-17
Steps to Reproduce:
This can be reproduced (tested on x86_64) with:
cat <<EOF > math-test.c
#define _XOPEN_SOURCE 600 /* C99 */
gcc -o math-test.o math-test.c -O2
and is probably going to keep a large fraction of packages from building.
*** Bug 520222 has been marked as a duplicate of this bug. ***
The testcase in #c1 compiles without problem. Only packages that use --std=c99 fail.
*** Bug 520474 has been marked as a duplicate of this bug. ***
Andreas - that testcase reproduced it for me (unless I typo'ed something putting it into the bug report.). Were you testing on x86_64? But yes, --std=c99 would also be a way of enabling the bad portions of mathinline.h.
Without --std=c99 the compiler will happily accept all extensions.
Fixed in 2.10.90-18.