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

Re: Fwd: xfstests: error: redefinition of 'struct fsxattr'



On Tue, Jul 19, 2016 at 3:38 PM, Anatoly Pugachev <matorola@gmail.com> wrote:
> On Tue, Jul 19, 2016 at 1:31 PM, Eryu Guan <eguan@redhat.com> wrote:
>> On Tue, Jul 19, 2016 at 01:24:53PM +0300, Anatoly Pugachev wrote:
>>> Hello!
>>>
>>> Can someone help me to compile xfstests taken from
>>> git://oss.sgi.com/xfs/cmds/xfstests
>>
>> This should have been fixed in latest xfstests. Does your tree contain
>> commit ca7c8bcbe851 ("build: avoid struct fsxattr redefinition")?
>
> Eryu,
>
> my current HEAD is at 024bdae (as seen in the output of git describe) :
>
> mator@windrunner:~/xfstests$ git describe
> linux-v3.8-1104-g024bdae
> mator@windrunner:~$ rm -rf xfstests/
> mator@windrunner:~$ git clone git://oss.sgi.com/xfs/cmds/xfstests
> Cloning into 'xfstests'...
> remote: Counting objects: 19617, done.
> remote: Compressing objects: 100% (9493/9493), done.
> remote: Total 19617 (delta 14867), reused 13480 (delta 9928)
> Receiving objects: 100% (19617/19617), 5.21 MiB | 828.00 KiB/s, done.
> Resolving deltas: 100% (14867/14867), done.
> Checking connectivity... done.
>
> mator@windrunner:~$ cd xfstests/
> mator@windrunner:~/xfstests$ make
> autoheader
> autoconf
> ./configure \
> --libexecdir=/usr/lib
> checking for gcc... gcc
> checking whether the C compiler works... yes
> ...
> checking for renameat2... no
> configure: creating ./config.status
> config.status: creating include/builddefs
> config.status: creating include/config.h
> Building include
> Building lib
> [LTDEP]
> [CC] dataascii.lo
> [CC] databin.lo
> [CC] datapid.lo
> [CC] file_lock.lo
> [CC] forker.lo
> [CC] pattern.lo
> [CC] open_flags.lo
> [CC] random_range.lo
> [CC] string_to_tokens.lo
> [CC] str_to_bytes.lo
> [CC] tlibio.lo
> [CC] write_log.lo
> [CC] random.lo
> [LD]
> ar: `u' modifier ignored since `D' is the default (see `U')
> Building ltp
> [DEP]
> [CC] doio
> [CC] fsstress
> In file included from /usr/include/xfs/xfs.h:58:0,
> from ../src/global.h:25,
> from fsstress.c:20:
> /usr/include/xfs/xfs_fs.h:42:8: error: redefinition of 'struct fsxattr'
> struct fsxattr {
> ^
> In file included from fsstress.c:19:0:
> /usr/include/linux/fs.h:155:8: note: originally defined here
> struct fsxattr {
> ^
> Makefile:42: recipe for target 'fsstress' failed
> make[3]: *** [fsstress] Error 1
> include/buildrules:30: recipe for target 'ltp' failed
> make[2]: *** [ltp] Error 2
> Makefile:66: recipe for target 'default' failed
> make[1]: *** [default] Error 2
> Makefile:64: recipe for target 'default' failed
> make: *** [default] Error 2
> mator@windrunner:~/xfstests$

Коллеги,

а никто не поможет с проблемой?

не могу скомпилировать xfstests (взято с git://oss.sgi.com/xfs/cmds/xfstests) на debian sid (что на x86_64, что на sparc64) с ядром 4.6.3.
Причем сейчас попробовал на fedora 24 (ядро 4.6.4-301.fc24.x86_64) собирается, на archlinux (x86_64, ядро 4.6.4-1-ARCH) тоже собирается. Даже на archlinux на RPI (arm) собирается.


Reply to: