This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
egcs-2.91.43 and ddd-3.0
- To: egcs-bugs at cygnus dot com
- Subject: egcs-2.91.43 and ddd-3.0
- From: Markus Kossmann <markus dot kossmann at inka dot de>
- Date: Sat, 04 Jul 1998 13:01:00 +0200
- Organization: home
egcs-2.91.43 fails to compile ddd-3.0 on i686-pc-linux-gnulibc1. It
fails with :
c++ -DHAVE_CONFIG_H -DNDEBUG -O2 -g -W -Wall -Wno-uninitialized
-fexternal-templates -felide-constructors -fconserve-space -c -I. -I.
-I./.. -I/usr/X11R6/include -o sigName.o sigName.C
sigName.C: In function `char * statusName(int)':
sigName.C:57: `state' undeclared (first use this function)
sigName.C:57: (Each undeclared identifier is reported only once
sigName.C:57: for each function it appears in.)
sigName.C:57: warning: ANSI C++ forbids declaration `__in' with no
type
sigName.C:61: warning: ANSI C++ forbids declaration `__in' with no
type
sigName.C:64: warning: ANSI C++ forbids declaration `__in' with no
type
sigName.C:65: warning: ANSI C++ forbids declaration `__in' with no
type
sigName.C:66: warning: ANSI C++ forbids declaration `__in' with no
type
sigName.C:67: warning: ANSI C++ forbids declaration `__in' with no
type
make[1]: *** [sigName.o] Error 1
I´ve reduced the problem to to attached testcase.
Compile it with g++ -v and it will fail with :
Reading specs from
/usr/local/egcs-19980628/lib/gcc-lib/i686-pc-linux-gnulibc1/e
gcs-2.91.43/specs
gcc version egcs-2.91.43 19980628 (gcc2 ss-980502 experimental)
/usr/local/egcs-19980628/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.43/cpp
-l
ang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus
-D__GNUC_MINOR__=91 -D
__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix
-D__linux -Asys
tem(posix) -D__EXCEPTIONS -Di386 -Asystem(unix) -Acpu(i386)
-Amachine(i386) -D__
pentiumpro__ -D__i686__ -D__i386__ -Asystem(unix) -Acpu(i386)
-Amachine(i386) -D
__pentiumpro__ -D__i686__ sigName.C /tmp/cctTEyAg
GNU CPP version egcs-2.91.43 19980628 (gcc2 ss-980502 experimental)
(i386 Linux/
ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/egcs-19980628/include/g++
/usr/local/include
/usr/local/egcs-19980628/i686-pc-linux-gnulibc1/include
/usr/local/egcs-19980628/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.43/includ
e
/usr/include
End of search list.
/usr/local/egcs-19980628/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.43/cc1plu
s /tmp/cctTEyAg -quiet -dumpbase sigName.cc -version -o /tmp/cc2NjveG
GNU C++ version egcs-2.91.43 19980628 (gcc2 ss-980502 experimental)
(i686-pc-lin
ux-gnulibc1) compiled by GNU C version egcs-2.91.43 19980628 (gcc2
ss-980502 exp
erimental).
sigName.C: In function `char * statusName(int)':
sigName.C:13: `state' undeclared (first use this function)
sigName.C:13: (Each undeclared identifier is reported only once
sigName.C:13: for each function it appears in.)
sigName.C:13: warning: ANSI C++ forbids declaration `__in' with no
type
There are no problem to compile ddd-3.0 and the testcase with
egcs-2.91.15 .
--
------------------------------------------------------------------------------
Markus <markus.kossmann@inka.de> (Markus Kossmann)
sigName.C