bug-cvs
[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: Mark D. Baushke
Subject: Re: [bug-gnulib] Re: <stdint.h> on IRIX-5.3 & SGI-cc
Date: Tue, 27 Jun 2006 09:42:30 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Martin,

I have Installed Bruno's latest GNULIB changes into the CVS sources.

If there are still problems, it would be good to know what you are
seeing out of the 'configure' command... both the output and selected
parts of the config.log file.

        -- Mark

Bruno Haible <bruno@clisp.org> writes:

> 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 !@HAVE_INT8_T@                  -==> #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_]))])
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQFEoV/2Cg7APGsDnFERAnQLAJ0db2kpkrsLdyklIiEJWpsUNXhETgCeO7cN
ms4yVy3qhFhQq9bPQAynt7I=
=4lJ8
-----END PGP SIGNATURE-----




reply via email to

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