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

Bug#614734: libc6.1-dev: #include <math.h> from gcc on a DEC Alpha does not declare function `round'



Package: libc6.1-dev
Version: 2.7-18lenny7
Severity: normal


When compiling the file test.c containing:

#include <math.h>

double test(double x)
{
   return round(x);
}

using gcc 4.2.4-6 on a DEC Alpha machine produces the following result:

test.c In function `test':
test.c:5: warning: incompatible implicit declaration of built-in 
function `round'

Upon examining the output from the command (i.e., the file temp.tmp):

gcc -E -o temp.tmp test.c

There is no declaration of the `round' function yet, as far as I can 
determine, such a declaration should be present because it is in 
/usr/include/math.h via the include of /usr/include/bits/mathcalls.h.

If I put an explicit declaration for `round' in test.c, no warning is 
reported.

-- System Information:
Debian Release: 5.0.8
  APT prefers oldstable
  APT policy: (500, 'oldstable')
Architecture: alpha

Kernel: Linux 2.6.26-2-alpha-generic
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6.1-dev depends on:
ii  libc6.1                  2.7-18lenny7    GNU C Library: Shared libraries
ii  linux-libc-dev           2.6.26-26lenny2 Linux support headers for userspac

Versions of packages libc6.1-dev recommends:
ii  gcc [c-compiler]              4:4.2.4-5  The GNU C compiler
ii  gcc-4.2 [c-compiler]          4.2.4-6    The GNU C compiler
ii  gcc-4.3 [c-compiler]          4.3.2-1.1  The GNU C compiler

Versions of packages libc6.1-dev suggests:
ii  glibc-doc                   2.7-18lenny7 GNU C Library: Documentation
pn  manpages-dev                <none>       (no description available)

-- no debconf information



Reply to: