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

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

bug in diffutils version 2.7


From: Candice Quates
Subject: bug in diffutils version 2.7
Date: Tue, 30 Oct 2001 07:29:24 -0500

On Tru64 Unix version 5.0, compiled with cc (not gcc).

Lines 51-55 in fnmatch.h
#if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined (_GNU_SOURCE)
#define FNM_FILE_NAME   FNM_PATHNAME /* Preferred GNU name.  */
#define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match.  */
#define FNM_CASEFOLD    (1 << 4) /* Compare without regard to case.  */
#endif

On Tru64 5.0, this if needs to evaluate to true, so that the FNM defines
will fall through properly.  This is using the DEC C compiler and linker,
not GCC.   Otherwise, fnmatch.c will not compile, because the FOLD macro
will complain about FNM_CASEFOLD not being defined.

skirt% make
cc -c  -DHAVE_CONFIG_H -I. -I. -g fnmatch.c
cc: Error: fnmatch.c, line 68: In this statement, "FNM_CASEFOLD" is not 
declared. (undeclared)
      c = FOLD (c);
- - ----------^
cc: Error: fnmatch.c, line 75: In this statement, "FNM_FILE_NAME" is not 
declared. (undeclared)
          else if ((flags & FNM_FILE_NAME) && *n == '/')
- - ----------------------------^
cc: Error: fnmatch.c, line 203: In this statement, "FNM_LEADING_DIR" is not 
declared. (undeclared)
  if ((flags & FNM_LEADING_DIR) && *n == '/')
- - ---------------^
*** Exit 1
Stop.

I don't know autoconf well enough to fix this myself, so I figured I would
just submit this now.

thanks,
Candice Quates
- - -- 
"What does the Do key do?"
"It does."



reply via email to

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