Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 354363 - app-emulation/xen-tools-4.0.1 fails with "WRITE" redefined
Summary: app-emulation/xen-tools-4.0.1 fails with "WRITE" redefined
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-10 13:40 UTC by Joerg Neikes
Modified: 2011-07-20 10:13 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Neikes 2011-02-10 13:40:17 UTC
looks like a kernel-header update problem

Reproducible: Always

Steps to Reproduce:
1. emerge xen-tools
2.
3.

Actual Results:  
In file included from tapdisk.h:62,
                 from blk_linux.c:4:
../lib/blktaplib.h:199:1: error: "WRITE" redefined
In file included from blk_linux.c:3:
/usr/include/linux/fs.h:150:1: error: this is the location of the previous definition
make[4]: *** [blk_linux.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.0.1/work/xen-4.0.1/tools/blktap/drivers'
make[3]: *** [subdir-all-drivers] Error 2
make[3]: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.0.1/work/xen-4.0.1/tools/blktap'
make[2]: *** [subdirs-all] Error 2
make[2]: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.0.1/work/xen-4.0.1/tools/blktap'
make[1]: *** [subdir-all-blktap] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.0.1/work/xen-4.0.1/tools'
make: *** [subdirs-all] Error 2
make: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.0.1/work/xen-4.0.1/tools'
emake failed
 * ERROR: app-emulation/xen-tools-4.0.1 failed (compile phase):
 *   compile failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 5089:  Called die
 * The specific snippet of code:
 *       emake -C tools ${myopt} || die "compile failed";
Comment 1 Joerg Neikes 2011-02-10 13:42:22 UTC
(In reply to comment #0)
> looks like a kernel-header update problem
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. emerge xen-tools
> 2.
> 3.
> 
> Actual Results:  
> In file included from tapdisk.h:62,
>                  from blk_linux.c:4:
> ../lib/blktaplib.h:199:1: error: "WRITE" redefined
> In file included from blk_linux.c:3:
> /usr/include/linux/fs.h:150:1: error: this is the location of the previous
> definition
> make[4]: *** [blk_linux.o] Error 1
> make[4]: *** Waiting for unfinished jobs....
> make[4]: Leaving directory
> `/var/tmp/portage/app-emulation/xen-tools-4.0.1/work/xen-4.0.1/tools/blktap/drivers'
> make[3]: *** [subdir-all-drivers] Error 2
> make[3]: Leaving directory
> `/var/tmp/portage/app-emulation/xen-tools-4.0.1/work/xen-4.0.1/tools/blktap'
> make[2]: *** [subdirs-all] Error 2
> make[2]: Leaving directory
> `/var/tmp/portage/app-emulation/xen-tools-4.0.1/work/xen-4.0.1/tools/blktap'
> make[1]: *** [subdir-all-blktap] Error 2
> make[1]: Leaving directory
> `/var/tmp/portage/app-emulation/xen-tools-4.0.1/work/xen-4.0.1/tools'
> make: *** [subdirs-all] Error 2
> make: Leaving directory
> `/var/tmp/portage/app-emulation/xen-tools-4.0.1/work/xen-4.0.1/tools'
> emake failed
>  * ERROR: app-emulation/xen-tools-4.0.1 failed (compile phase):
>  *   compile failed
>  * 
>  * Call stack:
>  *     ebuild.sh, line  56:  Called src_compile
>  *   environment, line 5089:  Called die
>  * The specific snippet of code:
>  *       emake -C tools ${myopt} || die "compile failed";
> 

fixed with:

vi /usr/include/linux/fs.h 
:150
change 
#define WRITE                        RW_MASK
with
/* #define WRITE                        RW_MASK */

emerge xen-tools and change /usr/include/linux/fs.h back to normal.
#define WRITE                        RW_MASK