Ilya Zakharevich on Wed, 03 Feb 2010 23:01:12 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: PARI stable release 2.3.5 (for real now)


On Fri, Jan 29, 2010 at 11:09:50PM +0100, Bill Allombert wrote:
> I put an hopefully final snapshot at
> <http://pari.math.u-bordeaux.fr/~bill/pari-2.3.5-pre2.tar.gz>
> 
> Please test!

The attached patches are tested vs 2.3.5 (on OS/2; should have no
effect elsewhere).  These are slightly reworked patches which were
send here long time ago already (maybe even several times).  Have no
idea why I need to post them again...

Thanks,
Ilya
--- ./src/test/dotest-ini	Fri May 26 16:54:56 2006
+++ ./src/test/dotest	Fri May 26 17:03:30 2006
@@ -135,19 +135,22 @@ case "x$bugp" in
       file_diff=program-sta.dif;;
 esac
 if test -n "$file_diff"; then
-len=`wc -l $file_diff | sed -e 's/ *\([0-9]*\).*/\1/'`
-pat=`${head}4 $file_diff|${tail}1|grep "112,122"`
-sys0190=`grep "^+ SYS0190\>" $file_diff`
+  len=`wc -l $file_diff | sed -e 's/ *\([0-9]*\).*/\1/'`
+  pat=`${head}4 $file_diff|${tail}1|grep "112,122"`
+  sys0190=`grep "^+ SYS0190\>" $file_diff`
 
-if test $len -eq 51  -a  -n "$sys0190"; then
-  len=49			# more verbose error message on OS/2
-fi
-if test $len -eq 49  -a  -n "$pat"; then
-cat << EOT
+  if test -n "$sys0190"; then
+    len=`expr $len - 2`			# more verbose error message on OS/2
+    if test $len -eq 29; then
+      len=49				# ??? Usually len=29???
+    fi
+  fi
+  if test $len -eq 49  -a  -n "$pat"; then
+    cat << EOT
 NOTE: the problem noted in 'program' is that install() does not work in your
 configuration$end, so you will not be able to use this feature. Otherwise you
 can safely ignore the above warning.
 EOT
-fi
+  fi
 fi
 exit 1
--- ./config/paricfg.h.SH-ini	Wed Nov  9 10:18:36 2005
+++ ./config/paricfg.h.SH	Sun May 28 03:20:02 2006
@@ -175,6 +175,10 @@ case $has_getrlimit in
 yes) echo '#define STACK_CHECK' >> $file;;
 esac
 
+case "$osname" in
+os2)  echo '#define STACK_CHECK' >> $file;;
+esac
+
 case $has_vsnprintf in
 yes) echo '#define HAS_VSNPRINTF' >> $file;;
 esac
--- ./README.os2.orig	Mon Mar 31 04:44:00 2008
+++ ./README.os2	Wed Feb  3 12:55:34 2010
@@ -20,7 +20,9 @@ To build with OMF-type target
 This build constructs a working DLL.  Both -Zomf and -Zcrtdll are crucial to
 have a functioning DLL (see EMX documentation for details).  -Zstack 8192
 forces the same C stack size as for AOUT build (and the same - 8M - as on many
-Unices, so you get few surprises when things work on Unix, but core on OS/2).
+Unices, so you get fewer surprises when things work on Unix, but core on OS/2
+due only to shorter C stack).  (The standard Configure adds -Zsysv-signals
+option; in fact, this option is not needed - as checked with v2.3.5.)
 
 Use of the the readline-DLL (via the readline_import.lib library) is not only
 a convenience, but also statically linked readline library are often broken;
@@ -36,7 +38,7 @@ Thus the build process may look like thi
   sh Configure --graphic=gnuplot-dynamic,gnpltdrw
   make gp
   cd Oos2-ix86
-  make _O=.obj _A=.lib CC_FLAVOR="-Zomf -Zcrtdll -Zstack 8192 -DOLD_SET_FEEDBACK_RECTANGLE" RLLIBS=-lreadline_import DLLD_IGNORE= AR=emxomfar bench
+  make _O=.obj _A=.lib CC_FLAVOR="-Zomf -Zcrtdll -Zstack 8192 -DUSE_SET_FEEDBACK_RECTANGLE" RLLIBS=-lreadline_import DLLD_IGNORE= AR=emxomfar bench
   cd ..
 
 The statically build PARI library is in a file named similar to libpari-2_2.a,