diff -ur --exclude=configure /home/dan/src/M2-dev/BUILD/dan/builds.tmp/ubuntu32.debug/libraries/pari/tmp/pari-2.3.4/config/locatelib pari-2.3.4/config/locatelib
--- /home/dan/src/M2-dev/BUILD/dan/builds.tmp/ubuntu32.debug/libraries/pari/tmp/pari-2.3.4/config/locatelib	2008-01-16 09:57:05.000000000 -0600
+++ pari-2.3.4/config/locatelib	2010-02-06 09:04:23.000000000 -0600
@@ -17,6 +17,10 @@
         if test -z "$try"; then
           try=`ls $dir/lib$lib.a 2> /dev/null`
         fi
+        # for .dll.a
+        if test -z "$try"; then
+          try=`ls $dir/lib$lib.dll.a 2> /dev/null`
+        fi
       else
         try=
       fi;;
diff -ur --exclude=configure /home/dan/src/M2-dev/BUILD/dan/builds.tmp/ubuntu32.debug/libraries/pari/tmp/pari-2.3.4/src/language/anal.c pari-2.3.4/src/language/anal.c
--- /home/dan/src/M2-dev/BUILD/dan/builds.tmp/ubuntu32.debug/libraries/pari/tmp/pari-2.3.4/src/language/anal.c	2008-07-08 10:52:57.000000000 -0500
+++ pari-2.3.4/src/language/anal.c	2010-02-06 09:40:49.000000000 -0600
@@ -2616,10 +2616,11 @@
   return *table = ep;
 }
 
+long max_avail; /* initialized in init.c when memory is allocated */
+
 long
 manage_var(long n, entree *ep)
 {
-  static long max_avail = MAXVARN; /* max variable not yet used */
   static long nvar; /* first GP free variable */
   long var;
   GEN p;
diff -ur --exclude=configure /home/dan/src/M2-dev/BUILD/dan/builds.tmp/ubuntu32.debug/libraries/pari/tmp/pari-2.3.4/src/language/anal.h pari-2.3.4/src/language/anal.h
--- /home/dan/src/M2-dev/BUILD/dan/builds.tmp/ubuntu32.debug/libraries/pari/tmp/pari-2.3.4/src/language/anal.h	2008-06-10 09:40:18.000000000 -0500
+++ pari-2.3.4/src/language/anal.h	2010-02-06 09:39:52.000000000 -0600
@@ -20,6 +20,8 @@
 /*************************************************************************/
 BEGINEXTERN
 
+extern long max_avail;
+
 /* GP control structures */
 typedef struct {
   entree *ep;
diff -ur --exclude=configure /home/dan/src/M2-dev/BUILD/dan/builds.tmp/ubuntu32.debug/libraries/pari/tmp/pari-2.3.4/src/language/init.c pari-2.3.4/src/language/init.c
--- /home/dan/src/M2-dev/BUILD/dan/builds.tmp/ubuntu32.debug/libraries/pari/tmp/pari-2.3.4/src/language/init.c	2008-03-04 06:29:45.000000000 -0600
+++ pari-2.3.4/src/language/init.c	2010-02-06 09:41:13.000000000 -0600
@@ -612,6 +612,7 @@
   polvar = (GEN) gpmalloc((MAXVARN+1)*sizeof(long));
   pol_x = (GEN*) gpmalloc((MAXVARN+1)*sizeof(GEN));
   pol_1 = (GEN*) gpmalloc((MAXVARN+1)*sizeof(GEN));
+  max_avail = MAXVARN;
   polvar[0] = evaltyp(t_VEC) | evallg(1);
   for (u=0; u <= MAXVARN; u++) { ordvar[u] = u; varentries[u] = NULL; }
   pari_init_floats();
