autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Serious problem with Autoconf on RedHat 7


From: Akim Demaille
Subject: Re: [PATCH] Serious problem with Autoconf on RedHat 7
Date: 03 Oct 2000 10:14:47 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

| 2000-10-02 Morten Eriksen <address@hidden>
| 
|         * aclang.m4 (AC_LANG_SOURCE(C++)): don't define exit(), it'll
|         mismatch with the native exit() definition on some platforms
|         (happens at least with g++ 2.96 and glibc 2.1.92 on Red Hat Linux
|         v7).
| 
| Index: ChangeLog
| ===================================================================
| RCS file: /cvs/autoconf/ChangeLog,v
| retrieving revision 1.895
| diff -u -r1.895 ChangeLog
| --- ChangeLog 2000/10/02 13:11:27     1.895
| +++ ChangeLog 2000/10/02 17:24:17
| @@ -1,3 +1,10 @@
| +2000-10-02 Morten Eriksen <address@hidden>
| +
| +     * aclang.m4 (AC_LANG_SOURCE(C++)): don't define exit(), it'll
| +     mismatch with the native exit() definition on some platforms
| +     (happens at least with g++ 2.96 and glibc 2.1.92 on Red Hat Linux
| +     v7).
| +
|  2000-10-02  Akim Demaille  <address@hidden>
|  
|         * aclang.m4 (_AC_LANG_ABBREV, _AC_LANG_ABBREV(C))
| Index: aclang.m4
| ===================================================================
| RCS file: /cvs/autoconf/aclang.m4,v
| retrieving revision 1.68
| diff -u -r1.68 aclang.m4
| --- aclang.m4 2000/10/02 13:11:28     1.68
| +++ aclang.m4 2000/10/02 17:19:28
| @@ -412,9 +412,6 @@
|  define([AC_LANG_SOURCE(C++)],
|  [#line __oline__ "configure"
|  #include "confdefs.h"
| -#ifdef __cplusplus
| -extern "C" void exit (int);
| -#endif
|  $1])

I'm in favor of this patch given that it applies only to C++.  Note
however, that it does not solve the problem for people who use CC=g++.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]