Bug#102473: include_next does not work correctly in std_cstdio.h (and others)
Christof Petig writes:
> Package: libstdc++3-dev
> Version: 3.0-2
> Platform: ppc
>
> If I compile a program which includes any of the following headers:
> cassert, cctype, cerrno, clocale (and others)
> I get the following errors:
> /usr/include/g++-v3/bits/std_cstring.h:40:25: string.h: No such file or
> directory
> /usr/include/g++-v3/bits/std_cstdlib.h:41:25: stdlib.h: No such file or
> directory
unable to reproduce. This may be an installation problem on your side.
please send your test case and run it with -H -v
$ cat bug-102473.cc
#include <cstdio>
#include <cctype>
#include <cerrno>
#include <clocale>
$ g++-3.0 -H -c bug-102473.cc
. /usr/include/g++-v3/cassert
.. /usr/include/g++-v3/bits/std_cassert.h
... /usr/include/assert.h
.... /usr/include/features.h
..... /usr/include/sys/cdefs.h
..... /usr/include/gnu/stubs.h
. /usr/include/g++-v3/cctype
.. /usr/include/g++-v3/bits/std_cctype.h
... /usr/include/ctype.h
.... /usr/include/bits/types.h
..... /usr/lib/gcc-lib/i386-linux/3.0/include/stddef.h
..... /usr/include/bits/pthreadtypes.h
...... /usr/include/bits/sched.h
.... /usr/include/endian.h
..... /usr/include/bits/endian.h
.... /usr/include/xlocale.h
. /usr/include/g++-v3/cerrno
.. /usr/include/g++-v3/bits/std_cerrno.h
... /usr/include/errno.h
.... /usr/include/bits/errno.h
..... /usr/include/linux/errno.h
...... /usr/include/asm/errno.h
. /usr/include/g++-v3/clocale
.. /usr/include/g++-v3/bits/std_clocale.h
... /usr/include/locale.h
.... /usr/lib/gcc-lib/i386-linux/3.0/include/stddef.h
.... /usr/include/bits/locale.h
Multiple include guards may be useful for:
/usr/include/assert.h
/usr/include/bits/endian.h
/usr/include/bits/errno.h
/usr/include/bits/locale.h
/usr/include/bits/pthreadtypes.h
/usr/include/bits/sched.h
/usr/include/errno.h
/usr/include/g++-v3/bits/std_cassert.h
/usr/include/g++-v3/cassert
/usr/include/gnu/stubs.h
Reply to: