Hello,

The xstrtoll module fails to build on Tru64:

source='xstrtoll.c' object='xstrtoll.o' libtool=no \
        DEPDIR=.deps depmode=tru64 /bin/ksh ../build-aux/depcomp \
cc -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=1 -g -c xstrtoll.c cc: Error: xstrtol.c, line 49: In this statement, "LLONG_MIN" is not declared. (undeclared)
  if (TYPE_SIGNED (__strtol_t) && *x < STRTOL_T_MINIMUM / scale_factor)
---------------------------------------^
cc: Error: xstrtol.c, line 54: In this statement, "LLONG_MAX" is not declared. (undeclared)
  if (STRTOL_T_MAXIMUM / scale_factor < *x)
------^
make[4]: *** [xstrtoll.o] Error 1

The problem is that LLONG_MIN, LLONG_MAX and ULLONG_MAX are only defined in strtol.c. Copying their definitions from strtol.c into xstrtol.c fixed the build error (and the tests pass).

-tgc

Reply via email to