bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] Re: <stdint.h> on IRIX-5.3 & SGI-cc


From: Bruno Haible
Subject: Re: [bug-gnulib] Re: <stdint.h> on IRIX-5.3 & SGI-cc
Date: Tue, 27 Jun 2006 17:50:48 +0200
User-agent: KMail/1.9.1

Martin Neitzel wrote:
> > > #  if  > 32 ||                                    <=== flagged error here
> > This is valid ANSI C and ISO C 99 code. When you don't pass "-w2" to your
> > compiler, does it show an error or a warning about this?
> 
> Omitting -w2 doesn't change anything.

OK, thanks, I'm applying the appended patch to fix this problem.

> > >         cc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl  -Ino/include  -w2 -g 
> > > -c md5.c
> > > cfe: Error: /usr/include/sys/types.h, line 211: redeclaration of 
> > > 'int8_t'; previous declaration at line 78 in file './stdint.h'
> > >  typedef        signed char     int8_t;
> > 
> > Should be fixed since Friday.
> 
> No, I still get this error.
> 
> The responsible stdint_.h code is:
> 
> #if address@hidden@                   -==> #if !0    in stdint.h
> typedef signed char    int8_t;
> #endif

Strange. You should have the newest stdint_.h, the newest stdint.m4,
rebuilt configure with it. How can "configure" set HAVE_INT8_T to 0
if <sys/types.h> defines int8_t? You might need to look into config.log.

Bruno


*** stdint.m4   26 Jun 2006 17:49:53 -0000      1.12
--- stdint.m4   27 Jun 2006 15:45:37 -0000
***************
*** 1,4 ****
! # stdint.m4 serial 10
  dnl Copyright (C) 2001-2002, 2004-2006 Free Software Foundation, Inc.
  dnl This file is free software; the Free Software Foundation
  dnl gives unlimited permission to copy and/or distribute it,
--- 1,4 ----
! # stdint.m4 serial 11
  dnl Copyright (C) 2001-2002, 2004-2006 Free Software Foundation, Inc.
  dnl This file is free software; the Free Software Foundation
  dnl gives unlimited permission to copy and/or distribute it,
***************
*** 614,623 ****
           eval gl_cv_bitsizeof_${gltype}=\$result
          ])
        eval result=\$gl_cv_bitsizeof_${gltype}
!       GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 
'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
!       AC_DEFINE_UNQUOTED([BITSIZEOF_${GLTYPE}], [$result])
!       eval BITSIZEOF_${GLTYPE}=\$result
!     fi
    done
    AC_FOREACH([gltype], [$1],
      [AC_SUBST([BITSIZEOF_]translit(gltype,[abcdefghijklmnopqrstuvwxyz 
],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]))])
--- 614,632 ----
           eval gl_cv_bitsizeof_${gltype}=\$result
          ])
        eval result=\$gl_cv_bitsizeof_${gltype}
!     else
!       dnl Use a nonempty default, because some compilers, such as IRIX 5 cc,
!       dnl do a syntax check even on unused #if conditions and give an error
!       dnl on valid C code like this:
!       dnl   #if 0
!       dnl   # if  > 32
!       dnl   # endif
!       dnl   #endif
!       result=0
!     fi
!     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 
'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
!     AC_DEFINE_UNQUOTED([BITSIZEOF_${GLTYPE}], [$result])
!     eval BITSIZEOF_${GLTYPE}=\$result
    done
    AC_FOREACH([gltype], [$1],
      [AC_SUBST([BITSIZEOF_]translit(gltype,[abcdefghijklmnopqrstuvwxyz 
],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]))])




reply via email to

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