bug-coreutils
[Top][All Lists]
Advanced

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

Re: coreutils 6.6 fails to compile on IRIX 5.3


From: Paul Eggert
Subject: Re: coreutils 6.6 fails to compile on IRIX 5.3
Date: Fri, 05 Jan 2007 16:28:24 -0800
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Georg Schwarz <address@hidden> writes:

> Making check in dd
> No suffix list.
>         make  check-TESTS
> No suffix list.
> Segmentation fault - core dumped

These core dumps sound like a serious but unrelated problem.  Can you
get a GDB backtrace of the first core dump you find, to see more
details about it?

> This is C99 syntax I think which the IDO cc does not like.

You need to apply the patch in src/c99-to-c89.diff if you have an old
compiler that doesn't grok declarations after statements.

>         cc  -I.    -I/usr/local/include   -g -c mbswidth.c
> cfe: Error: ./wcwidth.h, line 43: redefinition of 'iswprint';
> previous definition at line 119 in file './wctype.h'

That should be fixed by the following patch, which is already in
gnulib (though evidently not in your copy of coreutils).  Since this
resembles what you did manually, I'll check in an appropriate change
to gnulib to lib/wctype_.h (which I'll send via separate email).

--- wcwidth.h   24 Oct 2006 20:19:49 -0000      1.6
+++ wcwidth.h   27 Dec 2006 19:54:25 -0000      1.7
@@ -32,23 +32,7 @@
 # endif
 
 /* Get iswprint.  */
-# if HAVE_WCTYPE_H
-#  include <wctype.h>
-# endif
-# if !defined iswprint && !HAVE_ISWPRINT
-static inline int
-#  if HAVE_WINT_T
-iswprint (wint_t wc)
-#  else
-iswprint (int wc)
-#  endif
-{
-  return (wc >= 0 && wc < 128
-         ? wc >= ' ' && wc <= '~'
-         : 1);
-}
-#  define iswprint iswprint
-# endif
+# include <wctype.h>
 
 # ifndef HAVE_DECL_WCWIDTH
 "this configure-time declaration test was not run"




reply via email to

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