From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH] tools/libxl: testenum.c depends on libxl.h Date: Mon, 4 Jul 2011 15:18:23 +0200 Message-ID: <20110704131823.GA8215@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline 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 testenum.c may fail to compile if libxl.h dependencies are not yet met. =2E... make[3]: Entering directory `/usr/src/packages/BUILD/xen-unstable.hg-4.2.23= 655/tools/libxl' python gentypes.py libxl.idl __libxl_types.h __libxl_types.c rm -f _libxl_paths.h.tmp.tmp; echo "SBINDIR=3D\"/usr/sbin\"" >> _libxl_path= s.h.tmp.tmp; echo "BINDIR=3D\"/usr/bin\"" >> _libxl_paths.h.tmp.tmp; echo "= LIBEXEC=3D\"/usr/lib/xen/bin\"" >> _libxl_paths.h.tmp.tmp; echo "LIBDIR=3D\= "/usr/lib64\"" >> _libxl_paths.h.tmp.tmp; echo "SHAREDIR=3D\"/usr/share\"" = >> _libxl_paths.h.tmp.tmp; echo "PRIVATE_BINDIR=3D\"/usr/lib64/xen/bin\"" >= > _libxl_paths.h.tmp.tmp; echo "XENFIRMWAREDIR=3D\"/usr/lib/xen/boot\"" >> = _libxl_paths.h.tmp.tmp; echo "XEN_CONFIG_DIR=3D\"/etc/xen\"" >> _libxl_path= s.h.tmp.tmp; echo "XEN_SCRIPT_DIR=3D\"/etc/xen/scripts\"" >> _libxl_paths.h= =2Etmp.tmp; echo "XEN_LOCK_DIR=3D\"/var/lock\"" >> _libxl_paths.h.tmp.tmp; = echo "XEN_RUN_DIR=3D\"/var/run/xen\"" >> _libxl_paths.h.tmp.tmp; if ! cmp _= libxl_paths.h.tmp.tmp _libxl_paths.h.tmp; then mv -f _libxl_paths.h.tmp.tmp= _libxl_paths.h.tmp; fi python gentest.py libxl.idl testenum.c.new Parsing libxl.idl cmp: _libxl_paths.h.tmp: No such file or directory sed -e "s/\([^=3D]*\)=3D\(.*\)/#define \1 \2/g" _libxl_paths.h.tmp >_libxl_= paths.h.2.tmp if ! cmp -s _libxl_paths.h.2.tmp _libxl_paths.h; then mv -f _libxl_paths.h.= 2.tmp _libxl_paths.h; fi Parsing libxl.idl mv testenum.c.new testenum.c gcc -fmessage-length=3D0 -O2 -Wall -D_FORTIFY_SOURCE=3D2 -funwind-tables = -fasynchronous-unwind-tables -g -O1 -fno-omit-frame-pointer -m64 -g -fno-st= rict-aliasing -std=3Dgnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wde= claration-after-statement -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-= aliasing -std=3Dgnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclara= tion-after-statement -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-alias= ing -std=3Dgnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-= after-statement -D__XEN_TOOLS__ -MMD -MF .subdirs-install.d -D_LARGEFILE_= SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -O1 -fno-omit-fram= e-pointer -m64 -g -fno-strict-aliasing -std=3Dgnu99 -Wall -Wstrict-prototyp= es -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -M= F .subdir-install-libxl.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-o= ptimize-sibling-calls -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-alias= ing -std=3Dgnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-= after-statement -D__XEN_TOOLS__ -MMD -MF .testenum.o.d -D_LARGEFILE_SOURC= E -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -Werror -Wno-format-zer= o-length -Wmissing-declarations -I. -fPIC -I/usr/src/packages/BUILD/xen-uns= table.hg-4.2.23655/tools/libxl/../../tools/libxc -I/usr/src/packages/BUILD/= xen-unstable.hg-4.2.23655/tools/libxl/../../tools/include -I/usr/src/packag= es/BUILD/xen-unstable.hg-4.2.23655/tools/libxl/../../tools/libxl -I/usr/src= /packages/BUILD/xen-unstable.hg-4.2.23655/tools/libxl/../../tools/libxc -I/= usr/src/packages/BUILD/xen-unstable.hg-4.2.23655/tools/libxl/../../tools/in= clude -I/usr/src/packages/BUILD/xen-unstable.hg-4.2.23655/tools/libxl/../..= /tools/include -c -o testenum.o testenum.c In file included from testenum.c:3: libxl.h:199:26: error: _libxl_types.h: No such file or directory In file included from testenum.c:3: libxl.h:203: error: expected '=3D', ',', ';', 'asm' or '__attribute__' befo= re '*' token =2E... Signed-off-by: Olaf Hering Index: xen-unstable.hg-4.2.23655/tools/libxl/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- xen-unstable.hg-4.2.23655.orig/tools/libxl/Makefile +++ xen-unstable.hg-4.2.23655/tools/libxl/Makefile @@ -52,7 +52,7 @@ $(XL_OBJS): CFLAGS +=3D $(CFLAGS_libxenctr $(XL_OBJS): CFLAGS +=3D $(CFLAGS_libxenlight) =20 testenum.o: CFLAGS +=3D $(CFLAGS_libxenctrl) $(CFLAGS_libxenlight) -testenum.c: libxl.idl gentest.py +testenum.c: libxl.idl gentest.py libxl.h $(PYTHON) gentest.py libxl.idl testenum.c.new mv testenum.c.new testenum.c =20