This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc 2.97 "fixincludes" breaks wnn/commonhd.h


Recent CVS gcc 2.97 on my Linux system decides it needs to
"fixinclude" wnn/commonhd.h.

Unfortunately, wnn/commonhd.h contains this:


#include "wnnerror.h"


When an application (such as xemacs) does

#include <wnn/commonhd.h>

gcc finds its "fixed" version of commonhd.h in a gcc-specific
directory.  Unfortunately, there is no wnnerror.h to be found in the
same directory, so compilation ends with an error.

Here is a patch to xemacs, which has the unfortunate consequence of
disabling wnn when compiling with gcc-2.97, but it's better than
failing to compile.

Index: ChangeLog
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/ChangeLog,v
retrieving revision 1.155.2.241
diff -u -w -U0 -r1.155.2.241 ChangeLog
--- ChangeLog	2001/01/28 13:50:00	1.155.2.241
+++ ChangeLog	2001/02/02 08:38:22
@@ -0,0 +1,5 @@
+2001-02-02  Martin Buchholz  <martin@xemacs.org>
+
+	* configure.in (wnn): Make sure wnn/commonhd.h can be #included,
+	for the sake of gcc 2.97 fixincludes, which breaks it.
+
Index: configure.in
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/configure.in,v
retrieving revision 1.111.2.140
diff -u -w -r1.111.2.140 configure.in
--- configure.in	2001/01/28 13:50:01	1.111.2.140
+++ configure.in	2001/02/02 08:38:29
@@ -3502,6 +3502,8 @@
   dnl Autodetect WNN
   test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
   test -z "$with_wnn" && { AC_CHECK_HEADER(wnn/jllib.h, ,with_wnn=no) }
+  dnl gcc 2.97 fixincludes breaks inclusion of wnn/commonhd.h
+  test -z "$with_wnn" && { AC_CHECK_HEADER(wnn/commonhd.h, ,with_wnn=no) }
   dnl Detour to find crypt
   if test "$with_wnn" != "no"; then
     AC_CHECK_FUNCS(crypt)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]