Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587234 - app-emulation/xen-tools-4.7.0 fails while compiling with xfs.h redefinition of ‘struct fsxattr’
Summary: app-emulation/xen-tools-4.7.0 fails while compiling with xfs.h redefinition o...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-27 11:29 UTC by Joerg Neikes
Modified: 2018-04-04 12:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,18.31 KB, text/plain)
2016-06-27 11:29 UTC, Joerg Neikes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Neikes 2016-06-27 11:29:26 UTC
In file included from /usr/include/xfs/xfs.h:58:0,
                 from /var/tmp/portage/app-emulation/xen-tools-
4.7.0/work/xen-4.7.0/tools/qemu-xen/block/raw-posix.c:97:
/usr/include/xfs/xfs_fs.h:42:8: error: redefinition of ‘struct fsxattr’
 struct fsxattr {
        ^
In file included from /var/tmp/portage/app-emulation/xen-tools-
4.7.0/work/xen-4.7.0/tools/qemu-xen/block/raw-posix.c:60:0:
/usr/include/linux/fs.h:155:8: note: originally defined here
 struct fsxattr {
        ^
/var/tmp/portage/app-emulation/xen-tools-4.7.0/work/xen-
4.7.0/tools/qemu-xen/block/raw-posix.c: In function
‘raw_reopen_prepare’:
/var/tmp/portage/app-emulation/xen-tools-4.7.0/work/xen-
4.7.0/tools/qemu-xen/block/raw-posix.c:637:5: warning: ISO C90 forbids
mixed declarations and code [-Wdeclaration-after-statement]
     int fcntl_flags = O_APPEND | O_NONBLOCK;
     ^
make[2]: *** [/var/tmp/portage/app-emulation/xen-tools-4.7.0/work/xen-
4.7.0/tools/qemu-xen/rules.mak:57: block/raw-posix.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/app-emulation/xen-tools-4.7.0/work/xen-
4.7.0/tools/qemu-xen/block/io.c: In function ‘bdrv_aio_flush’:
/var/tmp/portage/app-emulation/xen-tools-4.7.0/work/xen-
4.7.0/tools/qemu-xen/block/io.c:2162:5: warning: ISO C90 forbids mixed
declarations and code [-Wdeclaration-after-statement]
     Coroutine *co;
     ^
make[2]: Leaving directory '/var/tmp/portage/app-emulation/xen-tools-
4.7.0/work/xen-4.7.0/tools/qemu-xen-dir'
make[1]: *** [Makefile:236: subdir-all-qemu-xen-dir] Error 2
make[1]: Leaving directory '/var/tmp/portage/app-emulation/xen-tools-
4.7.0/work/xen-4.7.0/tools'
make: *** [/var/tmp/portage/app-emulation/xen-tools-4.7.0/work/xen-
4.7.0/tools/../tools/Rules.mk:211: subdirs-all] Error 2
make: Leaving directory '/var/tmp/portage/app-emulation/xen-tools-
4.7.0/work/xen-4.7.0/tools'
 * ERROR: app-emulation/xen-tools-4.7.0::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-
emulation/xen-tools-4.7.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-
emulation/xen-tools-4.7.0::gentoo'`.
 * The complete build log is located at '/var/log/portage/app-
emulation:xen-tools-4.7.0:20160627-103705.log'.
 * For convenience, a symlink to the build log is located at
'/var/tmp/portage/app-emulation/xen-tools-4.7.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-
emulation/xen-tools-4.7.0/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/xen-tools-
4.7.0/work/xen-4.7.0'
 * S: '/var/tmp/portage/app-emulation/xen-tools-4.7.0/work/xen-4.7.0'

> 
> > 
> > > 
> > > Failed to emerge app-emulation/xen-tools-4.7.0, Log file:
> 
> > 
> > > 
> > >   '/var/log/portage/app-emulation:xen-tools-4.7.0:20160627-
> > > 103705.log'


Reproducible: Always

Steps to Reproduce:
1.emerge =app-emulation/xen-tools-4.7.0
2. getting error:
The following package has failed to build, install, or execute
postinst:
(app-emulation/xen-tools-4.7.0:0/4.7::gentoo, ebuild scheduled
for merge
Actual Results:  
fails on emerge 

Expected Results:  
emerge should work
Comment 1 Joerg Neikes 2016-06-27 11:29:49 UTC
Created attachment 438970 [details]
emerge --info

emerge --info
Comment 2 Joerg Neikes 2016-06-27 11:35:02 UTC
emerge works with:

EXTRA_QEMUU_CONFIGURE_ARGS="--disable-werror --disable-xfsctl" \
emerge =app-emulation/xen-tools-4.7.0
Comment 3 Joerg Neikes 2016-06-27 11:37:38 UTC
for more informations have a look at:

https://lists.xenproject.org/archives/html/xen-users/2016-04/msg00061.html
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2016-12-20 04:15:45 UTC
This should be fixed in newer versions. Can you confirm?