bug-gnulib
[Top][All Lists]
Advanced

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

Cannot compile gettext-0.18.1.1 on latest Mac OS X


From: Gary V. Vaughan
Subject: Cannot compile gettext-0.18.1.1 on latest Mac OS X
Date: Sun, 2 Oct 2011 19:23:13 +0700

Hi Bruno,

I wanted to bootstrap latest GNU coreutils master on my Mac, but cannot
because it requires gettext-0.18.1.

I didn't bother with gettext-0.18.1, but tried to compile gettext-0.18.1.1
without success:

  $ wget http://ftpmirror.gnu.org/gettext/gettext-0.18.1.1.tar.gz
  ...
  $ wget ftp://ftp.gnu.org/gnu/gettext/gettext-0.18.1.1.tar.gz.sig
  ...
  $ gpg --verify gettext-0.18.1.1.tar.gz.sig
  gpg: Signature made Mon  7 Jun 05:04:02 2010 ICT using DSA key ID F059B1D1
  gpg: requesting key F059B1D1 from hkp server keys.gnupg.net
  gpg: key F059B1D1: public key "Bruno Haible (Open Source Development) 
<address@hidden>" imported
  gpg: 3 marginal(s) needed, 1 complete(s) needed, classic trust model
  gpg: depth: 0  valid:   1  signed:   3  trust: 0-, 0q, 0n, 0m, 0f, 1u
  gpg: depth: 1  valid:   3  signed:   0  trust: 3-, 0q, 0n, 0m, 0f, 0u
  gpg: next trustdb check due at 2021-03-24
  gpg: Total number processed: 1
  gpg:               imported: 1
  gpg: Good signature from "Bruno Haible (Open Source Development) 
<address@hidden>"
  gpg: WARNING: This key is not certified with a trusted signature!
  gpg:          There is no indication that the signature belongs to the owner.
  Primary key fingerprint: 1736 90D4 963E 5FC4 6917  7FA7 C71A 4C65 F059 B1D1
  $ tar zxf gettext-0.18.1.1.tar.gz
  $ mkcd gettext-0.18.1.1/+build
  $ ../configure
  ...
  checking whether stpncpy is declared without a macro... yes
  checking for stpncpy... yes
  checking whether stpncpy is declared without a macro... yes
  checking for working stpncpy... no
  ...
  $ make
          /bin/sh ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 
-DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. 
-I../../../gettext-tools/gnulib-lib -I..  -I../intl 
-I../../../gettext-tools/intl -I.. -I../../../gettext-tools 
-DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1  -I../intl   
-I///usr/include/libxml2 -I../../../gettext-tools/gnulib-lib/libcroco    -g -O2 
-c -o stpncpy.lo ../../../gettext-tools/gnulib-lib/stpncpy.c
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" 
-DEXEEXT=\"\" -I. -I../../../gettext-tools/gnulib-lib -I.. -I../intl 
-I../../../gettext-tools/intl -I.. -I../../../gettext-tools 
-DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -I../intl 
-I///usr/include/libxml2 -I../../../gettext-tools/gnulib-lib/libcroco -g -O2 -c 
../../../gettext-tools/gnulib-lib/stpncpy.c  -fno-common -DPIC -o 
.libs/stpncpy.o
../../../gettext-tools/gnulib-lib/stpncpy.c:34: error: expected declaration 
specifiers or ‘...’ before numeric constant
../../../gettext-tools/gnulib-lib/stpncpy.c:34: error: expected ‘)’ before ‘!=’ 
token
../../../gettext-tools/gnulib-lib/stpncpy.c:34: error: expected ‘)’ before ‘?’ 
token
make[4]: *** [stpncpy.lo] Error 1
  $ cat -n ../gettext-tools/gnulib-lib/stpncpy.c | sed '30,37p;d'
   30 
   31  /* Copy no more than N bytes of SRC to DST, returning a pointer past the
   32     last non-NUL byte written into DST.  */
   33  char *
   34  __stpncpy (char *dest, const char *src, size_t n)
   35  {
   36    char c;
   37    char *s = dest;
  $ find .. -type f -exec fgrep __stpncpy {} \;
  # define __stpncpy stpncpy
  __stpncpy (char *dest, const char *src, size_t n)
  weak_alias (__stpncpy, stpncpy)
        * stpncpy.c (__stpncpy): Likewise.
  $ grep stpncpy /usr/include/*
  /usr/include/string.h:char    *stpncpy(char *, const char *, size_t) 
__OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3;

Even though Mac OS 10.7.1 has stpncpy, and even though gnulib detects that it 
has
stpncpy, it goes ahead and tries to compile a program that redefines the 
function,
causing the error messages above.

Here's the excerpt from gettext-tools/config.log:

configure:40577: checking for working stpncpy
configure:40626: gcc -std=gnu99 -o conftest -g -O2   conftest.c  >&5
conftest.c:412: error: expected declaration specifiers or '...' before numeric 
constant
conftest.c:412: error: expected ')' before '!=' token
conftest.c:412: error: expected ')' before '?' token
configure:40626: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */                          
| #define PACKAGE_NAME ""                   
| #define PACKAGE_TARNAME ""                
| #define PACKAGE_VERSION ""                
| #define PACKAGE_STRING ""                 
| #define PACKAGE_BUGREPORT ""              
| #define PACKAGE_URL ""                    
| #define PACKAGE "gettext-tools"           
| #define VERSION "0.18.1"                  
| #define STDC_HEADERS 1                    
| #define HAVE_SYS_TYPES_H 1                
| #define HAVE_SYS_STAT_H 1                 
| #define HAVE_STDLIB_H 1                   
| #define HAVE_STRING_H 1                   
| #define HAVE_MEMORY_H 1                   
| #define HAVE_STRINGS_H 1                  
| #define HAVE_INTTYPES_H 1                 
| #define HAVE_STDINT_H 1                   
| #define HAVE_UNISTD_H 1                   
| #define __EXTENSIONS__ 1                  
| #define _ALL_SOURCE 1                     
| #define _GNU_SOURCE 1                     
| #define _POSIX_PTHREAD_SEMANTICS 1        
| #define _TANDEM_SOURCE 1                  
| #define HAVE_DLFCN_H 1                    
| #define LT_OBJDIR ".libs/"                
| #define HAVE_VISIBILITY 1                 
| #define HAVE_STDINT_H_WITH_UINTMAX 1      
| #define HAVE_ALLOCA_H 1                   
| #define HAVE_ALLOCA 1                     
| #define HAVE_STDLIB_H 1                   
| #define HAVE_UNISTD_H 1                   
| #define HAVE_SYS_PARAM_H 1                
| #define HAVE_STRING_H 1                   
| #define HAVE_UTIME_H 1                    
| #define HAVE_ERRNO_H 1                    
| #define HAVE_FCNTL_H 1                    
| #define HAVE_FLOAT_H 1                    
| #define HAVE_WCTYPE_H 1                   
| #define HAVE_GETOPT_H 1                   
| #define HAVE_SYS_TIME_H 1                 
| #define HAVE_ICONV_H 1                    
| #define HAVE_LIBXML2_LIBXML_XMLEXPORTS_H 1
| #define HAVE_STDDEF_H 1                   
| #define HAVE_XLOCALE_H 1                  
| #define HAVE_LOCALE_H 1                   
| #define HAVE_WCHAR_H 1                    
| #define HAVE_SYS_MMAN_H 1                 
| #define HAVE_SYS_SOCKET_H 1               
| #define HAVE_SCHED_H 1                    
| #define HAVE_SIGNAL_H 1                   
| #define HAVE_SPAWN_H 1                    
| #define HAVE_STDARG_H 1                   
| #define HAVE_STDINT_H 1                   
| #define HAVE_STDIO_H 1                    
| #define HAVE_SYS_SELECT_H 1               
| #define HAVE_SYS_STAT_H 1                 
| #define HAVE_SYS_WAIT_H 1                 
| #define HAVE_TIME_H 1                     
| #define HAVE_LANGINFO_H 1                 
| #define HAVE_GETPAGESIZE 1                
| #define HAVE_MMAP 1                       
| #define INTDIV0_RAISES_SIGFPE 1           
| #define HAVE_INTTYPES_H_WITH_UINTMAX 1    
| #define HAVE_UNSIGNED_LONG_LONG_INT 1     
| #define HAVE_UINTMAX_T 1                  
| #define HAVE_INTTYPES_H 1                 
| #define USE_POSIX_THREADS 1               
| #define HAVE_PTHREAD_RWLOCK 1             
| #define HAVE_PTHREAD_MUTEX_RECURSIVE 1    
| #define HAVE_ICONV 1                      
| #define ICONV_CONST                       
| #define HAVE_BUILTIN_EXPECT 1             
| #define HAVE_INTTYPES_H 1                 
| #define HAVE_LIMITS_H 1                   
| #define HAVE_UNISTD_H 1                   
| #define HAVE_SYS_PARAM_H 1                
| #define HAVE_GETCWD 1                     
| #define HAVE_GETEGID 1                    
| #define HAVE_GETEUID 1                  
| #define HAVE_GETGID 1                   
| #define HAVE_GETUID 1                   
| #define HAVE_MUNMAP 1                   
| #define HAVE_STPCPY 1                   
| #define HAVE_STRCASECMP 1               
| #define HAVE_STRDUP 1                   
| #define HAVE_STRTOUL 1                  
| #define HAVE_TSEARCH 1                  
| #define HAVE_USELOCALE 1                
| #define HAVE_DECL_FEOF_UNLOCKED 1       
| #define HAVE_DECL_FGETS_UNLOCKED 0      
| #define HAVE_LONG_LONG_INT 1            
| #define HAVE_WCHAR_T 1                  
| #define HAVE_WINT_T 1                   
| #define HAVE_INTMAX_T 1                 
| #define HAVE_POSIX_PRINTF 1             
| #define HAVE_STDINT_H 1                 
| #define HAVE_STDINT_H 1                 
| #define HAVE_WORKING_O_NOATIME 0        
| #define HAVE_WORKING_O_NOFOLLOW 1       
| #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
| #define HAVE_CFLOCALECOPYCURRENT 1      
| #define HAVE_STDDEF_H 1                 
| #define HAVE_STDLIB_H 1                 
| #define HAVE_STRING_H 1                 
| #define HAVE_ASPRINTF 1                 
| #define HAVE_FWPRINTF 1                 
| #define HAVE_NEWLOCALE 1                
| #define HAVE_PUTENV 1                   
| #define HAVE_SETENV 1                   
| #define HAVE_SETLOCALE 1                
| #define HAVE_SNPRINTF 1                 
| #define HAVE_STRNLEN 1                  
| #define HAVE_WCSLEN 1                   
| #define HAVE_WCSNLEN 1                  
| #define HAVE_MBRTOWC 1                  
| #define HAVE_WCRTOMB 1                  
| #define HAVE_DECL__SNPRINTF 0           
| #define HAVE_DECL__SNWPRINTF 0          
| #define HAVE_DECL_GETC_UNLOCKED 1       
| #define HAVE_LANGINFO_CODESET 1         
| #define HAVE_LC_MESSAGES 1              
| #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
| #define HAVE_CFLOCALECOPYCURRENT 1      
| #define ENABLE_NLS 1                    
| #define YYENABLE_NLS 1                  
| #define HAVE_GETCWD 1                   
| #define HAVE_READLINK 1                 
| #define HAVE_REALPATH 1                 
| #define HAVE_DUP2 1                     
| #define HAVE_FCNTL 1                    
| #define HAVE_BTOWC 1                    
| #define HAVE_ISBLANK 1                  
| #define HAVE_ISWCTYPE 1                 
| #define HAVE_MBSRTOWCS 1                
| #define HAVE_WMEMCHR 1                  
| #define HAVE_WMEMCPY 1                  
| #define HAVE_GETDELIM 1                 
| #define HAVE_GETDTABLESIZE 1            
| #define HAVE_GETTIMEOFDAY 1             
| #define HAVE_LSTAT 1                    
| #define HAVE_MBSINIT 1                  
| #define HAVE_MBRTOWC 1                  
| #define HAVE_ISASCII 1                  
| #define HAVE_MPROTECT 1                 
| #define HAVE_MEMCHR 1                   
| #define HAVE_PATHCONF 1                 
| #define HAVE_SELECT 1                   
| #define HAVE_POSIX_SPAWN 1              
| #define HAVE_SETENV 1                   
| #define HAVE_SIGACTION 1                
| #define HAVE_SIGALTSTACK 1              
| #define HAVE_SIGINTERRUPT 1             
| #define HAVE_STPNCPY 1                  
| #define HAVE_PIPE 1                     
| #define HAVE_ISWCNTRL 1                 
| #define HAVE_ISWBLANK 1                 
| #define HAVE_WCWIDTH 1                  
| #define HAVE_NEWLOCALE 1                                 
| #define HAVE_SYMLINK 1                                   
| #define HAVE_SHUTDOWN 1                                  
| #define HAVE_WCTOB 1                                     
| #define HAVE_NL_LANGINFO 1                               
| #define HAVE_WCSCOLL 1                                   
| #define HAVE_WCRTOMB 1                                   
| #define HAVE_GETRLIMIT 1                                 
| #define HAVE_SETRLIMIT 1                                 
| #define HAVE_USELOCALE 1                                 
| #define HAVE_DECL_STRERROR_R 1                           
| #define HAVE_STRERROR_R 1                                
| #define HAVE_SIG_ATOMIC_T 1                              
| #define eaccess access                                   
| #define HAVE_MBSTATE_T 1                                 
| #define HAVE_DECL_GETDELIM 1                             
| #define HAVE_DECL_GETLINE 1                              
| #define HAVE_GETOPT_H 1                                  
| #define HAVE_GETOPT_LONG_ONLY 1                          
| #define HAVE_DECL_OPTRESET 1                             
| #define HAVE_DECL_GETENV 1                               
| #define __GETOPT_PREFIX rpl_                             
| #define restrict __restrict                              
| #define HAVE_RAW_DECL_GETTIMEOFDAY 1                     
| #define HAVE_UNISTD_H 1                                  
| #define HAVE_DECL_GETC_UNLOCKED 1                        
| #define HAVE_STDLIB_H 1                                  
| #define MALLOC_0_IS_NONNULL 1                            
| #define HAVE_MBRTOWC 1                                   
| #define MAP_ANONYMOUS MAP_ANON                           
| #define HAVE_MAP_ANONYMOUS 1                             
| #define HAVE_MINMAX_IN_SYS_PARAM_H 1                     
| #define PROMOTED_MODE_T int                              
| #define INSTALLPREFIX "/Users/gary/Devo/autotools-latest"
| #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX 0        
| #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR 0   
| #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE 0       
| #define HAVE_DECL_SNPRINTF 1                             
| #define HAVE__BOOL 1                                     
| #define USER_LABEL_PREFIX _                              
| #define HAVE_RAW_DECL_MEMMEM 1                           
| #define HAVE_RAW_DECL_STPCPY 1                           
| #define HAVE_RAW_DECL_STPNCPY 1                          
| #define HAVE_RAW_DECL_STRDUP 1                           
| #define HAVE_RAW_DECL_STRNCAT 1                          
| #define HAVE_RAW_DECL_STRNDUP 1                          
| #define HAVE_RAW_DECL_STRNLEN 1                          
| #define HAVE_RAW_DECL_STRPBRK 1                          
| #define HAVE_RAW_DECL_STRSEP 1                           
| #define HAVE_RAW_DECL_STRCASESTR 1                       
| #define HAVE_RAW_DECL_STRTOK_R 1                         
| #define HAVE_RAW_DECL_STRSIGNAL 1                        
| #define HAVE_DECL_STRNLEN 1                              
| #define HAVE_SHUTDOWN 1                                  
| #define HAVE_STRUCT_SOCKADDR_STORAGE 1                   
| #define HAVE_SA_FAMILY_T 1                               
| #define HAVE_TERMINFO 1                                  
| #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_GETCHAR_UNLOCKED 1                     
| #define HAVE_DECL_PUTC_UNLOCKED 1                        
| #define HAVE_DECL_PUTCHAR_UNLOCKED 1                     
| #define HAVE_INTMAX_T 1                                  
| #define HAVE_SNPRINTF 1                                  
| #define HAVE_STRNLEN 1                                   
| #define HAVE_WCSLEN 1                                    
| #define HAVE_WCSNLEN 1                                   
| #define HAVE_MBRTOWC 1                                   
| #define HAVE_WCRTOMB 1                                   
| #define HAVE_DECL__SNPRINTF 0                            
| #define HAVE_SNPRINTF_RETVAL_C99 1                       
| #define HAVE_DECL_VSNPRINTF 1                            
| #define HAVE_DECL_ALARM 1                                                     
           
| #define HAVE_SYS_ACL_H 1                                                      
           
| #define HAVE_ACL_GET_FILE 1                                                   
           
| #define HAVE_ACL_GET_FD 1                                                     
           
| #define HAVE_ACL_SET_FILE 1                                                   
           
| #define HAVE_ACL_SET_FD 1                                                     
           
| #define HAVE_ACL_FREE 1                                                       
           
| #define HAVE_ACL_FROM_TEXT 1                                                  
           
| #define HAVE_ACL_DELETE_DEF_FILE 1                                            
           
| #define HAVE_ACL_DELETE_FD_NP 1                                               
           
| #define HAVE_ACL_DELETE_FILE_NP 1                                             
           
| #define HAVE_ACL_COPY_EXT_NATIVE 1                                            
           
| #define HAVE_ACL_CREATE_ENTRY_NP 1                                            
           
| #define HAVE_ACL_FIRST_ENTRY 1                                                
           
| #define HAVE_ACL_TYPE_EXTENDED 1                                              
           
| #define USE_ACL 1                                                             
           
| #define HAVE_ATEXIT 1                                                         
           
| #define HAVE_DIRENT_H 1                                                       
           
| #define HAVE_STRING_H 1                                                       
           
| #define HAVE_LONG_FILE_NAMES 1                                                
           
| #define HAVE_PATHCONF 1                                                       
           
| #define HAVE_STRING_H 1                                                       
           
| #define HAVE_UNISTD_H 1                                                       
           
| #define YYENABLE_NLS 1                                                        
           
| #define GNULIB_CANONICALIZE_LGPL 1                                            
           
| #define GNULIB_TEST_CANONICALIZE_FILE_NAME 1                                  
           
| #define GNULIB_TEST_REALPATH 1                                                
           
| #define SIGNAL_SAFE_LIST 1                                                    
           
| #define GNULIB_TEST_CLOEXEC 1                                                 
           
| #define HAVE_CHOWN 1                                                          
           
| #define HAVE_UTIME 1                                                          
           
| #define HAVE_UTIMES 1                                                         
           
| #define GNULIB_TEST_DUP2 1                                                    
           
| #define GNULIB_TEST_ENVIRON 1                                                 
           
| #define GNULIB_TEST_FCNTL 1                                                   
           
| #define HAVE_RAW_DECL_FCNTL 1                                                 
           
| #define GNULIB_FD_SAFER_FLAG 1                                                
           
| #define GNULIB_TEST_FOPEN 1                                                   
           
| #define GNULIB_FWRITEERROR 1                                                  
           
| #define GNULIB_TEST_GETDELIM 1                                                
           
| #define GNULIB_TEST_GETDTABLESIZE 1                                           
           
| #define GNULIB_TEST_GETLINE 1                                                 
           
| #define GNULIB_TEST_GETOPT_GNU 1                                              
           
| #define __GETOPT_PREFIX rpl_                                                  
           
| #define GETTIMEOFDAY_TIMEZONE void                                            
           
| #define GNULIB_TEST_GETTIMEOFDAY 1                                            
           
| #define HAVE_INLINE 1                                                         
           
| #define HAVE_UNISTD_H 1                                                       
           
| #define ABSOLUTE_LIBXML2_LIBXML_XMLEXPORTS_H 
"///usr/include/libxml2/libxml/xmlexports.h"
| #define HAVE_RAW_DECL_DUPLOCALE 1                                             
           
| #define HAVE_SETLOCALE 1                                                      
           
| #define HAVE_USELOCALE 1                                                      
           
| #define HAVE_PTHREAD_RWLOCK 1                                                 
           
| #define HAVE_PTHREAD_MUTEX_RECURSIVE 1                                        
           
| #define GNULIB_TEST_LSTAT 1                                                   
           
| #define HAVE_MALLOC_POSIX 1                                                   
           
| #define GNULIB_TEST_MALLOC_POSIX 1                                            
           
| #define GNULIB_TEST_MBRTOWC 1                                                 
           
| #define GNULIB_TEST_MBSINIT 1                                                 
           
| #define GNULIB_TEST_MBSLEN 1                                                  
           
| #define GNULIB_TEST_MBSRTOWCS 1                                               
           
| #define GNULIB_TEST_MBSSTR 1                                                  
           
| #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H 0                                       
           
| #define HAVE_MBSTATE_T 1                                                      
           
| #define GNULIB_TEST_MEMCHR 1                                                  
           
| #define HAVE_MEMMOVE 1                                                        
           
| #define HAVE_MEMSET 1                                                         
           
| #define HAVE_MKDTEMP 1                                                        
           
| #define GNULIB_TEST_MKDTEMP 1                                                 
           
| #define OPEN_TRAILING_SLASH_BUG 1                                             
           
| #define GNULIB_TEST_OPEN 1                                                    
           
| #define GNULIB_TEST_PIPE2 1                                                   
           
| #define GNULIB_PIPE2_SAFER 1                                                  
           
| #define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE 1                       
           
| #define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 1                        
           
| #define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN 1                        
           
| #define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_DESTROY 1                        
           
| #define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_INIT 1                           
           
| #define GNULIB_TEST_POSIX_SPAWNATTR_DESTROY 1                                 
           
| #define GNULIB_TEST_POSIX_SPAWNATTR_INIT 1               
| #define GNULIB_TEST_POSIX_SPAWNATTR_SETFLAGS 1           
| #define GNULIB_TEST_POSIX_SPAWNATTR_SETSIGMASK 1         
| #define GNULIB_TEST_POSIX_SPAWNP 1                       
| #define HAVE_DECL_PROGRAM_INVOCATION_NAME 0              
| #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 0        
| #define GNULIB_TEST_RAWMEMCHR 1                          
| #define READLINK_TRAILING_SLASH_BUG 1                    
| #define GNULIB_TEST_READLINK 1                           
| #define HAVE_REALLOC_POSIX 1                             
| #define GNULIB_TEST_REALLOC_POSIX 1                      
| #define HAVE_SEARCH_H 1                                  
| #define HAVE_TSEARCH 1                                   
| #define GNULIB_TEST_RMDIR 1                              
| #define GNULIB_TEST_SETENV 1                             
| #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1             
| #define GNULIB_TEST_SIGACTION 1                          
| #define HAVE_RAW_DECL_SIGACTION 1                        
| #define HAVE_RAW_DECL_SIGADDSET 1                        
| #define HAVE_RAW_DECL_SIGDELSET 1                        
| #define HAVE_RAW_DECL_SIGEMPTYSET 1                      
| #define HAVE_RAW_DECL_SIGFILLSET 1                       
| #define HAVE_RAW_DECL_SIGISMEMBER 1                      
| #define HAVE_RAW_DECL_SIGPENDING 1                       
| #define HAVE_RAW_DECL_SIGPROCMASK 1                      
| #define GNULIB_SIGPIPE 1                                 
| #define GNULIB_TEST_SIGPROCMASK 1                        
| #define HAVE_STDINT_H 1                                  
| #define HAVE_SNPRINTF 1                                  
| #define GNULIB_TEST_SNPRINTF 1                           
| #define HAVE_POSIX_SPAWNATTR_T 1                         
| #define HAVE_POSIX_SPAWN_FILE_ACTIONS_T 1                
| #define HAVE_RAW_DECL_POSIX_SPAWN 1                      
| #define HAVE_RAW_DECL_POSIX_SPAWNP 1                     
| #define HAVE_RAW_DECL_POSIX_SPAWNATTR_INIT 1             
| #define HAVE_RAW_DECL_POSIX_SPAWNATTR_DESTROY 1          
| #define HAVE_RAW_DECL_POSIX_SPAWNATTR_GETSIGDEFAULT 1    
| #define HAVE_RAW_DECL_POSIX_SPAWNATTR_SETSIGDEFAULT 1    
| #define HAVE_RAW_DECL_POSIX_SPAWNATTR_GETSIGMASK 1       
| #define HAVE_RAW_DECL_POSIX_SPAWNATTR_SETSIGMASK 1       
| #define HAVE_RAW_DECL_POSIX_SPAWNATTR_GETFLAGS 1         
| #define HAVE_RAW_DECL_POSIX_SPAWNATTR_SETFLAGS 1         
| #define HAVE_RAW_DECL_POSIX_SPAWNATTR_GETPGROUP 1        
| #define HAVE_RAW_DECL_POSIX_SPAWNATTR_SETPGROUP 1        
| #define HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_INIT 1    
| #define HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_DESTROY 1 
| #define HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN 1 
| #define HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE 1
| #define HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 1 
| #define REPLACE_FUNC_STAT_FILE 1                         
| #define GNULIB_TEST_STAT 1                               
| #define BITSIZEOF_PTRDIFF_T 64                           
| #define BITSIZEOF_SIZE_T 64                              
| #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 l                               
| #define SIZE_T_SUFFIX ul                                 
| #define SIG_ATOMIC_T_SUFFIX                              
| #define WCHAR_T_SUFFIX                                   
| #define WINT_T_SUFFIX                                    
| #define HAVE_RAW_DECL_DPRINTF 1                          
| #define HAVE_RAW_DECL_FPURGE 1                           
| #define HAVE_RAW_DECL_FSEEKO 1                           
| #define HAVE_RAW_DECL_FTELLO 1                           
| #define HAVE_RAW_DECL_GETDELIM 1                         
| #define HAVE_RAW_DECL_GETLINE 1                          
| #define HAVE_RAW_DECL_POPEN 1                            
| #define HAVE_RAW_DECL_SNPRINTF 1                         
| #define HAVE_RAW_DECL_TMPFILE 1                          
| #define HAVE_RAW_DECL_VDPRINTF 1                         
| #define HAVE_RAW_DECL_VSNPRINTF 1                        
| #define HAVE_RAW_DECL_ATOLL 1                            
| #define HAVE_RAW_DECL_GETLOADAVG 1                       
| #define HAVE_RAW_DECL_GETSUBOPT 1                        
| #define HAVE_RAW_DECL_GRANTPT 1                          
| #define HAVE_RAW_DECL_MKSTEMP 1                                
| #define HAVE_RAW_DECL_PTSNAME 1                                
| #define HAVE_RAW_DECL_REALPATH 1                               
| #define HAVE_RAW_DECL_SETENV 1                                 
| #define HAVE_RAW_DECL_STRTOD 1                                 
| #define HAVE_RAW_DECL_STRTOLL 1                                
| #define HAVE_RAW_DECL_STRTOULL 1                               
| #define HAVE_RAW_DECL_UNLOCKPT 1                               
| #define HAVE_RAW_DECL_UNSETENV 1                               
| #define HAVE_STPCPY 1                                          
| #define GNULIB_TEST_STPCPY 1                                   
| /* end confdefs.h.  */                                         
|                                                                
| #include <stdlib.h>                                            
| #include <string.h> /* for strcpy */                           
| /* The stpncpy prototype is missing in <string.h> on AIX 4.  */
| extern char *stpncpy (char *dest, const char *src, size_t n);  
| int main () {                                                  
|   const char *src = "Hello";                                   
|   char dest[10];                                               
|   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+1 here.  */  
|   strcpy (dest, "\377\377\377\377\377\377");                   
|   if (stpncpy (dest, src, 2) != dest + 2) exit(1);             
|   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+4 here.  */  
|   strcpy (dest, "\377\377\377\377\377\377");                   
|   if (stpncpy (dest, src, 5) != dest + 5) exit(1);             
|   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+6 here.  */  
|   strcpy (dest, "\377\377\377\377\377\377");                   
|   if (stpncpy (dest, src, 7) != dest + 5) exit(1);             
|   exit(0);                                                     
| }                                                              
|                                                                
configure:40637: result: no

I don't have all the programs required to re-bootstrap gettext to check
whether latest gnulib has fixed this problem already, though I could set
aside a few hours to try to build and install them to see whether that
helps any...

If you need any more information to help figure out what is broken and
how to fix it, please ask!

(Bear in mind that the goal posts could be moving next week if Apple
releases a new XCode with a new gcc build for the impending iOS 5 release).

Cheers,
-- 
Gary V. Vaughan (gary AT gnu DOT org)


reply via email to

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