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

[Xen-devel] Xen build error based on gcc version

To: "xen-devel mailing list" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Xen build error based on gcc version
From: "Todd Deshane" <deshantm@xxxxxxxxx>
Date: Wed, 26 Nov 2008 16:15:00 -0500
Delivery-date: Wed, 26 Nov 2008 13:15:38 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=tP+z18LOUh20zTMy/3DsEpVFlcUaNCVzG+Y1odE1VWU=; b=Tl9jr+e1mSJbUQ6jB5RCeZi385C15A7HaI/QLZEPTPy1njEMnZo0HSMoy597p2dOJq zEQ5k0whjKFTEPtIgMd7SqdRifWaOiuPv591Vic5nCbfJXdLfXiaOtGHFz1zDXi8DOD0 M44UL6qRUVH8YMYW/1eED20i7JECU9PBzFiUo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=oCMqkNstg7MQqIylT9WdZtYCDVVbrfAPV+L+A8SWRWCTRlAYoUKykKBD/EUXhQu3fv PcWV1eqibEJZ1RvBiRa0OXSlFVbumOLE8PJuimnGfHn4vBLpwkxZLNma/QSND7gqvd/b I/gKUGuvmAH9z9u18z/A7XAiMZslo4lNd9PhI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Reply-to: deshantm@xxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Specific gcc versions seem to have trouble and error out on:

(xen/tools/symbols.c)

symbols.c:84: error: ignoring return value of 'fgets', declared with
attribute warn_unused_result

It has been reported to xen-users are a few occasions, with different
versions of Xen. [1][2][3] Presumably different gcc versions since two
of them are older posts and on different versions of Xen.

I just ran across it on Ubuntu 8.10 gcc version 4.3.2 compiling xen-unstable.

If I switch the compiler to 3.4 or 4.2 it compiles fine.

It is a gcc problem or a problem with the Xen code?

Cheers,
Todd

[1] http://xen.markmail.org/search/?q=fgets symbol.c#query:fgets
symbol.c+page:1+mid:hzvevwa6e6jcunul+state:results

[2] http://xen.markmail.org/search/?q=fgets symbol.c#query:fgets
symbol.c from%3A"Zoran
Kikic"+page:1+mid:3icw4rdteaco6kmf+state:results

[3] http://xen.markmail.org/search/?q=fgets symbol.c#query:fgets
symbol.c from%3A"Zoran
Kikic"+page:1+mid:nwiob3nl42u2dxq3+state:results

-- 
Todd Deshane
http://todddeshane.net
http://runningxen.com

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

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