From: Reiner Dassing Subject: Compile error when including xenctrl.h Date: Tue, 12 Jun 2007 08:01:06 +0200 Message-ID: <466E36A2.2080504@wettzell.ifag.de> Reply-To: dassing@fs.wettzell.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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