gcc 4.4.3, missing math functions on Solaris 8 (Sparc)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just installed the csw version of gcc 4.4.3 on a Solaris 8 (Sparc
machine.) There seem to be some C99 pieces missing that are used in math
operations:

/opt/csw/gcc4/bin/gcc  -Wall -std=c99 -pedantic -lm -O3 -DMAXINFILE=20 
-lpcre  -o extract  extract.c

has these errors (and others which I think derive from them, and so are
not shown):
extract.c:3781: error: 'NAN' undeclared (first use in this function)
extract.c:3957: error: 'FP_NAN' undeclared (first use in this function)
extract.c:3958: error: 'FP_INFINITE' undeclared (first use in this function)
extract.c:3892: warning: implicit declaration of function 'fmax'
extract.c:3893: warning: implicit declaration of function 'fmin'
extract.c:3956: warning: implicit declaration of function 'fpclassify'
extract.c:4237: warning: implicit declaration of function 'round'
extract.c:13527: warning: implicit declaration of function 'isnormal'
extract.c:13654: warning: implicit declaration of function 'isinf'

The same code compiles cleanly on linux.  I could find most of these
strings in 

/opt/csw/gcc4/libexec/gcc/sparc-sun-solaris2.8/4.3.3/install-tools/fixincl

but not elsewhere.  In particular, they are not in math.h, which is
where they live on Linux.

Anybody know what the problem is here, and more to the point, how to
work around this?

Thanks,    

David Mathog
mathog@xxxxxxxxxxx
Manager, Sequence Analysis Facility, Biology Division, Caltech


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux