bug-coreutils
[Top][All Lists]
Advanced

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

coreutils 5.1.0 compile failure on Tru64 5.1b


From: Tim Mooney
Subject: coreutils 5.1.0 compile failure on Tru64 5.1b
Date: Wed, 21 Jan 2004 18:05:16 -0600 (CST)

System: alphaev56-dec-osf5.1 (b)
C Compiler: $cc -V

Compaq C V6.5-207 (dtk) on Compaq Tru64 UNIX V5.1B (Rev. 2650)
Compiler Driver V6.5-207 (dtk) (dtk) cc Driver



configure for coreutils 5.1.0 correctly detects that uintmax_t can be
found in `stdint.h' (at least as long as you're using the most recent
C compiler & related files), but lib/fts.c uses uintmax_t without
including the necessary header file(s).  This results in:

cc: Error: fts.c, line 196: Missing ";". (nosemi)
  return (uintmax_t) ax->ino % table_size;
---------------------^
cc: Error: fts.c, line 196: In this statement, "uintmax_t" is not
declared. (undeclared)
  return (uintmax_t) ax->ino % table_size;
----------^


I can produce a patch to fix the problem, basically

#if HAVE_STDINT_H_WITH_UINTMAX
# include <stdint.h>
#endif

but I'm not certain if `fts.c' is where this should be placed.  Is there
a platform portability header file that would be more appropriate?

Thanks!

Tim
-- 
Tim Mooney                              address@hidden
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164




reply via email to

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