Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587228 - app-emulation/xen-tools-4.6.1-r4 fails while compiling with xfs.h redefinition of ‘struct fsxattr’
Summary: app-emulation/xen-tools-4.6.1-r4 fails while compiling with xfs.h redefinitio...
Status: RESOLVED OBSOLETE
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 10:53 UTC by Joerg Neikes
Modified: 2021-09-03 23:14 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge-info.txt,18.31 KB, text/plain)
2016-06-27 10:59 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 10:53:15 UTC
Error on compiling app-emulation/xen-tools-4.6.1-r4

Here the error snipped: 
In file included from /usr/include/xfs/xfs.h:58:0,
                 from /var/tmp/portage/app-emulation/xen-tools-4.6.1-
r4/work/xen-4.6.1/tools/qemu-xen/block/raw-posix.c:90:
/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.6.1-
r4/work/xen-4.6.1/tools/qemu-xen/block/raw-posix.c:58:0:
/usr/include/linux/fs.h:155:8: note: originally defined here
 struct fsxattr {
        ^
/var/tmp/portage/app-emulation/xen-tools-4.6.1-r4/work/xen-
4.6.1/tools/qemu-xen/block/raw-posix.c: In function
‘raw_reopen_prepare’:
/var/tmp/portage/app-emulation/xen-tools-4.6.1-r4/work/xen-
4.6.1/tools/qemu-xen/block/raw-posix.c:554: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.6.1-
r4/work/xen-4.6.1/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.6.1-r4/work/xen-
4.6.1/tools/qemu-xen/util/oslib-posix.c: In function
‘qemu_try_memalign’:
/var/tmp/portage/app-emulation/xen-tools-4.6.1-r4/work/xen-
4.6.1/tools/qemu-xen/util/oslib-posix.c:106:5: warning: ISO C90 forbids
mixed declarations and code [-Wdeclaration-after-statement]
     int ret;
     ^
make[2]: Leaving directory '/var/tmp/portage/app-emulation/xen-tools-
4.6.1-r4/work/xen-4.6.1/tools/qemu-xen-dir'
make[1]: *** [Makefile:237: subdir-all-qemu-xen-dir] Error 2
make[1]: Leaving directory '/var/tmp/portage/app-emulation/xen-tools-
4.6.1-r4/work/xen-4.6.1/tools'
make: *** [/var/tmp/portage/app-emulation/xen-tools-4.6.1-r4/work/xen-
4.6.1/tools/../tools/Rules.mk:118: subdirs-all] Error 2
make: Leaving directory '/var/tmp/portage/app-emulation/xen-tools-
4.6.1-r4/work/xen-4.6.1/tools'
 * ERROR: app-emulation/xen-tools-4.6.1-r4::gentoo failed (compile
phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-
emulation/xen-tools-4.6.1-r4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-
emulation/xen-tools-4.6.1-r4::gentoo'`.
 * The complete build log is located at '/var/log/portage/app-
emulation:xen-tools-4.6.1-r4:20160627-100009.log'.
 * For convenience, a symlink to the build log is located at
'/var/tmp/portage/app-emulation/xen-tools-4.6.1-r4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-
emulation/xen-tools-4.6.1-r4/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/xen-tools-4.6.1-
r4/work/xen-4.6.1'
 * S: '/var/tmp/portage/app-emulation/xen-tools-4.6.1-r4/work/xen-
4.6.1'

> 
> > 
> > > 
> > > Failed to emerge app-emulation/xen-tools-4.6.1-r4, Log file:
> 
> > 
> > > 
> > >   '/var/log/portage/app-emulation:xen-tools-4.6.1-r4:20160627-
> > > 100009.log'
 * 
 * The following package has failed to build, install, or execute
postinst:
 * 
 *  (app-emulation/xen-tools-4.6.1-r4:0/4.6::gentoo, ebuild scheduled
for merge), Log file:
 *   '/var/log/portage/app-emulation:xen-tools-4.6.1-r4:20160627-
100009.log'

Reproducible: Always

Steps to Reproduce:
1.emerge =app-emulation/xen-tools-4.6.1-r4
2. getting error:
The following package has failed to build, install, or execute
postinst:
(app-emulation/xen-tools-4.6.1-r4:0/4.6::gentoo, ebuild scheduled
for merge)

Actual Results:  
fails on emerge 

Expected Results:  
emerge should work
Comment 1 Joerg Neikes 2016-06-27 10:59:56 UTC
Created attachment 438966 [details]
emerge --info

emerge --info
Comment 2 Joerg Neikes 2016-06-27 11:01:12 UTC
The emerge could be done with:

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

https://lists.xenproject.org/archives/html/xen-users/2016-04/msg00061.html
Comment 4 Jonas Stein gentoo-dev 2016-06-27 20:27:03 UTC
Joerg, thank you for testing and providing additional information.

see also 
https://bugs.gentoo.org/show_bug.cgi?id=587232
https://bugs.gentoo.org/show_bug.cgi?id=587234