This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
autoconf 2.13 / gcc-2.95.2 "const" issue
- To: bug-gnu-utils at gnu dot org, bug-gcc at gnu dot org
- Subject: autoconf 2.13 / gcc-2.95.2 "const" issue
- From: Paul Henshaw <paul dot henshaw at jrc dot it>
- Date: Mon, 17 Apr 2000 10:15:35 +0200
Dear all,
I have recently upgraded from egcs-1.1.2 to gcc-2.95.2 on
a Pentium III running Red Hat 6.1, and an Alpha running
OSF 4.0e.
I have noticed that the configure script generated by
autoconf 2.13 seems to think that gcc-2.95.2 does not
support the "const" and "inline" keywords.
When I run the configure script with CC/CXX set to
the egcs-1.1.2 C and C++ compilers, the resulting
config.h contains lines like this:
/* #undef const */
/* #undef inline */
#define HAVE_ALLOCA_H 1
The config.h generated by the same configure script run for
gcc-2.95.2 differs only in these lines:
#define const
#define inline
/* #undef HAVE_ALLOCA_H */
Needless to say, the C++ source does not compile, and gives
a very large number of errors regarding multiple definition
of functions defined in the standard C++ library.
By using the config.h generated for egcs-1.1.2 I have been
able to compile using gcc-2.95.2.
I use gcc/egcs and autoconf on a regular basis and would like
to say "thanks" for your great work.
Should you need any further information, please do not
hesitate to contact me.
Cheers,
Paul
--
Paul Henshaw, Institute for Systems, Informatics and Safety
TP270, JRC Ispra, 21020 Ispra (VA), Italy
Tel: ++39 0332 785262 Fax: ++39 0332 789185
WWW: http://gist.jrc.it:8080/paul.gx