From: "Bamvor Jian Zhang" Subject: [xen-devel] [PATCH] libxl: fix compile error of libvirt Date: Mon, 20 Feb 2012 02:00:27 -0700 Message-ID: <4F427C2B0200003000000BDD@novprvlin0050.provo.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartD5FBD5BB.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartD5FBD5BB.0__= Content-Type: multipart/alternative; boundary="=__PartD5FBD5BB.1__=" --=__PartD5FBD5BB.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable a, libxl_event.h is included in libxl.h. So, the former one also need to = be installed. =20 b, define __XEN_TOOLS__ in libxl.h:=20 the head file "xen/sysctl.h" need check this macro. =20 It is the same way used by the xen libxc public headers(tools/libxc/xenctrl= .h and tools/libxc/xenctrlosdep.h). =20 Signed-off-by: Bamvor Jian Zhang =20 diff -r 87218bd367be tools/libxl/Makefile=20 --- a/tools/libxl/MakefileFri Feb 17 12:24:38 2012 +0000=20 +++ b/tools/libxl/MakefileMon Feb 20 15:36:09 2012 +0800=20 @@ -163,7 +163,7 @@=20 ln -sf libxlutil.so.$(XLUMAJOR).$(XLUMINOR) $(DESTDIR)$(LIBDIR)/libxlutil.= so.$(XLUMAJOR)=20 ln -sf libxlutil.so.$(XLUMAJOR) $(DESTDIR)$(LIBDIR)/libxlutil.so=20 $(INSTALL_DATA) libxlutil.a $(DESTDIR)$(LIBDIR)=20 -$(INSTALL_DATA) libxl.h libxl_json.h _libxl_types.h _libxl_types_json.h = _libxl_list.h libxl_utils.h libxl_uuid.h $(DESTDIR)$(INCLUDEDIR)=20 +$(INSTALL_DATA) libxl.h libxl_json.h _libxl_types.h _libxl_types_json.h = _libxl_list.h libxl_utils.h libxl_uuid.h libxl_event.h $(DESTDIR)$(INCLUDED= IR)=20 $(INSTALL_DATA) bash-completion $(DESTDIR)$(BASH_COMPLETION_DIR)/xl.sh=20 =20 .PHONY: clean=20 diff -r 87218bd367be tools/libxl/libxl.h=20 --- a/tools/libxl/libxl.hFri Feb 17 12:24:38 2012 +0000=20 +++ b/tools/libxl/libxl.hMon Feb 20 15:36:09 2012 +0800=20 @@ -127,6 +127,11 @@=20 #ifndef LIBXL_H=20 #define LIBXL_H=20 =20 +/* Tell the Xen public headers we are a user-space tools build. */=20 +#ifndef __XEN_TOOLS__=20 +#define __XEN_TOOLS__ 1=20 +#endif =20 +=20 #include =20 #include =20 #include --=__PartD5FBD5BB.1__= Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable =0A =0A=0A =0A =0A
=0A

=0A a= 4; libxl_event.h is included in libxl.h. So, the former one also need = to be installed.

=0A

=0A b= 4; define __XEN_TOOLS__ in libxl.h:

=0A

=0A the head file "xen/sysctl.h" need check this macro. =

=0A

=0A = It is the same way used by = the xen libxc public headers(tools/libxc/xenctrl.h and tools/libxc/xenc= trlosdep.h).

=0A
=0A

=0A Signed-off-by: Bamvor Jian Zhang <bjzhang@suse.com>=

=0A
=0A

=0A diff -r = 87218bd367be tools/libxl/Makefile

=0A

=0A --- a/tools/libxl/MakefileFri Feb 17 12:24:38 2012 +0000

=0A

=0A = +++ b/tools/libx= l/MakefileMon Feb 20 15:36:09 2012 +0800

=0A

=0A @@ -163,7 +163,7 @@ =

=0A

=0A  ln -sf libxlutil.so.$= 0;XLUMAJOR).$(XLUMINOR) $(DESTDIR)$(LIB= DIR)/libxlutil.so.$(XLUMAJOR)

=0A

=0A  ln -sf libxlutil.so.$(XLUMAJOR)= ; $(DESTDIR)$(LIBDIR)/libxlutil.so =

=0A

=0A  $(INSTALL_DATA) = libxlutil.a $(DESTDIR)$(LIBDIR)

=0A =

=0A -$(INSTALL_DATA) libxl.h = libxl_json.h _libxl_types.h _libxl_types_json.h _libxl_list.h libxl_utils.h= libxl_uuid.h $(DESTDIR)$(INCLUDEDIR) =

=0A

=0A +$(INSTALL_DATA) = libxl.h libxl_json.h _libxl_types.h _libxl_types_json.h _libxl_list.h = libxl_utils.h libxl_uuid.h libxl_event.h $(DESTDIR)$(IN= CLUDEDIR)

=0A

=0A  $= 0;INSTALL_DATA) bash-completion $(DESTDIR)$(BASH_CO= MPLETION_DIR)/xl.sh

=0A

=0A &nbs= p;

=0A

=0A =  .PHONY: clean

=0A
=0A

=0A diff -r = 87218bd367be tools/libxl/libxl.h

=0A

=0A --- a/tools/libxl/libxl.hFri Feb 17 12:24:38 2012 +0000

=0A

=0A = +++ b/tools/libx= l/libxl.hMon Feb 20 15:36:09 2012 +0800

=0A

=0A @@ -127,6 +127,11 @@ =

=0A

=0A  #ifndef LIBXL_H =

=0A

=0A  #define LIBXL_H =

=0A

=0A  

=0A

=0A +/* Tell the Xen public headers we are = a user-space tools build. */

=0A

=0A +#ifndef __XEN_TOOLS__

=0A

=0A +#define __XEN_TOOLS__ 1 =

=0A

=0A +#endif =

=0A

=0A +

=0A

=0A  #include <stdbool.h> =

=0A

=0A  #include <stdint.h>= ;

=0A

=0A =  #include = <stdarg.h>

=0A =0A=0A --=__PartD5FBD5BB.1__=-- --=__PartD5FBD5BB.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__PartD5FBD5BB.0__=--