Bug#207671: bad include
Package: gcc-3.3
Version: 3.3.1
I was compiling (with make) the darkice ( http://darkice.sourceforge.net/
sources and get this error:
" In file included from
/usr/lib/gcc-lib/i386-linux/3.3.1/include/stdio.h:683,
from /usr/include/c++/3.3/cstdio:52,
from /usr/include/c++/3.3/i386-linux/bits/c++io.h:35,
from /usr/include/c++/3.3/bits/fpos.h:44,
from /usr/include/c++/3.3/iosfwd:49,
from /usr/include/c++/3.3/ios:44,
from /usr/include/c++/3.3/ostream:45,
from /usr/include/c++/3.3/iostream:45,
from Exception.h:39,
from BufferedSink.cpp:59:
/usr/include/bits/stdio.h: In function `int vprintf(const char*, char*)':
/usr/include/bits/stdio.h:35: error: declaration of `int vprintf(const char*,
char*)' throws different exceptions
/usr/lib/gcc-lib/i386-linux/3.3.1/include/stdio.h:317: error: than previous
declaration `int vprintf(const char*, char*) throw ()'
/usr/include/bits/stdio.h: In function `int getchar()':
/usr/include/bits/stdio.h:42: error: declaration of `int getchar()' throws
different exceptions "
[...] it was more long..
The BufferedSink.cpp and Exception.h files are from the DarkIce sources,
but not the rest.
Searching and 'grepping' various files, I saw in the
/usr/include/bits/stdio.h file, at line 21 this:
#ifndef _STDIO_H
# error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
#endif
while, in the /usr/lib/gcc-lib/i386-linux/3.3.1/include/stdio.h file (the
first in the message error, at line 683, I saw this one:
#include <bits/stdio.h
So, commenting this line and putting only : #include <stdio.h>
in the same line , my compilation works fine. And now I can use the
DarkIce program perfectly.
I suggest, so, to change this include in the line 683 of the
/usr/lib/gcc-lib/i386-linux/3.3.1/include/stdio.h file.
I'm using a Debian GNU/Linux 2.4.21 machine, with libc6 2.2.5-9.woody.3
pd: this is my first bug report and i'm not sure about how to do. I hope
to make well.(and, it's evident, i'm not an english native speaker ;)
Reply to: