GNU bug report logs - #75612
FTBFS on CentOS 6

Previous Next

Package: coreutils;

Reported by: Bruno Haible <bruno <at> clisp.org>

Date: Thu, 16 Jan 2025 19:40:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Bruno Haible <bruno <at> clisp.org>
To: 75612 <at> debbugs.gnu.org
Subject: bug#75612: FTBFS on CentOS 6
Date: Thu, 16 Jan 2025 20:39:43 +0100
[Message part 1 (text/plain, inline)]
Building a snapshot of the current coreutils with current gnulib, I get
a compilation error on CentOS 5 and 6:

  CC       src/ls.o
../src/ls.c: In function 'gobble_file':
../src/ls.c:3556: error: 'XATTR_NAME_CAPS' undeclared (first use in this function)
../src/ls.c:3556: error: (Each undeclared identifier is reported only once
../src/ls.c:3556: error: for each function it appears in.)
make[2]: *** [src/ls.o] Error 1

The attached proposed patch fixes it.
This is a similar problem as we encountered in gnulib:
https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=3266c08a315
https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=73a13b94b94
The lesson is: Provide fallbacks for *all* XATTR_NAME_* values, since older
distros don't define them.

[0001-ls-Fix-compilation-error-on-CentOS-6.patch (text/x-patch, attachment)]

This bug report was last modified 181 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.