Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 gcl (2.6.10-7) unstable; urgency=high
 .
   * 2.6.11pre test 6
Author: Camm Maguire <camm@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- gcl-2.6.10.orig/configure
+++ gcl-2.6.10/configure
@@ -5606,6 +5606,7 @@ fi
  	fi
 
 	TLIBS="$TLIBS -ldl -rdynamic"
+	TCFLAGS="-fPIC $TCFLAGS"
 
 $as_echo "#define USE_DLOPEN 1" >>confdefs.h
 
@@ -8427,7 +8428,6 @@ $as_echo "no" >&6; }
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
-
 for ac_func in sigaltstack
 do :
   ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
--- gcl-2.6.10.orig/configure.in
+++ gcl-2.6.10/configure.in
@@ -962,6 +962,7 @@ dnl	AC_SEARCH_LIBS(dlopen, dl, have_dl=1
 dnl LIBS and TLIBS - why not merged from the beginning?
 
 	TLIBS="$TLIBS -ldl -rdynamic"
+	TCFLAGS="-fPIC $TCFLAGS"
 dnl	TLIBS="$TLIBS -rdynamic"
 	AC_DEFINE(USE_DLOPEN,1,[link compiled objects via libdl])
 fi
--- gcl-2.6.10.orig/h/protoize.h
+++ gcl-2.6.10/h/protoize.h
@@ -1289,9 +1289,6 @@ void
 Lwrite_byte(void);
 
 void
-unlink_loaded_files(void);
-
-void
 FEpackage_error(object,const char *s);
 
 int
--- gcl-2.6.10.orig/o/read.d
+++ gcl-2.6.10/o/read.d
@@ -66,7 +66,7 @@ parse_unsigned_integer_negate(char *s1,c
   else
     for (o=u=1,f=0,s=s1;*s && (d=digitp(*s,radix))>=0;u=0,o=o && f<l,f=f*radix+d,s++);
 
-  *ep=s;
+  if (ep) *ep=s;
 
   if (u) return OBJNULL;
   if (o && !*s) return make_fixnum(neg ? -f : f);
@@ -137,7 +137,11 @@ parse_number(char *s,int radix) {
       ch=*q ? *q : 'E';
     }
 
-    if ((c=*q)) *q='E';
+    if ((c=*q)) {
+      if (parse_integer(q+1,NULL,10)==OBJNULL)
+      	return OBJNULL;
+      *q='E';
+    }
     n=sscanf(s,"%lf%n",&f,&m);
     *q=c;
     if (n!=1||s[m]) return OBJNULL;
--- gcl-2.6.10.orig/o/sfasl.c
+++ gcl-2.6.10/o/sfasl.c
@@ -37,7 +37,7 @@ via #include "../c/sfasl.c"
 /*  #endif */
 
 
-#ifdef SPECIAL_RSYM
+#if defined(SPECIAL_RSYM) && !defined(USE_DLOPEN)
 
 #include <string.h>
 
