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] Compile error when including xenctrl.h

To: Xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Compile error when including xenctrl.h
From: Reiner Dassing <dassing@xxxxxxxxxxxxxx>
Date: Tue, 12 Jun 2007 08:01:06 +0200
Delivery-date: Mon, 11 Jun 2007 23:01:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: BKG-Wettzell
Reply-to: dassing@xxxxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.0 (Windows/20070326)
Hello,

by trying to compile a C++ source having included "xencrtl.h" I got
the following errors on g++ (gcc version 4.1.2 20061115)
and XEN-3.0.4-1:

/usr/include/xenctrl.h:707: error: duplicate 'const'
/usr/include/xenctrl.h:714: error: duplicate 'const'
/usr/include/xenctrl.h:719: error: duplicate 'const'


By changing
line 707 from
const xc_error const *xc_get_last_error(void);
to
xc_error const *xc_get_last_error(void);


line 714 from
typedef void (*xc_error_handler)(const xc_error const* err);
to
typedef void (*xc_error_handler)(xc_error const* err);


line 719 from
void xc_default_error_handler(const xc_error const* err);
to
void xc_default_error_handler(xc_error const* err);

these errors could be solved.

Any comments?


Regards,

Reiner


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

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