GNU bug report logs -
#8845
build failure on HP-UX 11.31
Previous Next
Reported by: Bruno Haible <bruno <at> clisp.org>
Date: Mon, 13 Jun 2011 08:51:02 UTC
Severity: normal
Done: Jim Meyering <jim <at> meyering.net>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Trying to compile coreutils-8.12 on HP-UX 11.31 with cc, I get this build
failure:
CC file-set.o
cc: "file-set.h", line 9: error 1000: Unexpected symbol: "2".
cc: "file-set.h", line 7: error 1670: Illegal attribute nonnull specified.
gmake[4]: *** [file-set.o] Error 1
Here's a possible patch that fixes it.
2011-06-13 Bruno Haible <bruno <at> clisp.org>
Update after __attibute__ is no longer defined by gnulib.
* lib/file-set.h (record_file): Use __attribute__ only with compiler
versions that support it.
*** lib/file-set.h.bak Sun Apr 24 17:21:45 2011
--- lib/file-set.h Mon Jun 13 08:39:59 2011
***************
*** 6,12 ****
extern void record_file (Hash_table *ht, char const *file,
struct stat const *stats)
! __attribute__ ((nonnull (2, 3)));
extern bool seen_file (Hash_table const *ht, char const *file,
struct stat const *stats);
--- 6,15 ----
extern void record_file (Hash_table *ht, char const *file,
struct stat const *stats)
! #if defined __GNUC__ && ((__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3)
! __attribute__ ((nonnull (2, 3)))
! #endif
! ;
extern bool seen_file (Hash_table const *ht, char const *file,
struct stat const *stats);
--
In memoriam Anna Göldi <http://en.wikipedia.org/wiki/Anna_Göldi>
This bug report was last modified 13 years and 347 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.