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

Bug#176910: marked as done (libc6-dev: "kill" prototype not included from signal.h in -ansi mode)



Your message dated 21 Jan 2003 09:24:39 +0000
with message-id <1043141079.21372.1.camel@kc.cam.armlinux.org>
and subject line libc6-dev: "kill" prototype not included from signal.h in -ansi mode
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; 15 Jan 2003 20:52:20 +0000
>From maxwell+Steven.Murdoch@cl.cam.ac.uk Wed Jan 15 14:52:19 2003
Return-path: <maxwell+Steven.Murdoch@cl.cam.ac.uk>
Received: from gold.csi.cam.ac.uk [131.111.8.12] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18YuWJ-0007pD-00; Wed, 15 Jan 2003 14:52:19 -0600
Received: from sjm217.girton.cam.ac.uk ([131.111.247.214] helo=maxwell)
	by gold.csi.cam.ac.uk with esmtp (Exim 4.10)
	id 18YuWH-0002bX-00; Wed, 15 Jan 2003 20:52:17 +0000
Received: from sjm217 by maxwell with local (Exim 3.35 #1 (Debian))
	id 18YuU8-0000Ka-00; Wed, 15 Jan 2003 20:50:04 +0000
From: "Steven J. Murdoch" <debianbts+Steven.Murdoch@cl.cam.ac.uk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libc6-dev: "kill" prototype not included from signal.h in -ansi mode
X-Mailer: reportbug 1.50
Date: Wed, 15 Jan 2003 20:50:03 +0000
Message-Id: <[🔎] E18YuU8-0000Ka-00@maxwell>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=0.3 required=5.0
	tests=MAILTO_TO_SPAM_ADDR,SPAM_PHRASE_02_03
	version=2.41
X-Spam-Level: 

Package: libc6-dev
Version: 2.2.5-11.2
Severity: normal

In "man 2 kill" the required include files for the function:
int kill(pid_t pid, int sig);
are:
#include <sys/types.h>
#include <signal.h>

However when a program is compiled in -ansi mode the required prototype
is not included. In the normal compilation mode the prototype is
included from /usr/include/signal.h

For example:-
--- BEGIN LOG ---
sjm217@maxwell:~/tmp$ cat libc6-dev-test.c 
#include <sys/types.h>
#include <signal.h>

int main(void) {
 kill(0,0);
 return 0;
}

sjm217@maxwell:~/tmp$ gcc -Wall -ansi -pedantic libc6-dev-test.c 
libc6-dev-test.c: In function `main':
libc6-dev-test.c:5: warning: implicit declaration of function `kill'

sjm217@maxwell:~/tmp$ gcc -Wall -ansi libc6-dev-test.c 
libc6-dev-test.c: In function `main':
libc6-dev-test.c:5: warning: implicit declaration of function `kill'

sjm217@maxwell:~/tmp$ gcc -Wall libc6-dev-test.c 

sjm217@maxwell:~/tmp$

--- END LOG ---

I would have expected that either the kill(2) manpage noted the correct
header files that need to be included, or the sys/types.h and signal.h
header files to be modified to include the prototype of kill.

Please let me know if any more information is required.

Thank you,
Steven Murdoch.

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux maxwell 2.4.19 #1 Tue Oct 22 19:58:25 BST 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages libc6-dev depends on:
ii  libc6                         2.2.5-11.2 GNU C Library: Shared libraries an


---------------------------------------
Received: (at 176910-done) by bugs.debian.org; 21 Jan 2003 09:24:42 +0000
>From philb@gnu.org Tue Jan 21 03:24:42 2003
Return-path: <philb@gnu.org>
Received: from mta06-svc.ntlworld.com [62.253.162.46] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18aueA-0000gA-00; Tue, 21 Jan 2003 03:24:42 -0600
Received: from kc.cam.armlinux.org ([81.96.69.239])
          by mta06-svc.ntlworld.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20030121092435.KABY20174.mta06-svc.ntlworld.com@kc.cam.armlinux.org>
          for <176910-done@bugs.debian.org>;
          Tue, 21 Jan 2003 09:24:35 +0000
Received: from localhost ([127.0.0.1])
	by kc.cam.armlinux.org with esmtp (Exim 3.36 #1 (Debian))
	id 18aue8-0005mJ-00
	for <176910-done@bugs.debian.org>; Tue, 21 Jan 2003 09:24:40 +0000
Subject: Re: libc6-dev: "kill" prototype not included from signal.h in
	-ansi mode
From: Philip Blundell <philb@gnu.org>
To: 176910-done@bugs.debian.org
Content-Type: text/plain
Organization: 
Message-Id: <1043141079.21372.1.camel@kc.cam.armlinux.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.1 
Date: 21 Jan 2003 09:24:39 +0000
Content-Transfer-Encoding: 7bit
Delivered-To: 176910-done@bugs.debian.org
X-Spam-Status: No, hits=0.6 required=5.0
	tests=SPAM_PHRASE_00_01
	version=2.41
X-Spam-Level: 

This bug report is erroneous.  The kill() function is not part of ISO C,
so it is correct for -ansi to suppress its declaration.

p.



Reply to: