Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62413 - prototype missing for exp10() even if -std=gnu9x is passed to gcc
Summary: prototype missing for exp10() even if -std=gnu9x is passed to gcc
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-31 12:29 UTC by Greg Slocum
Modified: 2004-12-23 07:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Slocum 2004-08-31 12:29:35 UTC
There is no prototype for exp10() from libm via <math.h>, even if -std=gnu9x is passed to gcc.

Probably true with released version, but certainly true with ~x86 glibc.

Reproducible: Always
Steps to Reproduce:
1.gcc -Wall -std=gnu9x -lm mathh_and_exp10.c
2.
3.

Actual Results:  
Gives a warning with -Wall.  Otherwise it silently corrupts the stack, gives 
wrong answers, and gathers support for incumbents.


I tried several times to give additional information.  ESC clears this window, 
which is nasty if you are used to vi.  Sheesh!  ;-)
Comment 1 rob holland (RETIRED) gentoo-dev 2004-12-23 07:57:34 UTC
Please do:

gcc -D_GNU_SOURCE

or:

#define _GNU_SOURCE
#include <math.h>