This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Compile error on current egcs_1_00 branch
- To: egcs-bugs at cygnus dot com
- Subject: Compile error on current egcs_1_00 branch
- From: Andreas Jaeger <aj at arthur dot rhein-neckar dot de>
- Date: Mon, 20 Apr 1998 15:45:59 +0200 (CEST)
With a current glibc 2.1 on Linux I got the following error during
make bootstrap:
In file included from /usr/include/bits/string2.h:857,
from /usr/include/string.h:324,
from ../../egcs_1_00_branch/gcc/libgcc2.c:1719:
/usr/include/stdlib.h:502: conflicting types for `atexit'
../../egcs_1_00_branch/gcc/gbl-ctors.h:43: previous declaration of `atexit'
Configure line was:
../egcs_1_00_branch/configure --prefix=/opt/egcs-1.0 --enable-shared --enable-threads
I think we should define atexit only if needed. The main source do
already the right thing. I'm appending the ChangeLog entry for the
main sources (hope that's the right one) and a patch.
Please add this for egcs1.0.3.
Thanks,
Andreas
Thu Feb 12 07:19:31 1998 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* gbl-ctors.h (atexit): Don't define unless needed.
--- gbl-ctors.h.~1~ Mon Aug 11 17:57:07 1997
+++ gbl-ctors.h Mon Apr 20 15:43:17 1998
@@ -39,8 +39,6 @@
#ifdef HAVE_ATEXIT
#if defined (WINNT) || defined (NEED_ATEXIT)
extern int atexit (void (*) (void));
-#else
-extern void atexit (void (*) (void));
#endif
#define ON_EXIT(FUNC,ARG) atexit ((FUNC))
#else
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@alma.student.uni-kl.de