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

Bug#104173: marked as done (<math.h> prototypes missing when _XOPEN_SOURCE=500)



Your message dated Fri, 30 Jul 2004 15:10:10 +0900
with message-id <811xiu81q5.wl@omega.webmasters.gr.jp>
and subject line <math.h> prototypes missing when _XOPEN_SOURCE=500
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 10 Jul 2001 12:08:24 +0000
>From miah@picsel.com Tue Jul 10 07:08:24 2001
Return-path: <miah@picsel.com>
Received: from angel.picsel.com [::ffff:212.137.21.218] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 15JwJT-0002DN-00; Tue, 10 Jul 2001 07:08:23 -0500
Received: from miahrpc (miahrpc.picsel.com [195.171.216.25])
	by angel.picsel.com (Postfix) with SMTP id B44EE97D14
	for <submit@bugs.debian.org>; Tue, 10 Jul 2001 13:08:13 +0100 (BST)
Date: Tue, 10 Jul 2001 13:06:24 +0100
From: Miah Gregory <miah@picsel.com>
To: submit@bugs.debian.org
Subject: libc6
Message-ID: <3211df974a.miah@picsel.com>
X-Organization: Picsel Technologies
User-Agent: Messenger-Pro/2.45beta (MsgServe/1.45beta) (RISC-OS/4.02) POPstar/2.02
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Delivered-To: submit@bugs.debian.org

Package: libc6
Version: 2.2.3-5

Using gcc 2.95.3-7, kernel is 'linux 2.4.4 #4 i686 unknown':

Including math.h into any sourcefile, then compiling using the following gcc 
command:

gcc -Wmissing-prototypes -D_XOPEN_SOURCE=500 -O2 -c -o libc6test.o 
libc6test.c

results in:

/usr/include/bits/mathinline.h:426: warning: no previous prototype for 
`__atan2l'
/usr/include/bits/mathinline.h:441: warning: no previous prototype for 
`__sqrtl'
/usr/include/bits/mathinline.h:447: warning: no previous prototype for 
`__fabsl'

Removing either -O2 or -D_XOPEN_SOURCE=500 results in no warning being 
produced.

The test program used is:

#include &lt;math.h&gt;
int main(void)
{
    return 0;
}

-- 
Miah Gregory, Software Engineer, Picsel Technologies Ltd

---------------------------------------
Received: (at 104173-done) by bugs.debian.org; 30 Jul 2004 06:10:12 +0000
>From gotom@debian.or.jp Thu Jul 29 23:10:12 2004
Return-path: <gotom@debian.or.jp>
Received: from omega.webmasters.gr.jp (webmasters.gr.jp) [218.44.239.78] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BqQaq-0002pE-00; Thu, 29 Jul 2004 23:10:12 -0700
Received: from omega.webmasters.gr.jp (localhost [127.0.0.1])
	by webmasters.gr.jp (Postfix) with ESMTP id C4B02DEB58
	for <104173-done@bugs.debian.org>; Fri, 30 Jul 2004 15:10:10 +0900 (JST)
Date: Fri, 30 Jul 2004 15:10:10 +0900
Message-ID: <811xiu81q5.wl@omega.webmasters.gr.jp>
From: GOTO Masanori <gotom@debian.or.jp>
To: 104173-done@bugs.debian.org
Subject: Re: <math.h> prototypes missing when _XOPEN_SOURCE=500
User-Agent: Wanderlust/2.9.9 (Unchained Melody) SEMI/1.14.3 (Ushinoya)
 FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.2
 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya")
Content-Type: text/plain; charset=US-ASCII
Delivered-To: 104173-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

> Package: libc6
> Version: 2.2.3-5
> 
> Using gcc 2.95.3-7, kernel is 'linux 2.4.4 #4 i686 unknown':
> 
> Including math.h into any sourcefile, then compiling using the following gcc 
> command:
> 
> gcc -Wmissing-prototypes -D_XOPEN_SOURCE=500 -O2 -c -o libc6test.o 
> libc6test.c
> 
> results in:
> 
> /usr/include/bits/mathinline.h:426: warning: no previous prototype for 
> `__atan2l'
> /usr/include/bits/mathinline.h:441: warning: no previous prototype for 
> `__sqrtl'
> /usr/include/bits/mathinline.h:447: warning: no previous prototype for 
> `__fabsl'
> 
> Removing either -O2 or -D_XOPEN_SOURCE=500 results in no warning being 
> produced.
> 
> The test program used is:
> 
> #include &lt;math.h&gt;
> int main(void)
> {
>     return 0;
> }

Nowadays we use gcc 3.3, it does not warn it.  Moreover, It's not bug.
Look at info libc:

 - Macro: _XOPEN_SOURCE
 - Macro: _XOPEN_SOURCE_EXTENDED
     If you define this macro, functionality described in the X/Open
     Portability Guide is included.  This is a superset of the POSIX.1
     and POSIX.2 functionality and in fact `_POSIX_SOURCE' and
     `_POSIX_C_SOURCE' are automatically defined.

     As the unification of all Unices, functionality only available in
     BSD and SVID is also included.

     If the macro `_XOPEN_SOURCE_EXTENDED' is also defined, even more
     functionality is available.  The extra functions will make all
     functions available which are necessary for the X/Open Unix brand.

     If the macro `_XOPEN_SOURCE' has the value 500 this includes all
     functionality described so far plus some new definitions from the
     Single Unix Specification, version 2.

SUSv2 does not mention about atan2l.  I close this bug.

Regards,
-- gotom



Reply to: