gienah      15/02/01 01:46:12

  Added:                sbcl-1.0.55-newglibc.patch
  Log:
  Fix Bug 463882 - dev-lisp/sbcl-1.0.55-r1 - x86-64-linux-os.c:93:1: error: 
REG_RAX undeclared (first use in this function). Thanks to Bernardo Costa for 
reporting, Coacher for supplying the pointer to the patch from upstream that is 
applied to fix the problem, Juergen Rose and Guenther Brunthaler for supplying 
build logs, Vasiliy, Nuno Silva, patrick, blueboar, jer, pchrist and tomwij for 
helping. Apply fix for Bug 526194 - dev-lisp/sbcl-1.2.4 does not respect CFLAGS 
and LDFLAGS to sbcl-1.0.55-r1
  
  (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 
618E971F)

Revision  Changes    Path
1.1                  dev-lisp/sbcl/files/sbcl-1.0.55-newglibc.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/sbcl/files/sbcl-1.0.55-newglibc.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/sbcl/files/sbcl-1.0.55-newglibc.patch?rev=1.1&content-type=text/plain

Index: sbcl-1.0.55-newglibc.patch
===================================================================
Fixes for glibc 2.17.

linux-os.c is just a missing header (for personality()).

In x86-64-linux-os.c, __USE_GNU is a glibc-internal name that features.h
defines; _GNU_SOURCE is what it should actually be using to get GNU extensions.

diff -x config.log -x config.status -ru tmp/sbcl-1.1.2/src/runtime/linux-os.c 
work/sbcl-1.1.2/src/runtime/linux-os.c
--- tmp/sbcl-1.1.2/src/runtime/linux-os.c       2012-12-01 11:32:38.000000000 
+0000
+++ work/sbcl-1.1.2/src/runtime/linux-os.c      2012-12-31 01:20:37.619000000 
+0000
@@ -46,6 +46,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 #include <linux/version.h>
+#include <sys/personality.h>
 
 #include "validate.h"
 #include "thread.h"
diff -x config.log -x config.status -ru 
tmp/sbcl-1.1.2/src/runtime/x86-64-linux-os.c 
work/sbcl-1.1.2/src/runtime/x86-64-linux-os.c
--- tmp/sbcl-1.1.2/src/runtime/x86-64-linux-os.c        2012-12-01 
11:32:38.000000000 +0000
+++ work/sbcl-1.1.2/src/runtime/x86-64-linux-os.c       2012-12-31 
01:20:25.450000000 +0000
@@ -14,6 +14,9 @@
  * files for more information.
  */
 
+/* This is to get REG_RAX etc. from sys/ucontext.h. */
+#define _GNU_SOURCE
+
 #include <stdio.h>
 #include <stddef.h>
 #include <sys/param.h>
@@ -21,11 +24,7 @@
 #include <sys/types.h>
 #include <unistd.h>
 #include <errno.h>
-
-#define __USE_GNU
 #include <sys/ucontext.h>
-#undef __USE_GNU
-
 
 #include "./signal.h"
 #include "os.h"




Reply via email to