[asterisk-bugs] [Asterisk 0011847]: configure does not find floor, pow, rint, sqrt in tgmath.h

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jan 26 19:02:11 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11847 
====================================================================== 
Reported By:                pbwolf
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11847
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 99296 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             01-25-2008 20:55 CST
Last Modified:              01-26-2008 19:02 CST
====================================================================== 
Summary:                    configure does not find floor, pow, rint, sqrt in
tgmath.h
Description: 
configure is not finding floor, pow, rint, or sqrt.

checking for floor... no
checking for pow... no
checking for rint... no
checking for sqrt... no

But they're there:

$ egrep -w "#define (floor|pow|rint|sqrt)" /usr/include/*.h
/usr/include/tgmath.h:#define pow(Val1, Val2) __TGMATH_BINARY_REAL_IMAG
(Val1, Val2, pow, cpow)
/usr/include/tgmath.h:#define sqrt(Val) __TGMATH_UNARY_REAL_IMAG (Val,
sqrt, csqrt)
/usr/include/tgmath.h:#define floor(Val) __TGMATH_UNARY_REAL_ONLY (Val,
floor)
/usr/include/tgmath.h:#define rint(Val) __TGMATH_UNARY_REAL_ONLY (Val,
rint)

====================================================================== 

---------------------------------------------------------------------- 
 Corydon76 - 01-26-08 19:02  
---------------------------------------------------------------------- 
The check has nothing to do with whether it can be found in a header file,
but rather whether the function actually exists in a library file.  If it's
not finding it in the libm.so library, then your installation is out of
spec with the Linux standard.  Complain to your OS vendor that they screwed
the pooch.

See 'man pow' for details. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-26-08 19:02  Corydon76      Note Added: 0081215                          
======================================================================




More information about the asterisk-bugs mailing list