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] lib/blktaplib.h:199:0: error: "WRITE" redefined

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] lib/blktaplib.h:199:0: error: "WRITE" redefined
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Wed, 12 Jan 2011 19:40:52 +0100
Delivery-date: Wed, 12 Jan 2011 10:41:57 -0800
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1294857658; l=636; s=domk; d=aepfle.de; h=Content-Type:MIME-Version:Subject:To:From:Date:X-RZG-CLASS-ID: X-RZG-AUTH; bh=Fa3i038OImswVk11kZCCJ5fi5TE=; b=KWFWtVuMaxbqqBbZA0Y+vS7Kp1vB6cUQODENnokl3gJlZ+LkEoIR86edLyy14W0I/31 orXhmKmqjLFQa/EsO8MGX1t41T6gvZJuwNJmAGguDV2Hv8uPh2PEk8GJVeoRWTGQGj6/7 zd6zG75ldrJeDfakR/5/mcf5FOoJLWptcpA=
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
Hello,

today I tried to build xen-unstable against the upcoming openSuSE 11.4.
It failed with this error:

cc1: warnings being treated as errors
In file included from tapdisk.h:62:0,
                 from blk_linux.c:4:
../lib/blktaplib.h:199:0: error: "WRITE" redefined
/usr/include/linux/fs.h:150:0: note: this is the location of the previous 
definition
make[5]: *** [blk_linux.o] Error 1

I see WRITE and READ defined in two places, perhaps another header already has
suitable defines for the fds[] array access.

./tools/blktap/lib/blktaplib.h:199:#define WRITE 1
./tools/blktap2/include/blktaplib.h:193:#define WRITE 1

Olaf


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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] lib/blktaplib.h:199:0: error: "WRITE" redefined, Olaf Hering <=