[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error compiling strtoimax.c on hppa2.0w-hp-hpux11.11
From: |
Daniel Richard G. |
Subject: |
Re: Error compiling strtoimax.c on hppa2.0w-hp-hpux11.11 |
Date: |
Wed, 09 Oct 2013 02:51:01 -0400 |
On Tue, 2013 Oct 8 23:29-0700, Paul Eggert wrote:
> Thanks, I pushed the following, which I hope fixes the problem
> in a slightly-more-general way.
Not quite, I'm afraid:
source='../../gllib/strtoimax.c' object='strtoimax.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ../../build-aux/depcomp \
cc -DHAVE_CONFIG_H -I. -I../../gllib -I.. -DGNULIB_STRICT_CHECKING=1
-D_HPUX_API_LEVEL=20040821 -DTG_NO_INLINE -Ae +DD64 +DO11.0 +ESconstlit
+ESlit +w1 -z +O3 -c -o strtoimax.o ../../gllib/strtoimax.c
cc: "../../gllib/strtoimax.c", line 65: error 1000: Unexpected symbol: "strtol".
cc: "../../gllib/strtoimax.c", line 65: error 1584: Inconsistent type
declaration: "intmax_t".
cc: panic 2017: Cannot recover from earlier errors, terminating.
gmake[4]: *** [strtoimax.o] Error 1
I think the problem is that strtoimax/strtoumax are macros, so Strtoimax
is still expanding into something unexpected:
$ grep strtoimax /usr/include/inttypes.h
#define strtoimax(__a, __b, __c) __strtoll(__a, __b, __c)
#define strtoimax(__a, __b, __c) (intmax_t)strtol(__a, __b, __c)
$ grep strtoumax /usr/include/inttypes.h
#define strtoumax(__a, __b, __c) __strtoull(__a, __b, __c)
#define strtoumax(__a, __b, __c) (uintmax_t)strtoul(__a, __b, __c)
--Daniel
--
Daniel Richard G. || address@hidden
My ASCII-art .sig got a bad case of Times New Roman.
- Error compiling strtoimax.c on hppa2.0w-hp-hpux11.11, Daniel Richard G., 2013/10/09
- Re: Error compiling strtoimax.c on hppa2.0w-hp-hpux11.11, Paul Eggert, 2013/10/09
- Re: Error compiling strtoimax.c on hppa2.0w-hp-hpux11.11,
Daniel Richard G. <=
- Re: Error compiling strtoimax.c on hppa2.0w-hp-hpux11.11, Paul Eggert, 2013/10/09
- Re: Error compiling strtoimax.c on hppa2.0w-hp-hpux11.11, Daniel Richard G., 2013/10/09
- Re: Error compiling strtoimax.c on hppa2.0w-hp-hpux11.11, Paul Eggert, 2013/10/09
- Re: Error compiling strtoimax.c on hppa2.0w-hp-hpux11.11, Daniel Richard G., 2013/10/09
- Re: Error compiling strtoimax.c on hppa2.0w-hp-hpux11.11, Paul Eggert, 2013/10/09
- Re: Error compiling strtoimax.c on hppa2.0w-hp-hpux11.11, Daniel Richard G., 2013/10/10
- Re: Error compiling strtoimax.c on hppa2.0w-hp-hpux11.11, Tom G. Christensen, 2013/10/10
- Re: Error compiling strtoimax.c on hppa2.0w-hp-hpux11.11, Paul Eggert, 2013/10/10
- Re: Error compiling strtoimax.c on hppa2.0w-hp-hpux11.11, Tom G. Christensen, 2013/10/10
- Re: Error compiling strtoimax.c on hppa2.0w-hp-hpux11.11, Eric Blake, 2013/10/10