Bug 520474

Summary: isnan is not found with new glibc on x86_64
Product: [Fedora] Fedora Reporter: Than Ngo <than>
Component: glibcAssignee: Andreas Schwab <schwab>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: jakub, schwab
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-08-31 16:33:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Than Ngo 2009-08-31 16:19:15 UTC
Description of problem:
the function isnan is not found if the testcase is built with -std=iso9899:1990
on x86_64

Version-Release number of selected component (if applicable):

glibc-2.10.90-17

How reproducible:
just compile the following code with -std=iso9899:1990

#include <math.h>
void cmakeRequireSymbol(int dummy,...){(void)dummy;}
int main()
{
#ifndef isnan
   cmakeRequireSymbol(0,&isnan);
#endif
   return 0;
}

you will get the following errors:

In file included from /usr/include/math.h:416, from foo.c:2:
/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


Expected results:
it should compile the above code

Additional info:
It build without any problem with the current glibc/gcc in F11/F10.
I did not check whether the issue is also affacted on other arch.


i'm using the latest gcc and glibc in rawhide

Comment 1 Andreas Schwab 2009-08-31 16:33:06 UTC

*** This bug has been marked as a duplicate of bug 520209 ***