Bug 129429 - app-emulation/xen-tools-3.0.2 emerge failed
Bug#: 129429 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: chrb@gentoo.org Reported By: langthang@gentoo.org
Component: Applications
URL: 
Summary: app-emulation/xen-tools-3.0.2 emerge failed
Keywords:  
Status Whiteboard: 
Opened: 2006-04-09 22:31 0000
Description:   Opened: 2006-04-09 22:31 0000
gcc -O2 -march=pentium4 -fomit-frame-pointer -fforce-addr -mmmx -msse -msse2
-mfpmath=sse -nopie -fno-stack-protector -DNDEBUG -m32  -Wall
-Wstrict-prototypes -Wdeclaration-after-statement 
-D__XEN_INTERFACE_VERSION__=0x00030101 -DNDEBUG -m32  -Wall -Wstrict-prototypes
-Wdeclaration-after-statement  -D__XEN_INTERFACE_VERSION__=0x00030101 -Werror
-I ../../tools/python/xen/lowlevel/xc -I ../../tools/libxc -o xenperf xenperf.o
-L../../tools/libxc -lxenctrl
gcc  -O2 -march=pentium4 -fomit-frame-pointer -fforce-addr -mmmx -msse -msse2
-mfpmath=sse -nopie -fno-stack-protector -DNDEBUG -m32  -Wall
-Wstrict-prototypes -Wdeclaration-after-statement 
-D__XEN_INTERFACE_VERSION__=0x00030101 -DNDEBUG -m32  -Wall -Wstrict-prototypes
-Wdeclaration-after-statement  -D__XEN_INTERFACE_VERSION__=0x00030101 -Werror
-I ../../tools/python/xen/lowlevel/xc -I ../../tools/libxc -c -o xc_shadow.o
xc_shadow.c
xc_shadow.c: In function `main':
xc_shadow.c:31: error: invalid lvalue in assignment
make[1]: *** [xc_shadow.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/xen-tools-3.0.2/work/xen-3.0.2/tools/misc'
make: *** [all] Error 2
make: Leaving directory `/var/tmp/portage/xen-tools-3.0.2/work/xen-3.0.2/tools'

!!! ERROR: app-emulation/xen-tools-3.0.2 failed.
Call stack:
  ebuild.sh, line 1532:   Called dyn_compile
  ebuild.sh, line 929:   Called src_compile
  xen-tools-3.0.2.ebuild, line 69:   Called die

!!! compile failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.

lookup line 31 of tools/misc/xc_shadow.c:
int mode=-1 = 0

which is the result of the sed line in the build:
sed -e "s/int mode/int mode=-1/" -i ${S}/tools/misc/xc_shadow.c

------- Comment #1 From Chris Bainbridge (RETIRED) 2006-04-10 01:12:02 0000 -------
thanks, I've removed the sed line so this should be fixed.