[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HP-UX 11.23 stdint failure (was: snapshot 3 in preparation for 1.4.
From: |
Gary V. Vaughan |
Subject: |
Re: HP-UX 11.23 stdint failure (was: snapshot 3 in preparation for 1.4.13) |
Date: |
Wed, 25 Feb 2009 13:23:30 +0700 |
Hi Eric,
2009/2/24 Eric Blake <address@hidden>:
> According to Gary V. Vaughan on 2/23/2009 7:39 PM:
>> ia64-hp-hpux11.23-acc622 m4 tests pass, gnulib fails to compile
>> test-stdint.c
>> cc -AC99 -I. -I../lib -I. -I. -I.. -I./.. -I../lib -I./../lib -z
>> +O2 +Ofltacc +Olit=all +Oentrysched +Odataprefetch +Onolimit -c
>> test-stdint.c
>> "test-stdint.c", line 87: error #2018: expected a ")"
>> #if INT8_MIN && INT8_MAX && INT16_MIN && INT16_MAX && INT32_MIN && INT32_MAX
>> ^
>> "test-stdint.c", line 87: error #2059: function call is not allowed in a
>> constant expression
>> #if INT8_MIN && INT8_MAX && INT16_MIN && INT16_MAX && INT32_MIN && INT32_MAX
>> ^
>> ...and many more similar errors
>
> It would be nice to see preprocessed source here, as well the contents of
> lib/stdint.h in order to see what gnulib was using as the values for these
> broken macros.
...
checking for stdint.h... yes
...
checking whether stdint.h conforms to C99... yes
...
so, it seems there is a substandard system stdint.h that isn't defining the
macros directly...
>From inttypes.h (which is included by stdint.h):
#define INT8_C(__c) (__c)
#define UINT8_C(__c) __CONCAT_U__(__c)
#define INT16_C(__c) (__c)
#define UINT16_C(__c) __CONCAT_U__(__c)
#ifdef __LP64__
#define INT32_C(__c) (__c)
#define UINT32_C(__c) __CONCAT_U__(__c)
#else /* __LP64 */
#define INT32_C(__c) __CONCAT__(__c,l)
#define UINT32_C(__c) __CONCAT__(__c,ul)
#endif /* __LP64 */
#define INT64_C(__c) __CONCAT_L__(__c,l)
#define UINT64_C(__c) __CONCAT_L__(__c,ul)
#define INTMAX_C(__c) __CONCAT_L__(__c,l)
#define UINTMAX_C(__c) __CONCAT_L__(__c,ul)
#define INT8_MAX INT8_C(127)
#define INT16_MAX INT16_C(32767)
#define INT32_MAX INT32_C(2147483647)
#define INT64_MAX INT64_C(9223372036854775807)
#define INT8_MIN (-INT8_MAX - 1)
#define INT16_MIN (-INT16_MAX - 1)
#define INT32_MIN (-INT32_MAX - 1)
#define INT64_MIN (-INT64_MAX - 1)
Not sure where to go from here though :(
Cheers,
Gary
--
Email me: address@hidden (\(\
Read my blog: http://blog.azazil.net ( o.O)
And my other blog: http://www.machaxor.net (uu )o
...and my book: http://sources.redhat.com/autobook ("("_)
- Re: AIX sysval failure (was: snapshot 3 in preparation for 1.4.13), (continued)
- Re: AIX sysval failure (was: snapshot 3 in preparation for 1.4.13), Gary V. Vaughan, 2009/02/25
- Re: AIX sysval failure, Eric Blake, 2009/02/25
- Re: AIX sysval failure, Gary V. Vaughan, 2009/02/25
- Re: AIX sysval failure, Eric Blake, 2009/02/25
- Re: AIX sysval failure, Gary V. Vaughan, 2009/02/26
- Re: AIX sysval failure, Eric Blake, 2009/02/26
HP-UX 11.31 strtod failure (was: snapshot 3 in preparation for 1.4.13), Eric Blake, 2009/02/24
HP-UX 11.23 stdint failure (was: snapshot 3 in preparation for 1.4.13), Eric Blake, 2009/02/24
Re: HP-UX 11.23 stdint failure, Eric Blake, 2009/02/25
HP-UX 10.20 format failure (was: snapshot 3 in preparation for 1.4.13), Eric Blake, 2009/02/24
Re: snapshot 3 in preparation for 1.4.13, Tom G. Christensen, 2009/02/24