Xen 
 
Home Products Support Community News
 
   
 

xen-bugs

[Xen-bugs] [Bug 1062] Incomplete build Xen 3.1 with GCC 4.2

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 1062] Incomplete build Xen 3.1 with GCC 4.2
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Mon, 19 Nov 2007 08:40:24 -0800
Delivery-date: Mon, 19 Nov 2007 08:41:40 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <bug-1062-3@xxxxxxxxxxxxxxxxxxxxxxxxxxx/bugzilla/>
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1062





------- Comment #1 from hector.sanchez@xxxxxxxxx  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!!


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs

<Prev in Thread] Current Thread [Next in Thread>