From: "Stephen C. Tweedie" Subject: [Patch] Trivial fix for compile failure with latest glibc Date: Wed, 20 Sep 2006 23:05:25 +0100 Message-ID: <1158789925.5765.41.camel@sisko.scot.redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-mfEjCqDrthlznMiixUyG" 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 --=-mfEjCqDrthlznMiixUyG Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, libxc fails to compile for me on the very latest glibc due to a combination of -Werror, a switch() statement in xc_ptrace() without a default, and 4 new enum values in the latest glibc. Easy fix attached. --Stephen --=-mfEjCqDrthlznMiixUyG Content-Description: Content-Disposition: inline; filename=xen-ptrace-enum.patch Content-Type: text/x-patch; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Fix libxc compile failure against new glibc libxc's ptrace code #includes for enum __ptrace_request, and in xc_ptrace() has a long switch statement to handle the various cases. Unfortunately the latest glibc adds various new values to the enum which are not caught in the switch statement, and so compilation with -Werror fails. Fix this the trivial way with a default: so that both older and newer glibcs still work. Signed-off-by: Stephen Tweedie --- xen-unstable-11539/tools/libxc/xc_ptrace.c.~1~ 2006-09-20 13:56:32.000000000 +0100 +++ xen-unstable-11539/tools/libxc/xc_ptrace.c 2006-09-20 22:26:56.000000000 +0100 @@ -617,6 +617,7 @@ case PTRACE_POKEUSER: case PTRACE_SYSCALL: case PTRACE_KILL: + default: goto out_unsupported; /* XXX not yet supported */ case PTRACE_TRACEME: --=-mfEjCqDrthlznMiixUyG 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.xensource.com http://lists.xensource.com/xen-devel --=-mfEjCqDrthlznMiixUyG--