bug-autoconf
[Top][All Lists]
Advanced

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

sys/types and inttypes.h in autoconf 2.50 in irix 5.3


From: Bill Schottstaedt
Subject: sys/types and inttypes.h in autoconf 2.50 in irix 5.3
Date: Sat, 16 Jun 2001 05:46:04 -0700

My apologies if this is already known -- I don't have easy access to CVS right 
now.
I think there's a problem in autoconf 2.50 in SGI Irix 5.3 with the 
AC_INCLUDES_DEFAULT macro from acgeneral.m4;
the header files /usr/include/sys/types.h and /usr/include/inttypes.h are not 
compatible in this
system.  Here's an example from config.log after calling AC_TYPE_MODE_T:

configure:3539: checking for stdlib.h
configure:3549: cc -E  conftest.c
configure:3555: $? = 0
configure:3574: result: yes
configure:3539: checking for string.h
configure:3574: result: yes
configure:3539: checking for memory.h
configure:3549: cc -E  conftest.c
configure:3555: $? = 0
configure:3574: result: yes
configure:3539: checking for strings.h
configure:3549: cc -E  conftest.c
configure:3555: $? = 0
configure:3574: result: yes
configure:3539: checking for inttypes.h
configure:3549: cc -E  conftest.c
configure:3555: $? = 0
configure:3574: result: yes
configure:3539: checking for unistd.h
configure:3574: result: yes
configure:3584: checking for mode_t
configure:3605: cc -c -g  conftest.c >&5
cfe: Error: /usr/include/inttypes.h, line 61: redeclaration of 'int8_t'; 
previous declaration at line 211 in file  
'/usr/include/sys/types.h'
 typedef        signed char             int8_t; 
 -------        -----------             ^
cfe: Error: /usr/include/inttypes.h, line 63: redeclaration of 'int16_t'; 
previous declaration at line 212 in file  
'/usr/include/sys/types.h'
 typedef        signed short            int16_t;
 -------        ------------            ^
cfe: Error: /usr/include/inttypes.h, line 65: redeclaration of 'int32_t'; 
previous declaration at line 213 in file  
'/usr/include/sys/types.h'
 typedef        signed int              int32_t;
 -------        ----------              ^
configure:3608: $? = 1
configure: failed program was:
#line 3590 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#else
# if HAVE_STRINGS_H
#  include <strings.h>
# endif
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
int
main ()
{
if ((mode_t *) 0)
  return 0;
if (sizeof (mode_t))
  return 0;
  ;
  return 0;
}
configure:3624: result: no



reply via email to

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