sed-devel
[Top][All Lists]
Advanced

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

sed-4.8.39-23ea on Solaris 11.4


From: Bruno Haible
Subject: sed-4.8.39-23ea on Solaris 11.4
Date: Mon, 17 Oct 2022 03:10:14 +0200

On Solaris 11.4, the compilation of sed-4.8.39-23ea fails:

  CC       lib/libsed_a-localeinfo.o
../lib/localeinfo.c:33:39: error: macro "static_assert" requires 2 arguments, 
but only 1 given
 static_assert (MB_LEN_MAX <= SCHAR_MAX);
                                       ^
../lib/localeinfo.c:33:1: warning: data definition has no type or storage class
 static_assert (MB_LEN_MAX <= SCHAR_MAX);
 ^~~~~~~~~~~~~
../lib/localeinfo.c:33:1: warning: type defaults to 'int' in declaration of 
'static_assert' [-Wimplicit-int]
../lib/localeinfo.c:125:38: error: macro "static_assert" requires 2 arguments, 
but only 1 given
                <= CASE_FOLDED_BUFSIZE);
                                      ^
../lib/localeinfo.c:124:1: warning: data definition has no type or storage class
 static_assert (1 + 1 + sizeof lonesome_lower / sizeof *lonesome_lower
 ^~~~~~~~~~~~~
../lib/localeinfo.c:124:1: warning: type defaults to 'int' in declaration of 
'static_assert' [-Wimplicit-int]
gmake[2]: *** [Makefile:3590: lib/libsed_a-localeinfo.o] Error 1

On this platform:
  - $CC is 'gcc -O2'.
  - gcc is version 7.3.0.
  - config.h has

/* #undef HAVE_C_STATIC_ASSERT */

  - config.h ends with the snippet

#if (!defined HAVE_C_STATIC_ASSERT && !defined assert \
     && (!defined __cplusplus \
         || (__cpp_static_assert < 201411 \
             && __GNUG__ < 6 && __clang_major__ < 6)))
 #include <assert.h>
 #undef/**/assert
#endif

  - <assert.h> is /usr/include/assert.h, and it contains the definition

#define static_assert(a, b) _Static_assert(a, b)


Bruno






reply via email to

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