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

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



Your message dated Tue, 22 Feb 2011 23:28:42 -0600
with message-id <20110223052841.GA30485@elie>
and subject line Re: libc6.1-dev: #include <math.h> from gcc on a DEC Alpha does not declare function `round'
has caused the Debian Bug report #614734,
regarding libc6.1-dev: #include <math.h> from gcc on a DEC Alpha does not declare function `round'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
614734: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614734
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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



--- End Message ---
--- Begin Message ---
Jonathan Nieder wrote:
> Wayne Rossberg wrote:

>> #include <math.h>
> [...]
>> test.c:5: warning: incompatible implicit declaration of built-in function `round'
>
> (That said, the warning does seem weird.  I'm not sure what would
> cause it.)

Agh.  I can't read.  The warning is saying "the implicit declaration

	int round(double d);

is incompatible with GCC's built-in definition

	double round(double d);

".  Which is true, so closing.

Thanks for reporting.


--- End Message ---

Reply to: