> < ^ Date: Sat, 02 May 1992 15:14:38 +0200
> < ^ From: Martin Schoenert <martin.schoenert@math.rwth-aachen.de >
< ^ Subject: Re: Problems with the patch kit on a NeXT

John Neil writes in his e-mail of 1-May-92:

I've just gotten the upgrade patch kit working and seems to work just
great on our Sequent. However, on the NeXT in our department, while
there are no errors during the patch or during compilation, when I
run gap, nothing I type is echoed to the screen. I've been using the
'make bsd' option when compiling since this appeared to be the
closest configuration. Is there another option I should use or
another fix which must be made?

Well, I messed up with the upgrade. The new version works allright on
little endian machines (such as a DECstation or a Sequent) but fails on
big endian machines (such as a NeXT or a SUN).

You have to make another small patch to 'system.bsd' and 'system.usg'.

diff -u src/system.bsd src/system.bsd
--- src/system.bsd      1992/04/28 13:48:54
+++ src/system.bsd      1992/05/02 13:02:21
@@ -2,7 +2,7 @@
 **
 *A  system.bsd                  GAP source                   Martin Schoenert
 **
-*A  @(#)$Id: 1.html,v 1.2 2004/04/21 15:06:27 felsch Exp $
+*A  @(#)$Id: 1.html,v 1.2 2004/04/21 15:06:27 felsch Exp $
 **
 *Y  Copyright 1990-1992,  Lehrstuhl D fuer Mathematik,  RWTH Aachen,  Germany
 **
@@ -13,6 +13,9 @@
 **  This file must be copied or linked to 'system.c' before executing 'make'.
 **
 *H  $Log: 1.html,v $
 *H  Revision 1.2  2004/04/21 15:06:27  felsch
 *H  Corrected links in the Forum Archive pages.   VF
 *H
 *H  Revision 1.1.1.1  2004/04/20 13:39:30  felsch
 *H  The final GAP-Forum archive until 2003.
 *H
 *H  Revision 1.4  2003/06/12 19:20:31  gap
 *H  Further update. AH
 *H
 *H  Revision 1.3  1997/08/15 11:18:41  gap
 *H  New forum setup. AH
 *H
 *H  Revision 1.2  1997/04/24 15:23:28  gap
 *H  These files were replaced by the versions in WWW. The content is basically the
 *H  same but the formatting has been much more friendly towards the HTML-Converter.
 *H  AH
 *H
 *H  Revision 1.1  1996/10/30 13:06:31  gap
 *H  added forum archive and translation files.
 *H
+*H  Revision 3.13.1.2  1992/05/02  13:02:05  martin
+*H  fixed 'syPutch' for big endian machines
+*H
 *H  Revision 3.13.1.1  1992/04/28  13:48:54  martin
 *H  changed a few things to silence GCC
 *H
@@ -1094,7 +1097,9 @@
     int                 ch;
     long                fid;
 {
-    write( fileno(syBuf[fid].fp), (char*)&ch, 1 );
+    char                ch2;
+    ch2 = ch;
+    write( fileno(syBuf[fid].fp), (char*)&ch2, 1 );
 }
diff -u src/system.usg src/system.usg
--- src/system.usg      1992/04/28 13:48:54
+++ src/system.usg      1992/05/02 13:02:25
@@ -2,7 +2,7 @@
 **
 *A  system.usg                  GAP source                   Martin Schoenert
 **
-*A  @(#)$Id: 1.html,v 1.2 2004/04/21 15:06:27 felsch Exp $
+*A  @(#)$Id: 1.html,v 1.2 2004/04/21 15:06:27 felsch Exp $
 **
 *Y  Copyright 1990-1992,  Lehrstuhl D fuer Mathematik,  RWTH Aachen,  Germany
 **
@@ -14,6 +14,9 @@
 **  This file must be copied or linked to 'system.c' before executing 'make'.
 **
 *H  $Log: 1.html,v $
 *H  Revision 1.2  2004/04/21 15:06:27  felsch
 *H  Corrected links in the Forum Archive pages.   VF
 *H
 *H  Revision 1.1.1.1  2004/04/20 13:39:30  felsch
 *H  The final GAP-Forum archive until 2003.
 *H
 *H  Revision 1.4  2003/06/12 19:20:31  gap
 *H  Further update. AH
 *H
 *H  Revision 1.3  1997/08/15 11:18:41  gap
 *H  New forum setup. AH
 *H
 *H  Revision 1.2  1997/04/24 15:23:28  gap
 *H  These files were replaced by the versions in WWW. The content is basically the
 *H  same but the formatting has been much more friendly towards the HTML-Converter.
 *H  AH
 *H
 *H  Revision 1.1  1996/10/30 13:06:31  gap
 *H  added forum archive and translation files.
 *H
+*H  Revision 3.12.1.2  1992/05/02  13:02:05  martin
+*H  fixed 'syPutch' for big endian machines
+*H
 *H  Revision 3.12.1.1  1992/04/28  13:48:54  martin
 *H  changed a few things to silence GCC
 *H
@@ -1080,7 +1083,9 @@
     int                 ch;
     long                fid;
 {
-    write( fileno(syBuf[fid].fp), (char*)&ch, 1 );
+    char                ch2;
+    ch2 = ch;
+    write( fileno(syBuf[fid].fp), (char*)&ch2, 1 );
 }

I will add this to the second upgrade, which will be available probably
at the end of next week.

As a further note. You really should be using the executable
'gapexe.next' available on 'samson.math.rwth-aachen.de', instead of the
executable you get when you make GAP with 'make bsd' (which by the way is
really the correct option for the NeXT). This executable allows GAP to
extend its working space during a computation.

Martin.

--
Martin Sch"onert, Martin.Schoenert@Math.RWTH-Aachen.DE, +49 241 804551
Lehrstuhl D f"ur Mathematik, Templergraben 64, RWTH, D 51 Aachen, Germany


> < [top]