bug-gnulib
[Top][All Lists]
Advanced

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

xstrtoll.c build error on Tru64 5.1B


From: Tom G. Christensen
Subject: xstrtoll.c build error on Tru64 5.1B
Date: Sat, 15 Oct 2011 14:32:57 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110927 Red Hat/3.1.15-1.el6_1 Thunderbird/3.1.15

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

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