When built with GCC 10, diff shows the same behaviour as when compiled with GCC
4.2. Compilation with GCC 14 fails here:
/opt/local/bin/gcc-mp-14 -std=gnu23 -I. -I/opt/local/include
-Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef
-Wno-unused-function -Wno-unused-parameter -Wno-float-conversion
-Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits
-Wno-unused-const-variable -Wno-unsuffixed-float-constants -Wno-error -pipe
-ggdb -O0 -arch ppc -MT libdiffutils_a-sigsegv.o -MD -MP -MF
.deps/libdiffutils_a-sigsegv.Tpo -c -o libdiffutils_a-sigsegv.o `test -f
'sigsegv.c' || echo './'`sigsegv.c
sigsegv.c: In function 'sigsegv_handler':
sigsegv.c:1169:11: error: passing argument 2 of 'signal' from
incompatible pointer type [-Wincompatible-pointer-types]
1169 | SIGSEGV_FOR_ALL_SIGNALS (signo, signal (signo,
SIG_DFL);)
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(void)
In file included from /usr/include/signal.h:63,
from ./signal.h:52,
from sigsegv.h:48,
from sigsegv.c:23:
/usr/include/sys/signal.h:419:23: note: expected 'void (*)(int)' but
argument is of type 'void (*)(void)'
419 | void (*signal(int, void (*)(int)))(int);
| ^~~~~~~~~~~~~
sigsegv.c:1169:11: error: passing argument 2 of 'signal' from
incompatible pointer type [-Wincompatible-pointer-types]
1169 | SIGSEGV_FOR_ALL_SIGNALS (signo, signal (signo,
SIG_DFL);)
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(void)
/usr/include/sys/signal.h:419:23: note: expected 'void (*)(int)' but
argument is of type 'void (*)(void)'
419 | void (*signal(int, void (*)(int)))(int);
| ^~~~~~~~~~~~~
sigsegv.c: In function 'sigsegv_deinstall_handler':
sigsegv.c:1395:7: error: passing argument 2 of 'signal' from
incompatible pointer type [-Wincompatible-pointer-types]
1395 | SIGSEGV_FOR_ALL_SIGNALS (sig, signal (sig, SIG_DFL);)
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(void)
/usr/include/sys/signal.h:419:23: note: expected 'void (*)(int)' but
argument is of type 'void (*)(void)'
419 | void (*signal(int, void (*)(int)))(int);
| ^~~~~~~~~~~~~
sigsegv.c:1395:7: error: passing argument 2 of 'signal' from
incompatible pointer type [-Wincompatible-pointer-types]
1395 | SIGSEGV_FOR_ALL_SIGNALS (sig, signal (sig, SIG_DFL);)
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(void)
/usr/include/sys/signal.h:419:23: note: expected 'void (*)(int)' but
argument is of type 'void (*)(void)'
419 | void (*signal(int, void (*)(int)))(int);
| ^~~~~~~~~~~~~
sigsegv.c: In function 'stackoverflow_deinstall_handler':
sigsegv.c:1472:7: error: passing argument 2 of 'signal' from
incompatible pointer type [-Wincompatible-pointer-types]
1472 | SIGSEGV_FOR_ALL_SIGNALS (sig, signal (sig, SIG_DFL);)
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(void)
/usr/include/sys/signal.h:419:23: note: expected 'void (*)(int)' but
argument is of type 'void (*)(void)'
419 | void (*signal(int, void (*)(int)))(int);
| ^~~~~~~~~~~~~
sigsegv.c:1472:7: error: passing argument 2 of 'signal' from
incompatible pointer type [-Wincompatible-pointer-types]
1472 | SIGSEGV_FOR_ALL_SIGNALS (sig, signal (sig, SIG_DFL);)
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(void)
/usr/include/sys/signal.h:419:23: note: expected 'void (*)(int)' but
argument is of type 'void (*)(void)'
419 | void (*signal(int, void (*)(int)))(int);
| ^~~~~~~~~~~~~
make[2]: *** [libdiffutils_a-sigsegv.o] Error 1
make[2]: Leaving directory
`/opt/local/var/macports/build/_Users_btest_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/lib'
(I do not know where these many -W... compiler switches come from, they are
pretty useless for a user, and presumingly also not so interesting for software
developers – or they would have test compiled their software with them.)
Configuring with GCC 14 leads to not finding libinconv:
configure:60893: checking for iconv
configure:60918: /opt/local/bin/gcc-mp-14 -std=gnu23 -o conftest -pipe
-Os -ggdb -O0 -arch ppc -I/opt/local/include -L/opt/local/lib
-Wl,-headerpad_max_install_names -arch ppc conftest.c >&5
Undefined symbols:
"_libiconv_open", referenced from:
_main in cc0BuNDU.o
"_libiconv_close", referenced from:
_main in cc0BuNDU.o
"_libiconv", referenced from:
_main in cc0BuNDU.o
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
configure:60918: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU diffutils"
| #define PACKAGE_TARNAME "diffutils"
| #define PACKAGE_VERSION "3.12"
| #define PACKAGE_STRING "GNU diffutils 3.12"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL "https://www.gnu.org/software/diffutils/"
| #define PACKAGE "diffutils"
| #define VERSION "3.12"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_STDBOOL_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_DIRENT_H 1
| #define HAVE_FNMATCH_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LANGINFO_H 1
| #define HAVE_XLOCALE_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_PTHREAD_H 1
| #define HAVE_STDCKDINT_H 1
| #define HAVE_SYS_RANDOM_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_MATH_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SEMAPHORE_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_UN_H 1
| #define HAVE_SYS_UIO_H 1
| #define STDC_HEADERS 1
| #define _ALL_SOURCE 1
| #define _COSMO_SOURCE 1
| #define _DARWIN_C_SOURCE 1
| #define _GNU_SOURCE 1
| #define _HPUX_ALT_XOPEN_SOCKET_API 1
| #define _NETBSD_SOURCE 1
| #define _OPENBSD_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
| #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_DFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_EXT__ 1
| #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
| #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
| #define __STDC_WANT_LIB_EXT2__ 1
| #define __STDC_WANT_MATH_SPEC_FUNCS__ 1
| #define _TANDEM_SOURCE 1
| #define __EXTENSIONS__ 1
| #define _LINUX_SOURCE_COMPAT 1
| #define __USE_MINGW_ANSI_STDIO 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_ALLOCA 1
| #define HAVE_WINT_T 1
| #define HAVE_BTOWC 1
| #define HAVE_MBRTOWC 1
| #define HAVE_MBSINIT 1
| #define HAVE_FCHDIR 1
| #define HAVE_FCNTL 1
| #define HAVE_SYMLINK 1
| #define HAVE_FNMATCH 1
| #define HAVE_MBSRTOWCS 1
| #define HAVE_GETDTABLESIZE 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_ISBLANK 1
| #define HAVE_ISWCNTRL 1
| #define HAVE_LSTAT 1
| #define HAVE_MPROTECT 1
| #define HAVE_MKSTEMP 1
| #define HAVE_PCLOSE 1
| #define HAVE_POPEN 1
| #define HAVE_READLINK 1
| #define HAVE_ISWCTYPE 1
| #define HAVE_SETENV 1
| #define HAVE_SIGACTION 1
| #define HAVE_SIGALTSTACK 1
| #define HAVE_SIGINTERRUPT 1
| #define HAVE_SETRLIMIT 1
| #define HAVE_GETRLIMIT 1
| #define HAVE_STRPTIME 1
| #define HAVE_STRTOIMAX 1
| #define HAVE_LOCALTIME_R 1
| #define HAVE_WCRTOMB 1
| #define HAVE_WCWIDTH 1
| #define HAVE_PIPE 1
| #define HAVE_PSELECT 1
| #define HAVE_PTHREAD_SIGMASK 1
| #define HAVE_SLEEP 1
| #define HAVE_SNPRINTF 1
| #define HAVE_SHUTDOWN 1
| #define HAVE_WCTOB 1
| #define HAVE_SIGPROCMASK 1
| #define HAVE_FORK 1
| #define HAVE_VFORK 1
| #define HAVE_LANGINFO_CODESET 1
| #define BITSIZEOF_WCHAR_T 32
| #define HAVE_MBSTATE_T 1
| #define HAVE_MALLOC_POSIX 1
| #define restrict __restrict__
| #define HAVE_DECL_STRERROR_R 1
| #define HAVE_STRERROR_R 1
| #define HAVE_DECL_FCHDIR 1
| #define HAVE_WORKING_O_NOATIME 0
| #define HAVE_WORKING_O_NOFOLLOW 0
| #define FUNC_FFLUSH_STDIN 0
| #define HAVE_DECL_GETDTABLESIZE 1
| #define HAVE_GETOPT_H 1
| #define HAVE_GETOPT_LONG_ONLY 1
| #define HAVE_PTHREAD_API 1
| #define SETLOCALE_NULL_ALL_MTSAFE 0
| #define SETLOCALE_NULL_ONE_MTSAFE 1
| #ifndef __powerpc__
| #define __powerpc__ 1
| #endif
| #ifndef __powerpc__
| #define __powerpc__ 1
| #endif
| #define HAVE_LONG_LONG_INT 1
| #define HAVE_UNSIGNED_LONG_LONG_INT 1
| #define BITSIZEOF_PTRDIFF_T 32
| #define BITSIZEOF_SIZE_T 32
| #define BITSIZEOF_SIG_ATOMIC_T 32
| #define BITSIZEOF_WCHAR_T 32
| #define BITSIZEOF_WINT_T 32
| #define HAVE_SIGNED_SIG_ATOMIC_T 1
| #define HAVE_SIGNED_WCHAR_T 1
| #define HAVE_SIGNED_WINT_T 1
| #define PTRDIFF_T_SUFFIX
| #define SIZE_T_SUFFIX ul
| #define SIG_ATOMIC_T_SUFFIX
| #define WCHAR_T_SUFFIX
| #define WINT_T_SUFFIX
| #define HAVE_TOWLOWER 1
| #define HAVE_LC_MESSAGES 1
| #define USE_POSIX_THREADS 1
| #define HAVE_MALLOC_0_NONNULL 1
| #define MAP_ANONYMOUS MAP_ANON
| #define HAVE_MAP_ANONYMOUS 1
| #define HAVE_DECL_MEMRCHR 0
| #define HAVE_MINMAX_IN_SYS_PARAM_H 1
| #define TIME_T_IS_SIGNED 1
| #define HAVE_DECL_ALARM 1
| #define HAVE_STRUCT_TM_TM_GMTOFF 1
| #define HAVE_STRUCT_TM_TM_ZONE 1
| #define HAVE_TM_GMTOFF 1
| #define PROMOTED_MODE_T int
| #define HAVE_PTHREAD_T 1
| #define HAVE_SIGSET_T 1
| #define HAVE_SCHED_H 1
| #define HAVE_DECL_SETENV 1
| #define HAVE_DECL__PUTENV 0
| #define HAVE_SEARCH_H 1
| #define HAVE_TSEARCH 1
| #define WORDS_BIGENDIAN 1
| #define HAVE_DECL_FCLOSEALL 0
| #define HAVE_DECL_GETW 1
| #define HAVE_DECL_PUTW 1
| #define HAVE_DECL_ECVT 1
| #define HAVE_DECL_FCVT 1
| #define HAVE_DECL_GCVT 1
| #define HAVE_DECL_STRDUP 1
| #define REPLACE_STRERROR_0 1
| #define HAVE_STRERROR_R 1
| #define HAVE_DECL_STRNLEN 0
| #define HAVE_DECL_STRTOIMAX 1
| #define _USE_STD_STAT 1
| #define HAVE_DECL_EXECVPE 0
| #define HAVE_DECL_CLEARERR_UNLOCKED 1
| #define HAVE_DECL_FEOF_UNLOCKED 1
| #define HAVE_DECL_FERROR_UNLOCKED 1
| #define HAVE_DECL_FFLUSH_UNLOCKED 0
| #define HAVE_DECL_FGETS_UNLOCKED 0
| #define HAVE_DECL_FPUTC_UNLOCKED 0
| #define HAVE_DECL_FPUTS_UNLOCKED 0
| #define HAVE_DECL_FREAD_UNLOCKED 0
| #define HAVE_DECL_FWRITE_UNLOCKED 0
| #define HAVE_DECL_GETC_UNLOCKED 1
| #define HAVE_DECL_GETCHAR_UNLOCKED 1
| #define HAVE_DECL_PUTC_UNLOCKED 1
| #define HAVE_DECL_PUTCHAR_UNLOCKED 1
| #define HAVE_DECL_UNSETENV 1
| #define HAVE_DECL_WCSDUP 0
| #define HAVE_SHUTDOWN 1
| #define HAVE_STRUCT_SOCKADDR_STORAGE 1
| #define HAVE_SA_FAMILY_T 1
| #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
| #define HAVE_IPV4 1
| #define HAVE_IPV6 1
| #define DBL_EXPBIT0_WORD 0
| #define DBL_EXPBIT0_BIT 20
| #define FLT_EXPBIT0_WORD 0
| #define FLT_EXPBIT0_BIT 23
| #define LDBL_EXPBIT0_WORD 0
| #define LDBL_EXPBIT0_BIT 20
| #define HAVE_DECL_INITSTATE 1
| #define HAVE_DECL_SETSTATE 1
| #define HAVE_DECL_SNPRINTF 1
| #define HAVE_INTTYPES_H_WITH_UINTMAX 1
| #define HAVE_STDINT_H_WITH_UINTMAX 1
| #define HAVE_INTMAX_T 1
| #define HAVE_WCSLEN 1
| #define HAVE_SNPRINTF 1
| #define HAVE_WCRTOMB 1
| #define HAVE_DECL__SNPRINTF 0
| #define HAVE_SNPRINTF_RETVAL_C99 1
| #define HAVE_SNPRINTF_TRUNCATION_C99 1
| #define HAVE_ALLOCA 1
| #define HAVE_C_STATIC_ASSERT 1
| #define HAVE_C_BOOL 1
| #define GNULIB_TEST_BTOC32 1
| #define GNULIB_TEST_BTOWC 1
| #define HAVE___BUILTIN_EXPECT 1
| #define GNULIB_TEST_C32_APPLY_TYPE_TEST 1
| #define GNULIB_TEST_C32_GET_TYPE_TEST 1
| #define GNULIB_TEST_C32ISALNUM 1
| #define GNULIB_TEST_C32ISALPHA 1
| #define GNULIB_TEST_C32ISBLANK 1
| #define GNULIB_TEST_C32ISCNTRL 1
| #define GNULIB_TEST_C32ISDIGIT 1
| #define GNULIB_TEST_C32ISGRAPH 1
| #define GNULIB_TEST_C32ISLOWER 1
| #define GNULIB_TEST_C32ISPRINT 1
| #define GNULIB_TEST_C32ISPUNCT 1
| #define GNULIB_TEST_C32ISSPACE 1
| #define GNULIB_TEST_C32ISUPPER 1
| #define GNULIB_TEST_C32ISXDIGIT 1
| #define GNULIB_TEST_C32TOLOWER 1
| #define GNULIB_TEST_C32WIDTH 1
| #define GNULIB_TEST_CALLOC_GNU 1
| #define GNULIB_TEST_CALLOC_POSIX 1
| #define GNULIB_TEST_CHDIR 1
| #define GNULIB_TEST_CLOEXEC 1
| #define GNULIB_TEST_CLOSE 1
| #define GNULIB_CLOSE 1
| #define HAVE_CLOSEDIR 1
| #define GNULIB_TEST_CLOSEDIR 1
| #define HAVE_STRUCT_DIRENT_D_TYPE 1
| #define HAVE_DECL_DIRFD 1
| #define GNULIB_TEST_DIRFD 1
| #define GNULIB_DIRNAME 1
| #define GNULIB_TEST_DUP 1
| #define GNULIB_TEST_DUP2 1
| #define GNULIB_TEST_ENVIRON 1
| #define GNULIB_TEST_FCHDIR 1
| #define GNULIB_TEST_FCNTL 1
| #define HAVE_DECL_FDOPENDIR 0
| #define GNULIB_TEST_FDOPENDIR 1
| #define GNULIB_FDOPENDIR 1
| #define HAVE_STRUCT_STAT_ST_BLOCKS 1
| #define HAVE_ST_BLOCKS 1
| #define GNULIB_FILENAMECAT 1
| #define FLEXIBLE_ARRAY_MEMBER /**/
| #define GNULIB_TEST_FNMATCH 1
| #define GNULIB_FNMATCH_GNU 1
| #define GNULIB_TEST_FOPEN 1
| #define GNULIB_FOPEN_GNU 1
| #define GNULIB_TEST_FOPEN_GNU 1
| #define GNULIB_TEST_FREE_POSIX 1
| #define GNULIB_TEST_FREOPEN 1
| #define GNULIB_TEST_FSTAT 1
| #define GNULIB_FSTAT 1
| #define GNULIB_TEST_FSTATAT 1
| #define GNULIB_FSTATAT 1
| #define GNULIB_TEST_GETCWD 1
| #define GNULIB_TEST_GETDTABLESIZE 1
| #define __GETOPT_PREFIX rpl_
| #define GNULIB_TEST_GETOPT_POSIX 1
| #define GNULIB_TEST_GETPAGESIZE 1
| #define HAVE_GETPROGNAME 1
| #define HAVE_DECL_PROGRAM_INVOCATION_NAME 0
| #define GNULIB_TEST_GETPROGNAME 1
| #define GNULIB_TEST_GETRANDOM 1
| #define GETTIMEOFDAY_TIMEZONE struct timezone
| #define GNULIB_TEST_GETTIMEOFDAY 1
| #define GNULIB_LOCALEDIR "/opt/local/share/locale"
| #define GNULIB_ISBLANK 1
| #define HAVE_ISWBLANK 1
| #define HAVE_DECL_ISWBLANK 1
| #define GNULIB_TEST_ISWBLANK 1
| #define GNULIB_TEST_ISWCTYPE 1
| #define GNULIB_TEST_ISWDIGIT 1
| #define GNULIB_TEST_ISWPUNCT 1
| #define GNULIB_TEST_ISWXDIGIT 1
| #define HAVE___INLINE 1
| #define GNULIB_TEST_LOCALECONV 1
| #define GNULIB_LOCALECONV 1
| #define HAVE_PTHREAD_RWLOCK 1
| #define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1
| #define GNULIB_LOCK 1
| #define GNULIB_TEST_LSTAT 1
| #define GNULIB_LSTAT 1
| #define GNULIB_TEST_MALLOC_GNU 1
| #define GNULIB_TEST_MALLOC_POSIX 1
| #define GNULIB_TEST_MBRTOC32 1
| #define GNULIB_TEST_MBRTOWC 1
| #define GNULIB_TEST_MBSCASECMP 1
| #define GNULIB_TEST_MBSINIT 1
| #define GNULIB_TEST_MBSRTOC32S 1
| #define GNULIB_TEST_MBSRTOWCS 1
| #define GNULIB_TEST_MBSZERO 1
| #define HAVE_MBTOWC 1
| #define GNULIB_TEST_MBTOWC 1
| #define GNULIB_MCEL_PREFER 1
| #define GNULIB_TEST_MEMCHR 1
| #define GNULIB_TEST_MEMPCPY 1
| #define GNULIB_TEST_MEMRCHR 1
| #define GNULIB_TEST_MKDIR 1
| #define GNULIB_TEST_MKSTEMP 1
| #define NEED_MKTIME_WORKING 1
| #define GNULIB_TEST_MKTIME 1
| #define NEED_MKTIME_INTERNAL 1
| #define GNULIB_MSVC_NOTHROW 1
| #define HAVE_NL_LANGINFO 1
| #define FUNC_NL_LANGINFO_YESEXPR_WORKS 1
| #define NL_LANGINFO_MTSAFE 1
| #define REPLACE_NL_LANGINFO 1
| #define GNULIB_TEST_NL_LANGINFO 1
| #define HAVE_C_NULLPTR 1
| #define OPEN_TRAILING_SLASH_BUG 1
| #define GNULIB_TEST_OPEN 1
| #define GNULIB_OPENAT 1
| #define GNULIB_TEST_OPENAT 1
| #define HAVE_OPENDIR 1
| #define GNULIB_TEST_OPENDIR 1
| #define GNULIB_TEST_PCLOSE 1
| #define GNULIB_TEST_POPEN 1
| #define HAVE_DECL_PROGRAM_INVOCATION_NAME 0
| #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 0
| #define GNULIB_TEST_PTHREAD_ONCE 1
| #define HAVE_RAISE 1
| #define GNULIB_TEST_RAISE 1
| #define GNULIB_TEST_RAWMEMCHR 1
| #define HAVE_READDIR 1
| #define GNULIB_TEST_READDIR 1
| #define READLINK_TRAILING_SLASH_BUG 1
| #define GNULIB_TEST_READLINK 1
| #define GNULIB_TEST_READLINKAT 1
| #define HAVE_REALLOC_0_NONNULL 1
| #define GNULIB_TEST_REALLOC_POSIX 1
| #define GNULIB_REALLOCARRAY 1
| #define GNULIB_TEST_REALLOCARRAY 1
| #define _REGEX_INCLUDE_LIMITS_H 1
| #define _REGEX_LARGE_OFFSETS 1
| #define re_syntax_options rpl_re_syntax_options
| #define re_set_syntax rpl_re_set_syntax
| #define re_compile_pattern rpl_re_compile_pattern
| #define re_compile_fastmap rpl_re_compile_fastmap
| #define re_search rpl_re_search
| #define re_search_2 rpl_re_search_2
| #define re_match rpl_re_match
| #define re_match_2 rpl_re_match_2
| #define re_set_registers rpl_re_set_registers
| #define re_comp rpl_re_comp
| #define re_exec rpl_re_exec
| #define regcomp rpl_regcomp
| #define regexec rpl_regexec
| #define regerror rpl_regerror
| #define regfree rpl_regfree
| #define HAVE_LIBINTL_H 1
| #define HAVE_DECL_ISBLANK 1
| #define GNULIB_TEST_SETENV 1
| #define HAVE_VISIBILITY 1
| #define GNULIB_TEST_SETLOCALE_NULL 1
| #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
| #define GNULIB_TEST_SIGACTION 1
| #define GNULIB_TEST_SIGPROCMASK 1
| #define STACK_DIRECTION -1
| #define HAVE_WORKING_SIGALTSTACK 1
| #define REPLACE_FUNC_STAT_FILE 1
| #define GNULIB_TEST_STAT 1
| #define GNULIB_STAT 1
| #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
| #define GNULIB_TEST_FSCANF 1
| #define GNULIB_FSCANF 1
| #define GNULIB_TEST_SCANF 1
| #define GNULIB_SCANF 1
| #define GNULIB_TEST_FGETC 1
| #define GNULIB_TEST_GETC 1
| #define GNULIB_TEST_GETCHAR 1
| #define GNULIB_TEST_FGETS 1
| #define GNULIB_TEST_FREAD 1
| #define GNULIB_TEST_FPRINTF 1
| #define GNULIB_TEST_PRINTF 1
| #define GNULIB_TEST_VFPRINTF 1
| #define GNULIB_TEST_VPRINTF 1
| #define GNULIB_TEST_FPUTC 1
| #define GNULIB_TEST_PUTC 1
| #define GNULIB_TEST_PUTCHAR 1
| #define GNULIB_TEST_FPUTS 1
| #define GNULIB_TEST_PUTS 1
| #define GNULIB_TEST_FWRITE 1
| #define HAVE_STPCPY 1
| #define GNULIB_TEST_STPCPY 1
| #define HAVE_STRCASECMP 1
| #define GNULIB_TEST_STRDUP 1
| #define GNULIB_STRERROR 1
| #define GNULIB_TEST_STRERROR 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_DECL_STRNCASECMP 1
| #define GNULIB_TEST_STRNLEN 1
| #define GNULIB_TEST_STRPTIME 1
| #define HAVE_STRTOLL 1
| #define GNULIB_TEST_STRTOLL 1
| #define GNULIB_TEMPNAME 1
| #define HAVE_DECL_LOCALTIME_R 1
| #define GNULIB_TEST_TIME_R 1
| #define GNULIB_TEST_TIME_RZ 1
| #define HAVE_TIMEGM 1
| #define GNULIB_TEST_TIMEGM 1
| #define GNULIB_TEST_TIMESPEC_GET 1
| #define GNULIB_TEST_TZSET 1
| #define GNULIB_STDIO_SINGLE_THREAD 1
| #define USE_UNLOCKED_IO GNULIB_STDIO_SINGLE_THREAD
| #define HAVE_UNSETENV 1
| #define VOID_UNSETENV 1
| #define GNULIB_TEST_UNSETENV 1
| #define HAVE_C_VARARRAYS 1
| #define GNULIB_TEST_WCRTOMB 1
| #define GNULIB_TEST_WCTYPE 1
| #define HAVE_DECL_WCWIDTH 1
| #define GNULIB_TEST_WCWIDTH 1
| #define GNULIB_TEST_WMEMCHR 1
| #define GNULIB_TEST_WMEMPCPY 1
| #define GNULIB_XALLOC 1
| #define GNULIB_XALLOC_DIE 1
| #define GNULIB_XSTDOPEN 1
| #define GNULIB_TEST_ACCEPT 1
| #define GNULIB_ACCEPT IN_DIFFUTILS_GNULIB_TESTS
| #define HAVE_C_ALIGNASOF 1
| #define HAVE_ATOLL 1
| #define GNULIB_TEST_ATOLL 1
| #define GNULIB_TEST_BIND 1
| #define GNULIB_BIND IN_DIFFUTILS_GNULIB_TESTS
| #define GNULIB_TEST_C32RTOMB 1
| #define GNULIB_TEST_C32TOB 1
| #define GNULIB_TEST_CONNECT 1
| #define GNULIB_CONNECT IN_DIFFUTILS_GNULIB_TESTS
| #define GNULIB_TEST_FDOPEN 1
| #define HAVE_FTRUNCATE 1
| #define GNULIB_TEST_FTRUNCATE 1
| #define HAVE_DUPLOCALE 1
| #define HAVE_DECL_INET_PTON 1
| #define WORDS_BIGENDIAN 1
| #define HAVE_IOCTL 1
| #define GNULIB_TEST_IOCTL 1
| #define GNULIB_IOCTL IN_DIFFUTILS_GNULIB_TESTS
| #define HAVE_ISNAND_IN_LIBC 1
| #define HAVE_ISNANF_IN_LIBC 1
| #define HAVE_ISNANL_IN_LIBC 1
| #define GNULIB_TEST_LISTEN 1
| #define GNULIB_LISTEN IN_DIFFUTILS_GNULIB_TESTS
| #define HAVE_NEWLOCALE 1
| #define GNULIB_TEST_NANOSLEEP 1
| #define HAVE_USELOCALE 1
| #define HAVE_WORKING_USELOCALE 1
| #define GNULIB_TEST_PERROR 1
| #define GNULIB_TEST_PIPE 1
| #define GNULIB_TEST_PSELECT 1
| #define GNULIB_TEST_PTHREAD_COND 1
| #define PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED 1
| #define GNULIB_TEST_PTHREAD_MUTEX 1
| #define PTHREAD_RWLOCK_UNIMPLEMENTED 1
| #define GNULIB_TEST_PTHREAD_RWLOCK 1
| #define GNULIB_TEST_PTHREAD_THREAD 1
| #define GNULIB_TEST_PTHREAD_MUTEX_TIMEDLOCK 1
| #define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1
| #define HAVE_PTHREAD_SIGMASK 1
| #define GNULIB_TEST_PTHREAD_SIGMASK 1
| #define GNULIB_TEST_PUTENV 1
| #define HAVE_INITSTATE 1
| #define HAVE_SETSTATE 1
| #define GNULIB_TEST_RANDOM 1
| #define GNULIB_TEST_RANDOM_R 1
| #define GNULIB_TEST_RMDIR 1
| #define GNULIB_TEST_SCHED_YIELD 1
| #define GNULIB_TEST_SELECT 1
| #define GNULIB_SELECT IN_DIFFUTILS_GNULIB_TESTS
| #define GNULIB_TEST_SETSOCKOPT 1
| #define GNULIB_SETSOCKOPT IN_DIFFUTILS_GNULIB_TESTS
| #define GNULIB_TEST_SIGNBIT 1
| #define HAVE_STDINT_H 1
| #define HAVE_DECL_SLEEP 1
| #define GNULIB_TEST_SLEEP 1
| #define HAVE_SNPRINTF 1
| #define GNULIB_TEST_SNPRINTF 1
| #define GNULIB_SNPRINTF IN_DIFFUTILS_GNULIB_TESTS
| #define GNULIB_TEST_SOCKET 1
| #define GNULIB_SOCKET IN_DIFFUTILS_GNULIB_TESTS
| #define GNULIB_TEST_STR_STARTSWITH 1
| #define HAVE_CATGETS 1
| #define GNULIB_TEST_STRERROR_R 1
| #define GNULIB_STRERROR_R_POSIX IN_DIFFUTILS_GNULIB_TESTS
| #define GNULIB_TEST_SYMLINK 1
| #define GNULIB_TEST_SYMLINKAT 1
| #define HAVE_IPV4 1
| #define HAVE_IPV6 1
| #define HAVE_UNIXSOCKET 1
| #define HAVE_PTHREAD_ATFORK 1
| #define GNULIB_TEST_TIME 1
| #define HAVE_STRUCT_TM_TM_GMTOFF 1
| #define HAVE_STRUCT_TM_TM_ZONE 1
| #define HAVE_TM_GMTOFF 1
| #define GNULIB_TEST_UNLINK 1
| #define GNULIB_TEST_UNLINKAT 1
| #define GNULIB_TEST_VSNZPRINTF 1
| #define HAVE_DECL_WCTOB 1
| #define GNULIB_TEST_WCTOB 1
| #define GNULIB_TEST_WCTOMB 1
| #define HAVE_STDINT_H 1
| #define GNULIB_NO_VLA 1
| #define GNULIB_EXCLUDE_SINGLE_THREAD 1
| #define GNULIB_MBRTOWC_SINGLE_THREAD 1
| #define GNULIB_REGEX_SINGLE_THREAD 1
| #define GNULIB_WCHAR_SINGLE_LOCALE 1
| #define GNULIB_MBRTOC32_REGULAR 1
| #define HAVE_STRUCT_STAT_ST_RDEV 1
| #define HAVE_DIRENT_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_WORKING_VFORK 1
| #define HAVE_WORKING_FORK 1
| #define DEFAULT_EDITOR_PROGRAM "ed"
| #define PR_PROGRAM "/usr/bin/pr"
| #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
| #define HAVE_CFLOCALECOPYCURRENT 1
| /* end confdefs.h. */
|
| #include <stdlib.h>
| #include <iconv.h>
|
| int
| main (void)
| {
| iconv_t cd = iconv_open("","");
| iconv(cd,NULL,NULL,NULL,NULL);
| iconv_close(cd);
| ;
| return 0;
| }
configure:60943: /opt/local/bin/gcc-mp-14 -std=gnu23 -o conftest -pipe
-Os -ggdb -O0 -arch ppc -I/opt/local/include -L/opt/local/lib
-Wl,-headerpad_max_install_names -arch ppc conftest.c -liconv >&5
configure:60943: $? = 0
configure:60955: result: yes
configure:60958: checking for working iconv
configure:61080: /opt/local/bin/gcc-mp-14 -std=gnu23 -o conftest -pipe
-Os -ggdb -O0 -arch ppc -I/opt/local/include -L/opt/local/lib
-Wl,-headerpad_max_install_names -arch ppc conftest.c -liconv >&5
conftest.c: In function 'main':
conftest.c:559:29: error: passing argument 2 of 'libiconv' from
incompatible pointer type [-Wincompatible-pointer-types]
559 | (char **) &inptr, &inbytesleft,
| ^~~~~~~~~~~~~~~~
| |
| char **
In file included from conftest.c:541:
/opt/local/include/iconv.h:82:48: note: expected 'const char **' but
argument is of type 'char **'
82 | extern size_t iconv (iconv_t cd, const char* * inbuf, size_t
*inbytesleft, char* * outbuf, size_t *outbytesleft);
| ~~~~~~~~~~~~~~^~~~~
conftest.c:579:29: error: passing argument 2 of 'libiconv' from
incompatible pointer type [-Wincompatible-pointer-types]
579 | (char **) &inptr, &inbytesleft,
| ^~~~~~~~~~~~~~~~
| |
| char **
/opt/local/include/iconv.h:82:48: note: expected 'const char **' but
argument is of type 'char **'
82 | extern size_t iconv (iconv_t cd, const char* * inbuf, size_t
*inbytesleft, char* * outbuf, size_t *outbytesleft);
| ~~~~~~~~~~~~~~^~~~~
conftest.c:598:29: error: passing argument 2 of 'libiconv' from
incompatible pointer type [-Wincompatible-pointer-types]
598 | (char **) &inptr, &inbytesleft,
| ^~~~~~~~~~~~~~~~
| |
| char **
/opt/local/include/iconv.h:82:48: note: expected 'const char **' but
argument is of type 'char **'
82 | extern size_t iconv (iconv_t cd, const char* * inbuf, size_t
*inbytesleft, char* * outbuf, size_t *outbytesleft);
| ~~~~~~~~~~~~~~^~~~~
configure:61080: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU diffutils"
| #define PACKAGE_TARNAME "diffutils"
| #define PACKAGE_VERSION "3.12"
| #define PACKAGE_STRING "GNU diffutils 3.12"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL "https://www.gnu.org/software/diffutils/"
| #define PACKAGE "diffutils"
| #define VERSION "3.12"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_STDBOOL_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_DIRENT_H 1
| #define HAVE_FNMATCH_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LANGINFO_H 1
| #define HAVE_XLOCALE_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_PTHREAD_H 1
| #define HAVE_STDCKDINT_H 1
| #define HAVE_SYS_RANDOM_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_MATH_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SEMAPHORE_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_UN_H 1
| #define HAVE_SYS_UIO_H 1
| #define STDC_HEADERS 1
| #define _ALL_SOURCE 1
| #define _COSMO_SOURCE 1
| #define _DARWIN_C_SOURCE 1
| #define _GNU_SOURCE 1
| #define _HPUX_ALT_XOPEN_SOCKET_API 1
| #define _NETBSD_SOURCE 1
| #define _OPENBSD_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
| #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_DFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_EXT__ 1
| #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
| #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
| #define __STDC_WANT_LIB_EXT2__ 1
| #define __STDC_WANT_MATH_SPEC_FUNCS__ 1
| #define _TANDEM_SOURCE 1
| #define __EXTENSIONS__ 1
| #define _LINUX_SOURCE_COMPAT 1
| #define __USE_MINGW_ANSI_STDIO 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_ALLOCA 1
| #define HAVE_WINT_T 1
| #define HAVE_BTOWC 1
| #define HAVE_MBRTOWC 1
| #define HAVE_MBSINIT 1
| #define HAVE_FCHDIR 1
| #define HAVE_FCNTL 1
| #define HAVE_SYMLINK 1
| #define HAVE_FNMATCH 1
| #define HAVE_MBSRTOWCS 1
| #define HAVE_GETDTABLESIZE 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_ISBLANK 1
| #define HAVE_ISWCNTRL 1
| #define HAVE_LSTAT 1
| #define HAVE_MPROTECT 1
| #define HAVE_MKSTEMP 1
| #define HAVE_PCLOSE 1
| #define HAVE_POPEN 1
| #define HAVE_READLINK 1
| #define HAVE_ISWCTYPE 1
| #define HAVE_SETENV 1
| #define HAVE_SIGACTION 1
| #define HAVE_SIGALTSTACK 1
| #define HAVE_SIGINTERRUPT 1
| #define HAVE_SETRLIMIT 1
| #define HAVE_GETRLIMIT 1
| #define HAVE_STRPTIME 1
| #define HAVE_STRTOIMAX 1
| #define HAVE_LOCALTIME_R 1
| #define HAVE_WCRTOMB 1
| #define HAVE_WCWIDTH 1
| #define HAVE_PIPE 1
| #define HAVE_PSELECT 1
| #define HAVE_PTHREAD_SIGMASK 1
| #define HAVE_SLEEP 1
| #define HAVE_SNPRINTF 1
| #define HAVE_SHUTDOWN 1
| #define HAVE_WCTOB 1
| #define HAVE_SIGPROCMASK 1
| #define HAVE_FORK 1
| #define HAVE_VFORK 1
| #define HAVE_LANGINFO_CODESET 1
| #define BITSIZEOF_WCHAR_T 32
| #define HAVE_MBSTATE_T 1
| #define HAVE_MALLOC_POSIX 1
| #define restrict __restrict__
| #define HAVE_DECL_STRERROR_R 1
| #define HAVE_STRERROR_R 1
| #define HAVE_DECL_FCHDIR 1
| #define HAVE_WORKING_O_NOATIME 0
| #define HAVE_WORKING_O_NOFOLLOW 0
| #define FUNC_FFLUSH_STDIN 0
| #define HAVE_DECL_GETDTABLESIZE 1
| #define HAVE_GETOPT_H 1
| #define HAVE_GETOPT_LONG_ONLY 1
| #define HAVE_PTHREAD_API 1
| #define SETLOCALE_NULL_ALL_MTSAFE 0
| #define SETLOCALE_NULL_ONE_MTSAFE 1
| #ifndef __powerpc__
| #define __powerpc__ 1
| #endif
| #ifndef __powerpc__
| #define __powerpc__ 1
| #endif
| #define HAVE_LONG_LONG_INT 1
| #define HAVE_UNSIGNED_LONG_LONG_INT 1
| #define BITSIZEOF_PTRDIFF_T 32
| #define BITSIZEOF_SIZE_T 32
| #define BITSIZEOF_SIG_ATOMIC_T 32
| #define BITSIZEOF_WCHAR_T 32
| #define BITSIZEOF_WINT_T 32
| #define HAVE_SIGNED_SIG_ATOMIC_T 1
| #define HAVE_SIGNED_WCHAR_T 1
| #define HAVE_SIGNED_WINT_T 1
| #define PTRDIFF_T_SUFFIX
| #define SIZE_T_SUFFIX ul
| #define SIG_ATOMIC_T_SUFFIX
| #define WCHAR_T_SUFFIX
| #define WINT_T_SUFFIX
| #define HAVE_TOWLOWER 1
| #define HAVE_LC_MESSAGES 1
| #define USE_POSIX_THREADS 1
| #define HAVE_MALLOC_0_NONNULL 1
| #define MAP_ANONYMOUS MAP_ANON
| #define HAVE_MAP_ANONYMOUS 1
| #define HAVE_DECL_MEMRCHR 0
| #define HAVE_MINMAX_IN_SYS_PARAM_H 1
| #define TIME_T_IS_SIGNED 1
| #define HAVE_DECL_ALARM 1
| #define HAVE_STRUCT_TM_TM_GMTOFF 1
| #define HAVE_STRUCT_TM_TM_ZONE 1
| #define HAVE_TM_GMTOFF 1
| #define PROMOTED_MODE_T int
| #define HAVE_PTHREAD_T 1
| #define HAVE_SIGSET_T 1
| #define HAVE_SCHED_H 1
| #define HAVE_DECL_SETENV 1
| #define HAVE_DECL__PUTENV 0
| #define HAVE_SEARCH_H 1
| #define HAVE_TSEARCH 1
| #define WORDS_BIGENDIAN 1
| #define HAVE_DECL_FCLOSEALL 0
| #define HAVE_DECL_GETW 1
| #define HAVE_DECL_PUTW 1
| #define HAVE_DECL_ECVT 1
| #define HAVE_DECL_FCVT 1
| #define HAVE_DECL_GCVT 1
| #define HAVE_DECL_STRDUP 1
| #define REPLACE_STRERROR_0 1
| #define HAVE_STRERROR_R 1
| #define HAVE_DECL_STRNLEN 0
| #define HAVE_DECL_STRTOIMAX 1
| #define _USE_STD_STAT 1
| #define HAVE_DECL_EXECVPE 0
| #define HAVE_DECL_CLEARERR_UNLOCKED 1
| #define HAVE_DECL_FEOF_UNLOCKED 1
| #define HAVE_DECL_FERROR_UNLOCKED 1
| #define HAVE_DECL_FFLUSH_UNLOCKED 0
| #define HAVE_DECL_FGETS_UNLOCKED 0
| #define HAVE_DECL_FPUTC_UNLOCKED 0
| #define HAVE_DECL_FPUTS_UNLOCKED 0
| #define HAVE_DECL_FREAD_UNLOCKED 0
| #define HAVE_DECL_FWRITE_UNLOCKED 0
| #define HAVE_DECL_GETC_UNLOCKED 1
| #define HAVE_DECL_GETCHAR_UNLOCKED 1
| #define HAVE_DECL_PUTC_UNLOCKED 1
| #define HAVE_DECL_PUTCHAR_UNLOCKED 1
| #define HAVE_DECL_UNSETENV 1
| #define HAVE_DECL_WCSDUP 0
| #define HAVE_SHUTDOWN 1
| #define HAVE_STRUCT_SOCKADDR_STORAGE 1
| #define HAVE_SA_FAMILY_T 1
| #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
| #define HAVE_IPV4 1
| #define HAVE_IPV6 1
| #define DBL_EXPBIT0_WORD 0
| #define DBL_EXPBIT0_BIT 20
| #define FLT_EXPBIT0_WORD 0
| #define FLT_EXPBIT0_BIT 23
| #define LDBL_EXPBIT0_WORD 0
| #define LDBL_EXPBIT0_BIT 20
| #define HAVE_DECL_INITSTATE 1
| #define HAVE_DECL_SETSTATE 1
| #define HAVE_DECL_SNPRINTF 1
| #define HAVE_INTTYPES_H_WITH_UINTMAX 1
| #define HAVE_STDINT_H_WITH_UINTMAX 1
| #define HAVE_INTMAX_T 1
| #define HAVE_WCSLEN 1
| #define HAVE_SNPRINTF 1
| #define HAVE_WCRTOMB 1
| #define HAVE_DECL__SNPRINTF 0
| #define HAVE_SNPRINTF_RETVAL_C99 1
| #define HAVE_SNPRINTF_TRUNCATION_C99 1
| #define HAVE_ALLOCA 1
| #define HAVE_C_STATIC_ASSERT 1
| #define HAVE_C_BOOL 1
| #define GNULIB_TEST_BTOC32 1
| #define GNULIB_TEST_BTOWC 1
| #define HAVE___BUILTIN_EXPECT 1
| #define GNULIB_TEST_C32_APPLY_TYPE_TEST 1
| #define GNULIB_TEST_C32_GET_TYPE_TEST 1
| #define GNULIB_TEST_C32ISALNUM 1
| #define GNULIB_TEST_C32ISALPHA 1
| #define GNULIB_TEST_C32ISBLANK 1
| #define GNULIB_TEST_C32ISCNTRL 1
| #define GNULIB_TEST_C32ISDIGIT 1
| #define GNULIB_TEST_C32ISGRAPH 1
| #define GNULIB_TEST_C32ISLOWER 1
| #define GNULIB_TEST_C32ISPRINT 1
| #define GNULIB_TEST_C32ISPUNCT 1
| #define GNULIB_TEST_C32ISSPACE 1
| #define GNULIB_TEST_C32ISUPPER 1
| #define GNULIB_TEST_C32ISXDIGIT 1
| #define GNULIB_TEST_C32TOLOWER 1
| #define GNULIB_TEST_C32WIDTH 1
| #define GNULIB_TEST_CALLOC_GNU 1
| #define GNULIB_TEST_CALLOC_POSIX 1
| #define GNULIB_TEST_CHDIR 1
| #define GNULIB_TEST_CLOEXEC 1
| #define GNULIB_TEST_CLOSE 1
| #define GNULIB_CLOSE 1
| #define HAVE_CLOSEDIR 1
| #define GNULIB_TEST_CLOSEDIR 1
| #define HAVE_STRUCT_DIRENT_D_TYPE 1
| #define HAVE_DECL_DIRFD 1
| #define GNULIB_TEST_DIRFD 1
| #define GNULIB_DIRNAME 1
| #define GNULIB_TEST_DUP 1
| #define GNULIB_TEST_DUP2 1
| #define GNULIB_TEST_ENVIRON 1
| #define GNULIB_TEST_FCHDIR 1
| #define GNULIB_TEST_FCNTL 1
| #define HAVE_DECL_FDOPENDIR 0
| #define GNULIB_TEST_FDOPENDIR 1
| #define GNULIB_FDOPENDIR 1
| #define HAVE_STRUCT_STAT_ST_BLOCKS 1
| #define HAVE_ST_BLOCKS 1
| #define GNULIB_FILENAMECAT 1
| #define FLEXIBLE_ARRAY_MEMBER /**/
| #define GNULIB_TEST_FNMATCH 1
| #define GNULIB_FNMATCH_GNU 1
| #define GNULIB_TEST_FOPEN 1
| #define GNULIB_FOPEN_GNU 1
| #define GNULIB_TEST_FOPEN_GNU 1
| #define GNULIB_TEST_FREE_POSIX 1
| #define GNULIB_TEST_FREOPEN 1
| #define GNULIB_TEST_FSTAT 1
| #define GNULIB_FSTAT 1
| #define GNULIB_TEST_FSTATAT 1
| #define GNULIB_FSTATAT 1
| #define GNULIB_TEST_GETCWD 1
| #define GNULIB_TEST_GETDTABLESIZE 1
| #define __GETOPT_PREFIX rpl_
| #define GNULIB_TEST_GETOPT_POSIX 1
| #define GNULIB_TEST_GETPAGESIZE 1
| #define HAVE_GETPROGNAME 1
| #define HAVE_DECL_PROGRAM_INVOCATION_NAME 0
| #define GNULIB_TEST_GETPROGNAME 1
| #define GNULIB_TEST_GETRANDOM 1
| #define GETTIMEOFDAY_TIMEZONE struct timezone
| #define GNULIB_TEST_GETTIMEOFDAY 1
| #define GNULIB_LOCALEDIR "/opt/local/share/locale"
| #define GNULIB_ISBLANK 1
| #define HAVE_ISWBLANK 1
| #define HAVE_DECL_ISWBLANK 1
| #define GNULIB_TEST_ISWBLANK 1
| #define GNULIB_TEST_ISWCTYPE 1
| #define GNULIB_TEST_ISWDIGIT 1
| #define GNULIB_TEST_ISWPUNCT 1
| #define GNULIB_TEST_ISWXDIGIT 1
| #define HAVE___INLINE 1
| #define GNULIB_TEST_LOCALECONV 1
| #define GNULIB_LOCALECONV 1
| #define HAVE_PTHREAD_RWLOCK 1
| #define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1
| #define GNULIB_LOCK 1
| #define GNULIB_TEST_LSTAT 1
| #define GNULIB_LSTAT 1
| #define GNULIB_TEST_MALLOC_GNU 1
| #define GNULIB_TEST_MALLOC_POSIX 1
| #define GNULIB_TEST_MBRTOC32 1
| #define GNULIB_TEST_MBRTOWC 1
| #define GNULIB_TEST_MBSCASECMP 1
| #define GNULIB_TEST_MBSINIT 1
| #define GNULIB_TEST_MBSRTOC32S 1
| #define GNULIB_TEST_MBSRTOWCS 1
| #define GNULIB_TEST_MBSZERO 1
| #define HAVE_MBTOWC 1
| #define GNULIB_TEST_MBTOWC 1
| #define GNULIB_MCEL_PREFER 1
| #define GNULIB_TEST_MEMCHR 1
| #define GNULIB_TEST_MEMPCPY 1
| #define GNULIB_TEST_MEMRCHR 1
| #define GNULIB_TEST_MKDIR 1
| #define GNULIB_TEST_MKSTEMP 1
| #define NEED_MKTIME_WORKING 1
| #define GNULIB_TEST_MKTIME 1
| #define NEED_MKTIME_INTERNAL 1
| #define GNULIB_MSVC_NOTHROW 1
| #define HAVE_NL_LANGINFO 1
| #define FUNC_NL_LANGINFO_YESEXPR_WORKS 1
| #define NL_LANGINFO_MTSAFE 1
| #define REPLACE_NL_LANGINFO 1
| #define GNULIB_TEST_NL_LANGINFO 1
| #define HAVE_C_NULLPTR 1
| #define OPEN_TRAILING_SLASH_BUG 1
| #define GNULIB_TEST_OPEN 1
| #define GNULIB_OPENAT 1
| #define GNULIB_TEST_OPENAT 1
| #define HAVE_OPENDIR 1
| #define GNULIB_TEST_OPENDIR 1
| #define GNULIB_TEST_PCLOSE 1
| #define GNULIB_TEST_POPEN 1
| #define HAVE_DECL_PROGRAM_INVOCATION_NAME 0
| #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 0
| #define GNULIB_TEST_PTHREAD_ONCE 1
| #define HAVE_RAISE 1
| #define GNULIB_TEST_RAISE 1
| #define GNULIB_TEST_RAWMEMCHR 1
| #define HAVE_READDIR 1
| #define GNULIB_TEST_READDIR 1
| #define READLINK_TRAILING_SLASH_BUG 1
| #define GNULIB_TEST_READLINK 1
| #define GNULIB_TEST_READLINKAT 1
| #define HAVE_REALLOC_0_NONNULL 1
| #define GNULIB_TEST_REALLOC_POSIX 1
| #define GNULIB_REALLOCARRAY 1
| #define GNULIB_TEST_REALLOCARRAY 1
| #define _REGEX_INCLUDE_LIMITS_H 1
| #define _REGEX_LARGE_OFFSETS 1
| #define re_syntax_options rpl_re_syntax_options
| #define re_set_syntax rpl_re_set_syntax
| #define re_compile_pattern rpl_re_compile_pattern
| #define re_compile_fastmap rpl_re_compile_fastmap
| #define re_search rpl_re_search
| #define re_search_2 rpl_re_search_2
| #define re_match rpl_re_match
| #define re_match_2 rpl_re_match_2
| #define re_set_registers rpl_re_set_registers
| #define re_comp rpl_re_comp
| #define re_exec rpl_re_exec
| #define regcomp rpl_regcomp
| #define regexec rpl_regexec
| #define regerror rpl_regerror
| #define regfree rpl_regfree
| #define HAVE_LIBINTL_H 1
| #define HAVE_DECL_ISBLANK 1
| #define GNULIB_TEST_SETENV 1
| #define HAVE_VISIBILITY 1
| #define GNULIB_TEST_SETLOCALE_NULL 1
| #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
| #define GNULIB_TEST_SIGACTION 1
| #define GNULIB_TEST_SIGPROCMASK 1
| #define STACK_DIRECTION -1
| #define HAVE_WORKING_SIGALTSTACK 1
| #define REPLACE_FUNC_STAT_FILE 1
| #define GNULIB_TEST_STAT 1
| #define GNULIB_STAT 1
| #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
| #define GNULIB_TEST_FSCANF 1
| #define GNULIB_FSCANF 1
| #define GNULIB_TEST_SCANF 1
| #define GNULIB_SCANF 1
| #define GNULIB_TEST_FGETC 1
| #define GNULIB_TEST_GETC 1
| #define GNULIB_TEST_GETCHAR 1
| #define GNULIB_TEST_FGETS 1
| #define GNULIB_TEST_FREAD 1
| #define GNULIB_TEST_FPRINTF 1
| #define GNULIB_TEST_PRINTF 1
| #define GNULIB_TEST_VFPRINTF 1
| #define GNULIB_TEST_VPRINTF 1
| #define GNULIB_TEST_FPUTC 1
| #define GNULIB_TEST_PUTC 1
| #define GNULIB_TEST_PUTCHAR 1
| #define GNULIB_TEST_FPUTS 1
| #define GNULIB_TEST_PUTS 1
| #define GNULIB_TEST_FWRITE 1
| #define HAVE_STPCPY 1
| #define GNULIB_TEST_STPCPY 1
| #define HAVE_STRCASECMP 1
| #define GNULIB_TEST_STRDUP 1
| #define GNULIB_STRERROR 1
| #define GNULIB_TEST_STRERROR 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_DECL_STRNCASECMP 1
| #define GNULIB_TEST_STRNLEN 1
| #define GNULIB_TEST_STRPTIME 1
| #define HAVE_STRTOLL 1
| #define GNULIB_TEST_STRTOLL 1
| #define GNULIB_TEMPNAME 1
| #define HAVE_DECL_LOCALTIME_R 1
| #define GNULIB_TEST_TIME_R 1
| #define GNULIB_TEST_TIME_RZ 1
| #define HAVE_TIMEGM 1
| #define GNULIB_TEST_TIMEGM 1
| #define GNULIB_TEST_TIMESPEC_GET 1
| #define GNULIB_TEST_TZSET 1
| #define GNULIB_STDIO_SINGLE_THREAD 1
| #define USE_UNLOCKED_IO GNULIB_STDIO_SINGLE_THREAD
| #define HAVE_UNSETENV 1
| #define VOID_UNSETENV 1
| #define GNULIB_TEST_UNSETENV 1
| #define HAVE_C_VARARRAYS 1
| #define GNULIB_TEST_WCRTOMB 1
| #define GNULIB_TEST_WCTYPE 1
| #define HAVE_DECL_WCWIDTH 1
| #define GNULIB_TEST_WCWIDTH 1
| #define GNULIB_TEST_WMEMCHR 1
| #define GNULIB_TEST_WMEMPCPY 1
| #define GNULIB_XALLOC 1
| #define GNULIB_XALLOC_DIE 1
| #define GNULIB_XSTDOPEN 1
| #define GNULIB_TEST_ACCEPT 1
| #define GNULIB_ACCEPT IN_DIFFUTILS_GNULIB_TESTS
| #define HAVE_C_ALIGNASOF 1
| #define HAVE_ATOLL 1
| #define GNULIB_TEST_ATOLL 1
| #define GNULIB_TEST_BIND 1
| #define GNULIB_BIND IN_DIFFUTILS_GNULIB_TESTS
| #define GNULIB_TEST_C32RTOMB 1
| #define GNULIB_TEST_C32TOB 1
| #define GNULIB_TEST_CONNECT 1
| #define GNULIB_CONNECT IN_DIFFUTILS_GNULIB_TESTS
| #define GNULIB_TEST_FDOPEN 1
| #define HAVE_FTRUNCATE 1
| #define GNULIB_TEST_FTRUNCATE 1
| #define HAVE_DUPLOCALE 1
| #define HAVE_DECL_INET_PTON 1
| #define WORDS_BIGENDIAN 1
| #define HAVE_IOCTL 1
| #define GNULIB_TEST_IOCTL 1
| #define GNULIB_IOCTL IN_DIFFUTILS_GNULIB_TESTS
| #define HAVE_ISNAND_IN_LIBC 1
| #define HAVE_ISNANF_IN_LIBC 1
| #define HAVE_ISNANL_IN_LIBC 1
| #define GNULIB_TEST_LISTEN 1
| #define GNULIB_LISTEN IN_DIFFUTILS_GNULIB_TESTS
| #define HAVE_NEWLOCALE 1
| #define GNULIB_TEST_NANOSLEEP 1
| #define HAVE_USELOCALE 1
| #define HAVE_WORKING_USELOCALE 1
| #define GNULIB_TEST_PERROR 1
| #define GNULIB_TEST_PIPE 1
| #define GNULIB_TEST_PSELECT 1
| #define GNULIB_TEST_PTHREAD_COND 1
| #define PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED 1
| #define GNULIB_TEST_PTHREAD_MUTEX 1
| #define PTHREAD_RWLOCK_UNIMPLEMENTED 1
| #define GNULIB_TEST_PTHREAD_RWLOCK 1
| #define GNULIB_TEST_PTHREAD_THREAD 1
| #define GNULIB_TEST_PTHREAD_MUTEX_TIMEDLOCK 1
| #define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1
| #define HAVE_PTHREAD_SIGMASK 1
| #define GNULIB_TEST_PTHREAD_SIGMASK 1
| #define GNULIB_TEST_PUTENV 1
| #define HAVE_INITSTATE 1
| #define HAVE_SETSTATE 1
| #define GNULIB_TEST_RANDOM 1
| #define GNULIB_TEST_RANDOM_R 1
| #define GNULIB_TEST_RMDIR 1
| #define GNULIB_TEST_SCHED_YIELD 1
| #define GNULIB_TEST_SELECT 1
| #define GNULIB_SELECT IN_DIFFUTILS_GNULIB_TESTS
| #define GNULIB_TEST_SETSOCKOPT 1
| #define GNULIB_SETSOCKOPT IN_DIFFUTILS_GNULIB_TESTS
| #define GNULIB_TEST_SIGNBIT 1
| #define HAVE_STDINT_H 1
| #define HAVE_DECL_SLEEP 1
| #define GNULIB_TEST_SLEEP 1
| #define HAVE_SNPRINTF 1
| #define GNULIB_TEST_SNPRINTF 1
| #define GNULIB_SNPRINTF IN_DIFFUTILS_GNULIB_TESTS
| #define GNULIB_TEST_SOCKET 1
| #define GNULIB_SOCKET IN_DIFFUTILS_GNULIB_TESTS
| #define GNULIB_TEST_STR_STARTSWITH 1
| #define HAVE_CATGETS 1
| #define GNULIB_TEST_STRERROR_R 1
| #define GNULIB_STRERROR_R_POSIX IN_DIFFUTILS_GNULIB_TESTS
| #define GNULIB_TEST_SYMLINK 1
| #define GNULIB_TEST_SYMLINKAT 1
| #define HAVE_IPV4 1
| #define HAVE_IPV6 1
| #define HAVE_UNIXSOCKET 1
| #define HAVE_PTHREAD_ATFORK 1
| #define GNULIB_TEST_TIME 1
| #define HAVE_STRUCT_TM_TM_GMTOFF 1
| #define HAVE_STRUCT_TM_TM_ZONE 1
| #define HAVE_TM_GMTOFF 1
| #define GNULIB_TEST_UNLINK 1
| #define GNULIB_TEST_UNLINKAT 1
| #define GNULIB_TEST_VSNZPRINTF 1
| #define HAVE_DECL_WCTOB 1
| #define GNULIB_TEST_WCTOB 1
| #define GNULIB_TEST_WCTOMB 1
| #define HAVE_STDINT_H 1
| #define GNULIB_NO_VLA 1
| #define GNULIB_EXCLUDE_SINGLE_THREAD 1
| #define GNULIB_MBRTOWC_SINGLE_THREAD 1
| #define GNULIB_REGEX_SINGLE_THREAD 1
| #define GNULIB_WCHAR_SINGLE_LOCALE 1
| #define GNULIB_MBRTOC32_REGULAR 1
| #define HAVE_STRUCT_STAT_ST_RDEV 1
| #define HAVE_DIRENT_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_WORKING_VFORK 1
| #define HAVE_WORKING_FORK 1
| #define DEFAULT_EDITOR_PROGRAM "ed"
| #define PR_PROGRAM "/usr/bin/pr"
| #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
| #define HAVE_CFLOCALECOPYCURRENT 1
| /* end confdefs.h. */
|
| #include <iconv.h>
| #include <string.h>
| int main ()
| {
| int result = 0;
| /* Test against AIX 5.1 bug: Failures are not distinguishable from
successful
| returns. */
| {
| iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
| if (cd_utf8_to_88591 != (iconv_t)(-1))
| {
| static const char input[] = "\342\202\254"; /* EURO SIGN */
| char buf[10];
| const char *inptr = input;
| size_t inbytesleft = strlen (input);
| char *outptr = buf;
| size_t outbytesleft = sizeof (buf);
| size_t res = iconv (cd_utf8_to_88591,
| (char **) &inptr, &inbytesleft,
| &outptr, &outbytesleft);
| if (res == 0)
| result |= 1;
| iconv_close (cd_utf8_to_88591);
| }
| }
| /* Test against Solaris 10 bug: Failures are not distinguishable
from
| successful returns. */
| {
| iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
| if (cd_ascii_to_88591 != (iconv_t)(-1))
| {
| static const char input[] = "\263";
| char buf[10];
| const char *inptr = input;
| size_t inbytesleft = strlen (input);
| char *outptr = buf;
| size_t outbytesleft = sizeof (buf);
| size_t res = iconv (cd_ascii_to_88591,
| (char **) &inptr, &inbytesleft,
| &outptr, &outbytesleft);
| if (res == 0)
| result |= 2;
| iconv_close (cd_ascii_to_88591);
| }
| }
| /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
| {
| iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
| if (cd_88591_to_utf8 != (iconv_t)(-1))
| {
| static const char input[] = "\304";
| static char buf[2] = { (char)0xDE, (char)0xAD };
| const char *inptr = input;
| size_t inbytesleft = 1;
| char *outptr = buf;
| size_t outbytesleft = 1;
| size_t res = iconv (cd_88591_to_utf8,
| (char **) &inptr, &inbytesleft,
| &outptr, &outbytesleft);
| if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] !=
(char)0xAD)
| result |= 4;
| iconv_close (cd_88591_to_utf8);
| }
| }
| #if 0 /* This bug could be worked around by the caller. */
| /* Test against HP-UX 11.11 bug: Positive return value instead of
0. */
| {
| iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
| if (cd_88591_to_utf8 != (iconv_t)(-1))
| {
| static const char input[] = "\304rger mit b\366sen B\374bchen
ohne Augenma\337";
| char buf[50];
| const char *inptr = input;
| size_t inbytesleft = strlen (input);
| char *outptr = buf;
| size_t outbytesleft = sizeof (buf);
| size_t res = iconv (cd_88591_to_utf8,
| (char **) &inptr, &inbytesleft,
| &outptr, &outbytesleft);
| if ((int)res > 0)
| result |= 8;
| iconv_close (cd_88591_to_utf8);
| }
| }
| #endif
| /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8
is
| provided. */
| if (/* Try standardized names. */
| iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
| /* Try IRIX, OSF/1 names. */
| && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
| /* Try AIX names. */
| && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
| /* Try HP-UX names. */
| && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
| result |= 16;
| return result;
| }
configure:61096: result: no
--
Greetings
Pete
A monsoon is a French gentleman.