On 2019-10-10 11:56, Wei MA wrote:
I compile the source code. And when i ran   tests/cp/capabiliy.sh, cp
preserves attr failed without xattr support . Then i installed xattr.
I deleted coreutils and downloaded it again. The problem still exists.

A configure problem likely won't be due to a bad copy of coreutils;
you have to debug where that is going wrong: why it isn't detecting
the xattr.

It looks like the Coreutils configure script looks for two headers:
<attr/error_context.h> and <attr/libattr.h>.

It also looks for a function attr_copy_file in libattr.

See: http://git.savannah.gnu.org/cgit/coreutils.git/tree/m4/xattr.m4

I use Ubuntu 18. When i ran cp of Ubuntu, the same commands has no
problem.

A possibility may be to find the Ubuntu 18 build recipe for coreutils
and find out what it's doing differently from you. Does it pass
something to the configure script or force any Autoconf variables
(ac_cv_whatevers). Does it apply any patches, etc.


Reply via email to