WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Attempt to build xen-unstable on F11 ( gcc version 4.4.

To: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Subject: Re: [Xen-devel] Attempt to build xen-unstable on F11 ( gcc version 4.4.0 )
From: Jun Koi <junkoi2004@xxxxxxxxx>
Date: Wed, 24 Jun 2009 19:07:47 +0900
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Delivery-date: Wed, 24 Jun 2009 03:08:11 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=nVOnWwWOmaeVkT1fwiJQr1w0Bmq4+s5xiPoa8LTKt78=; b=EInGLgozkOjRu/TONVUss+yxidR/eCJ9PcHbcwvnZOn8eL51vp4g1meh28qIKpuKB3 2kG7Hxl2cspKKvR3i9KQKH9AWHPQPs6T6Es8hPr8JiZcApPKv4TOtTny0qdHpaCzprAl u5L2CKD9fviRCfTXY6D7bqPVnV94fkTgbNU08=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=KOx/kCxpLw0+m6LmRj8oaNEvSJqON23xbFYCSRR+HP8nEe9eY4+VYNUtnpT1H/2ZgU EzUe9kTmXX5Xr3eNCVHCzZs+6/yaabkCvs/GUHvFRdyU/61U9WEaFGbeDdYs7L7ixdQ6 dZAxi4yKwJxRUnzVoJqCVcUywU4X1vipaScTM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <938466.52246.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <938466.52246.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Jun 24, 2009 at 6:57 PM, Boris Derzhavets<bderzhavets@xxxxxxxxx> wrote:
> The failure bellow doesn't happen with gcc 4.3.3 ( Ubuntu 9.04 Server)
> . . . . . . . . . . . .
> gcc  -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall
> -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement
> -D__XEN_TOOLS__ -MMD -MF .vhd-util-check.o.d  -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE  -Werror -Wno-unused -I../../include -D_GNU_SOURCE
> -fPIC -g -Wp,-MD,.vhd-util-check.o.d -c -o vhd-util-check.o vhd-util-check.c
> cc1: warnings being treated as errors
> vhd-util-check.c: In function ‘vhd_util_check_vhd’:
> vhd-util-check.c:809: error: ‘footer.data_offset’ may be used uninitialized
> in this function
> vhd-util-check.c:809: error: ‘footer.type’ may be used uninitialized in this
> function

I had a quick fix for this problem, with following patch. Perhaps that
is not the best way, but at least you can compile blktap2 with it.

For other compilation problems with blktap2, you can pick up the
patches I just post to the list.

Thanks,
J


diff -r 442fb5f1e0a2 tools/blktap2/vhd/lib/vhd-util-check.c
--- a/tools/blktap2/vhd/lib/vhd-util-check.c    Tue Jun 23 17:32:07 2009 +0100
+++ b/tools/blktap2/vhd/lib/vhd-util-check.c    Wed Jun 24 19:04:17 2009 +0900
@@ -808,6 +808,9 @@
        struct stat stats;
        vhd_footer_t footer;

+       footer.data_offset = 0;
+       footer.type = 0;
+
        fd = -1;
        memset(&vhd, 0, sizeof(vhd));

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