Bug#34068: libc6-dev: Re: Bug#25334 acknowledged by developer (C declaration "struct fd_set my_fd_set;" doesn't work) (fwd)
Package: libc6-dev
Version: 2.0.7.19981211-6
Included is a reply I made to Joel Klecker <jk@espy.org> . I didn't got
any answer or acknowledgment. I think "User Error." can't be a real reason
to close a bug when I definitely think I didn't make an error (or else
I should be explained my error)...
I tried a mail to Ian Jackson <owner@bugs.debian.org> as suggested: no
additional answer. so I do new bug report.
Thanks.
Belhouane Adel <void@pipo.com>
---------- Forwarded message ----------
Date: Thu, 18 Feb 1999 00:37:39 -0500 (EST)
From: VoiD <void@pipo.com>
To: Joel Klecker <jk@espy.org>
Subject: Re: Bug#25334 acknowledged by developer (C declaration "struct fd_set my_fd_set;" doesn't work)
Can you give me more explanations about the "User error." subject?
I can't well understand how has this bug been resolved.
It's ok if you tell me that this kind of declaration (struct fd_set
my_fd_set) should not be used in a correct program, but anyways on this
machine:
lagrande:~> uname -a
SunOS lagrande.IRO.UMontreal.CA 5.6 Generic_105181-10 sun4m sparc
using this compiler:
lagrande:~> gcc --version
2.8.1
and its own include files (yes not GNU ones, but copyrighted from AT&T
as I read in the /usr/include/sys/select.h file),
there is no error at compiling this file:
-------------------------------------------------------------------------------
/* test_bug.c */
#include <sys/select.h>
int main(int argc,char *argv[])
{
/* since the pointer doesn't need the size of the object, the next
* declaration doesn't produce errors
*/
struct fd_set *my_fd_set_pointer;
/* the compiler can't figure out the fd_set size and makes an error
*/
struct fd_set my_fd_set;
return 0;
}
-------------------------------------------------------------------------------
on my computer (Debian/Linux potato version, using the 2.0.7.19981211
version of libc6-dev (when I reported the bug last August, I had a
libc6-dev called on Debian: 2.0.7t-1 ) )
blackhole:~> uname -a
Linux blackhole 2.2.1-ac6 #1 Wed Feb 17 15:57:43 EST 1999 i586 unknown
using this gcc:
blackhole:~> gcc --version
2.7.2.3
I get this error when compiling the same file:
blackhole:~/src> gcc test_bug.c
test_bug.c: In function `main':
test_bug.c:12: storage size of `my_fd_set' isn't known
I didn't invent this construction myself, it's in the source of amp 0.7.6,
an mp3 player program, when using the --enable-realtime option
you can get this file (for example) at:
ftp://ftp.debian.org/debian/dists/potato/non-free/source/sound/amp_0.7.6.orig.tar.gz
then after unpacking it, type:
./configure --enable-realtime
then during the 'make all':
gcc -c -O6 -ffast-math -fomit-frame-pointer -i586 -pipe -DNO_BYTE_SWAPPING -DOS_Linux -DARCH_i586 rtbuf.c
rtbuf.c: In function `block_fancy_audio':
rtbuf.c:434: storage size of `wmask' isn't known
make: *** [rtbuf.o] Error 1
blackhole:/usr/src/amp-0.7.6> grep wmask rtbuf.c
struct fd_set wmask;
FD_ZERO(&wmask);
FD_SET(audio_fd, &wmask);
i = select(audio_fd+1, NULL, &wmask, NULL, &tm);
It's why I thought this might be a libc6-dev bug after all. Since it can
compile safely on some other *NIXes.
Can you give me more details?
Belhouane Adel <void@pipo.com>
On Wed, 17 Feb 1999, Debian Bug Tracking System wrote:
> This is an automatic notification regarding your bug report.
>
> It has been closed by one of the developers, namely
> Joel Klecker <jk@espy.org>.
>
> Their explanation is attached below. If this explanation is
> unsatisfactory and you haven't received a better one in a separate
> message then please contact the developer directly, or email
> submit@bugs.debian.org or me.
>
> Ian Jackson
> (administrator, Debian bugs database)
>
> Received: (at 25334-done) by bugs.debian.org; 18 Feb 1999 00:42:45 +0000
> Received: (qmail 7242 invoked from network); 18 Feb 1999 00:42:44 -0000
> Received: from cerberus.espy.org (mail@206.163.71.145)
> by master.debian.org with SMTP; 18 Feb 1999 00:42:44 -0000
> Received: from hercules.espy.org [206.163.71.146]
> by cerberus.espy.org with esmtp (Exim 2.11 #1 (Debian GNU/Linux))
> id 10DHXy-0002fG-00; Wed, 17 Feb 1999 16:42:30 -0800
> Mime-Version: 1.0
> Content-Type: text/plain; charset="us-ascii" ; format="flowed"
> X-Sender: jk@mail.espy.org
> Message-Id: <v04104435b2ededbaaab4@[206.163.71.146]>
> Date: Mon, 15 Feb 1999 07:29:46 -0800
> To: 25334-done@bugs.debian.org
> From: Joel Klecker <jk@espy.org>
> Subject: User error.
>
-- System Information
Debian Release: 2.1
Kernel Version: Linux blackhole 2.2.2-ac5 #5 Tue Mar 2 01:22:54 EST 1999 i586 unknown
Reply to: