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

Bug#247118: marked as done (libc6-dev: Definition of kill() missing when using -D_BSD_SOURCE)



Your message dated Wed, 30 Jun 2004 04:29:28 +0900
with message-id <81zn6mjh7r.wl@omega.webmasters.gr.jp>
and subject line Bug#247118: libc6-dev: Definition of kill() missing when using -D_BSD_SOURCE
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; 3 May 2004 12:29:39 +0000
>From mkoch@mail.konqueror.de Mon May 03 05:29:39 2004
Return-path: <mkoch@mail.konqueror.de>
Received: from mail0-105.ewetel.de (mail0.ewetel.de) [212.6.122.105] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BKcZm-0006Tw-00; Mon, 03 May 2004 05:29:38 -0700
Received: from majestix.konqueror.de (dynadsl-080-228-95-249.ewetel.net [80.228.95.249])
	by mail0.ewetel.de (8.12.1/8.12.9) with ESMTP id i43CSwQ4005661;
	Mon, 3 May 2004 14:29:01 +0200 (MEST)
Received: from obelix.konqueror.de ([192.168.1.4])
	by majestix.konqueror.de with esmtp (Exim 3.35 #1 (Debian))
	id 1BKcaM-00019f-00; Mon, 03 May 2004 14:30:14 +0200
Received: from mkoch by obelix.konqueror.de with local (Exim 3.36 #1 (Debian))
	id 1BKcYo-00046I-00; Mon, 03 May 2004 14:28:38 +0200
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: konqueror@gmx.de
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libc6-dev: Definition of kill() missing when using -D_BSD_SOURCE
X-Mailer: reportbug 2.56
Date: Mon, 03 May 2004 14:28:38 +0200
Message-Id: <E1BKcYo-00046I-00@obelix.konqueror.de>
Sender: <mkoch@obelix>
X-CheckCompat: OK
Delivered-To: submit@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=-5.4 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	NO_REAL_NAME autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 1

Package: libc6-dev
Version: 2.3.2.ds1-11
Severity: normal


I get a warning when compiling the following testapp:


#include <sys/types.h>
#include <signal.h>

int main(int argc, char **argv) {
	kill(0,0);
	return 0;
}


I use the this command line:


gcc -ansi -Wall -D_BSD_SOURCE -c killbug.c


The warning I get:


killbug.c: In function `main':
killbug.c:5: Warnung: implicit declaration of function 'kill'


In /usr/include/signal.h kill() is defined as follows:


#ifdef __USE_POSIX
extern int kill (__pid_t __pid, int __sig) __THROW;
#endif /* Use POSIX.  */


According to kill() manpage was defined on BSD 4.3 too.
This means it should be available with -D_BSD_SOURCE I think.

Is this correct ?


Michael


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (999, 'testing'), (10, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.24-obelix
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (ignored: LC_ALL set to de_DE@euro)

Versions of packages libc6-dev depends on:
ii  libc6                2.3.2.ds1-11        GNU C Library: Shared libraries an
ii  linux-kernel-headers 2.5.999-test7-bk-15 Linux Kernel Headers for developme

-- no debconf information

---------------------------------------
Received: (at 247118-done) by bugs.debian.org; 29 Jun 2004 19:29:29 +0000
>From gotom@debian.or.jp Tue Jun 29 12:29:29 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 1BfOIL-0008BV-00; Tue, 29 Jun 2004 12:29:29 -0700
Received: from omega.webmasters.gr.jp (localhost [127.0.0.1])
	by webmasters.gr.jp (Postfix) with ESMTP
	id 24DCFDEB58; Wed, 30 Jun 2004 04:29:28 +0900 (JST)
Date: Wed, 30 Jun 2004 04:29:28 +0900
Message-ID: <81zn6mjh7r.wl@omega.webmasters.gr.jp>
From: GOTO Masanori <gotom@debian.or.jp>
To: konqueror@gmx.de, 247118-done@bugs.debian.org
Subject: Re: Bug#247118: libc6-dev: Definition of kill() missing when using -D_BSD_SOURCE
In-Reply-To: <E1BKcYo-00046I-00@obelix.konqueror.de>
References: <E1BKcYo-00046I-00@obelix.konqueror.de>
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: 247118-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=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

At Mon, 03 May 2004 14:28:38 +0200,
konqueror@gmx.de wrote:
> I get a warning when compiling the following testapp:
> 
> 
> #include <sys/types.h>
> #include <signal.h>
> 
> int main(int argc, char **argv) {
> 	kill(0,0);
> 	return 0;
> }
> 
> I use the this command line:
> gcc -ansi -Wall -D_BSD_SOURCE -c killbug.c
> The warning I get:
> 
> killbug.c: In function `main':
> killbug.c:5: Warnung: implicit declaration of function 'kill'

"gcc -Wall -D_BSD_SOURCE" is ok.  "-ansi" means it uses only ISO C90
features.  ISO C90 does not have kill.  I close this bug.

Regards,
-- gotom



Reply to: