5 messages in com.xensource.lists.xen-bugs[Xen-bugs] [Bug 1062] Incomplete buil...
FromSent OnAttachments
bugz...@lists.xensource.comSep 12, 2007 7:12 am 
bugz...@lists.xensource.comNov 19, 2007 8:40 am 
bugz...@lists.xensource.comNov 19, 2007 7:34 pm 
bugz...@lists.xensource.comNov 19, 2007 7:40 pm 
bugz...@lists.xensource.comNov 27, 2007 8:47 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[Xen-bugs] [Bug 1062] Incomplete build Xen 3.1 with GCC 4.2Actions...
From:bugz...@lists.xensource.com (bugz@lists.xensource.com)
Date:Nov 19, 2007 8:40:01 am
List:com.xensource.lists.xen-bugs

http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1062

------- Comment #1 from hect@wbsgo.com 2007-11-19 08:40 ------- Created an attachment (id=698) --> (http://bugzilla.xensource.com/bugzilla/attachment.cgi?id=698&action=view) Proposal for a patch for this bug in xc_core.c compilling xen tools.

Hello,

First, excuse me for my bad English, and then, and then send you a proposal for a patch to fix the problem compiling xen-3.1.0. whith any gcc.

Try the patch and check whether the problem has been solved. I have a AMD64x2, and has allowed me to compile and operate normally.

The error compiling: ... -I../xenstore -Wp,-MD,.xc_core.o.d -c -o xc_core.o xc_core.c cc1: warnings being treated as errors xc_core.c: In function ‘xc_core_shdr_get’: xc_core.c:195: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false make[4]: *** [xc_core.o] Error 1 make[4]: Leaving directory `/usr/src/xen-3.1.0-src/tools/libxc' ...

In file xen-src/tools/libxc/xc_core.c line:195

if SHDR_INC is a positive number, this sentence always will be false, so I deleted this lines.

if ( sheaders->num_max + SHDR_INC < sheaders->num_max ) { errno = E2BIG; return NULL; }

I hope that this patch helpful. BYE!!