bug-gnu-utils
[Top][All Lists]
Advanced

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

Archive value -1 is out of uintmax_t range 0..18446744073709551615


From: John David Anglin
Subject: Archive value -1 is out of uintmax_t range 0..18446744073709551615
Date: Thu, 1 Mar 2001 17:06:06 -0500 (EST)

I am seeing the following warning when I list archives:

drwx------ root/sys          1 1993-04-05 23:29:46 ./.vue/Desktop/Five/
gtar: Archive value -1 is out of uintmax_t range 0..18446744073709551615
gtar: Archive value -1 is out of uintmax_t range 0..18446744073709551615
drwx------ root/sys          1 1993-04-05 23:29:45 ./.vue/Desktop/Four/

The gtar version is 1.13.19 and the build system is hpux 10.20. I see
that gcc defines __STDC_EXT__ 1.  This causes sys/_inttypes.h to define
__LL_MODE__ rather than __STDC_32_MODE__.  As a result uintmax_t should
be uint64_t which is unsigned long long.  Maybe this a problem in the
experimental version of gcc 2.95.3 that I have been using.

There was one warning during the build:  

gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -I../intl -I../lib -I../../lib    -O3 
-c ../../src/create.c
../../src/create.c: In function `mode_to_chars':
../../src/create.c:262: warning: comparison is always false due to limited range

I see that mode_t is `typedef uint16_t mode_t;'.  Thus, the comparison
v < 0 in mode_to_chars is always false as the warning indicated.

Dave
-- 
J. David Anglin                                  address@hidden
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)



reply via email to

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