Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Dave Gilbert <gilbertd@treblig.org>
To: axp-list@redhat.com
Subject: Patches:IBM Data explorer on Alpha
Date: Sun, 6 Jun 1999 01:07:22 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.10.9906060102470.14181-100000@tardis.home.dave> (raw)

Hi All,
  Please find below a set of patches to IBM's Data Explorer, this has
allowed me to get it to compile and give me the main windows etc.  I'm
getting some problems, especially floating point exceptions - but a
scattering of -mieee's should help with that.

  You also need Mesa (and you may have to add some -I's and -L's for paths
if you put Mesa in an odd place)

  I seem to need the latest version of lessTif - an older 0.85 I had froma
while ago wasnt upto it.

  Note: I've never used Data Explorer before - I jsut thought it would be
a nice toy on a fast machine; if there are any people who have used it I'd
be interested in them talking to me.

  Note also that I've changed the configure script as well as partially
changing the autoconf files which generate it - the latest autoconf seems
to have trouble on the dataexplorer files.

  Please try it and tell me what you think.

Dave
--- ./src/exec/libdx/memory.c.predag	Sat May 29 23:27:10 1999
+++ ./src/exec/libdx/memory.c	Sat May 29 23:27:11 1999
@@ -1044,6 +1044,19 @@
 #define LARGE(x) ((int)x>=(int)large)
 #endif
 
+#ifdef	linuxAlpha
+#define initvalues
+#define SMALL_BASE    0               /* use data segment */
+#define SMALL_GET     _dxfgetmem      /* expand by using DosSetMem */
+#define LARGE_GET     _dxfgetmem      /* expand by using DosSetMem */
+#define LARGE_INIT    2 MEG           /* doesn't matter; consistent w/ sgi */
+#define LARGE_INCR    2 MEG           /* doesn't matter; consistent w/ sgi */
+#define SIZE_ROUND    2 MEG           /* doesn't matter; consistent w/ sgi */
+#define MALLOC_NONE   1               /* provide malloc from global arena */
+#define SMALL(x) ((long)x<(long)large)
+#define LARGE(x) ((long)x>=(long)large)
+#endif
+
 #ifdef	cygwin
 #define initvalues
 #define SMALL_BASE    0               /* use data segment */
--- ./src/exec/libdx/message.c.predag	Sat May 29 23:27:58 1999
+++ ./src/exec/libdx/message.c	Sat May 29 23:27:58 1999
@@ -271,7 +271,7 @@
 DXPrintError(char *s)
 {
     extern int sys_nerr;
-#ifndef linux86
+#if !defined(linux86) && !defined(linuxAlpha)
     extern char *sys_errlist[];
 #endif
     char *msg, *errnomsg;
--- ./src/exec/dxmods/_compoper1.c.predag	Sat May 29 23:24:05 1999
+++ ./src/exec/dxmods/_compoper1.c	Sat May 29 23:24:11 1999
@@ -457,6 +457,9 @@
 #ifdef cygwin
 #   define trunc(x) ((float)((int)(x)))
 #endif
+#ifdef linuxAlpha
+#   define trunc(x) ((float)((int)(x)))
+#endif
 #ifdef linux86
 #   define trunc(x) ((float)((int)(x)))
 #endif
--- ./src/exec/dpexec/lex.c.predag	Sat May 29 23:21:38 1999
+++ ./src/exec/dpexec/lex.c	Sat May 29 23:22:12 1999
@@ -10,7 +10,7 @@
 
 
 /* this has to be before stdio.h gets included. */
-#if !defined(os2) && !defined(linux86)
+#if !defined(os2) && !defined(linux86) && !defined(linuxAlpha)
 #ifdef GETC
 #undef GETC
 #endif
--- ./src/exec/dpexec/loader.c.predag	Sat May 29 23:23:19 1999
+++ ./src/exec/dpexec/loader.c	Sat May 29 23:23:20 1999
@@ -85,7 +85,7 @@
 #endif /* hp700 */
 
 
-#if defined(sun4) || defined(solaris) || defined(sgi) || defined(alphax) || defined(aviion) || defined(linux86) || defined(cygwin)
+#if defined(sun4) || defined(solaris) || defined(sgi) || defined(alphax) || defined(aviion) || defined(linux86) || defined(linuxAlpha) || defined(cygwin)
 
 #include <dlfcn.h>
 typedef void *Handle;
@@ -102,7 +102,7 @@
 #endif
 
 
-#endif /* sun4 or solaris or sgi or alpha or aviion of linux86 */
+#endif /* sun4 or solaris or sgi or alpha or aviion of linux* */
 
 
 /* default for unsupported platforms */
@@ -574,7 +574,7 @@
 #endif  /* hp700 */
 
 
-#if defined(sun4) || defined(solaris) || defined(sgi) || defined(alphax) || defined(aviion) || defined(linux86) || defined(cygwin)
+#if defined(sun4) || defined(solaris) || defined(sgi) || defined(alphax) || defined(aviion) || defined(linux86) || defined(linuxAlpha) || defined(cygwin)
 
 
 #define __ROUTINES_DEF
--- ./src/ui++/dxuilib/Network.C.predag	Sat May 29 23:29:17 1999
+++ ./src/ui++/dxuilib/Network.C	Sat May 29 23:29:19 1999
@@ -1185,7 +1185,8 @@
 extern
 FILE* yyin;			/* parser input stream	  */
 
-#if defined(linux86)  || defined(cygwin)
+/* DAG - this test should be testing to see if we are using Bison/flex ? */
+#if defined(linux86)  || defined (linuxAlpha) || defined(cygwin)
 int yylineno;
 #else
 extern int yylineno;			/* lexer line number      */
--- ./src/ui++/dxuilib/PacketIF.C.predag	Sat May 29 23:29:44 1999
+++ ./src/ui++/dxuilib/PacketIF.C	Sat May 29 23:29:59 1999
@@ -22,7 +22,7 @@
 #include "Application.h"
 #include "ErrorDialogManager.h"
 
-#if defined(linux86) || defined(cygwin)
+#if defined(linux86) || defined(linuxAlpha) || defined(cygwin)
 extern "C" {
 #include <errno.h>
 }
@@ -1362,7 +1362,7 @@
     int fd;
     int sts;
     int oldPort;
-#if !defined(linux86) && !defined(cygwin)
+#if !defined(linux86) && !defined(linuxAlpha) && !defined(cygwin)
     extern int errno;
 #endif
     int tries;
--- ./src/ui++/startup/StartupWindow.C.predag	Sat May 29 23:30:35 1999
+++ ./src/ui++/startup/StartupWindow.C	Sat May 29 23:30:36 1999
@@ -65,7 +65,7 @@
 // On these platforms, the pipe doesn't work that way so we'll make a
 // polling loop that runs once every few seconds and checks the child pid.
 //
-#if defined(ibm6000) || defined(hp700) || defined(alphax) || defined(sun4) || defined(linux86) || defined(cygwin)
+#if defined(ibm6000) || defined(hp700) || defined(alphax) || defined(sun4) || defined(linux86) || defined(linuxAlpha) || defined(cygwin)
 #define USE_WAIT3 1
 #endif
 
--- ./include/dx/arch.h.predag	Sat Jun  5 20:00:19 1999
+++ ./include/dx/arch.h	Sat Jun  5 20:00:49 1999
@@ -107,7 +107,7 @@
 /* program to run for remote shell */
 #define RSH "/usr/bin/rsh"
 
-#ifdef linux86
+#if defined(linux86) || defined(linuxAlpha)
 
 #undef F_CHAR_READY
 #define F_CHAR_READY(fp) ((fp)->_IO_read_ptr < (fp)->_IO_read_end)
--- ./bin/dx.workerscript.predag	Sat Jun  5 21:15:29 1999
+++ ./bin/dx.workerscript	Sat Jun  5 21:46:02 1999
@@ -110,8 +110,21 @@
     breaksw
 
   case Linux:
-    set exarch=linux86
-    set uiarch=linux86
+    switch ( $thismach )
+      case *86*:
+        set exarch=linux86
+        set uiarch=linux86
+        breaksw
+
+      case alpha:
+        set exarch=linuxAlpha
+        set uiarch=linuxAlpha
+        breaksw
+
+      default: 
+        echo Unprepared for Linux varient
+        exit 1
+    endsw
 
     set remote=/usr/bin/rsh
 
@@ -1438,6 +1451,7 @@
   case solaris:
   case aviion:
   case alphax:
+  case linuxAlpha:
   case linux86:
     breaksw
   
--- ./acinclude.m4.predag	Sat May 29 12:12:53 1999
+++ ./acinclude.m4	Sat May 29 23:39:57 1999
@@ -278,23 +278,28 @@
 	if test ! -z "$isit" ; then
 	    ARCH=linux86 
 	else
-	    ARCH=unknown 
+      if test $unameM = "alpha" ; then
+        ARCH=linuxAlpha
+      else
+        ARCH=unknown 
+      fi
 	fi
-    fi
-    if test $unameS = "IRIX" || test $unameS = "IRIX64" ; then
-    	ARCH=sgi
-    fi
-    if test $unameS = "AIX" ; then
-    	ARCH=ibm6000
-    fi
-    if test $unameM = "alpha" ; then
-        ARCH=alphax
-    fi
-    if test $unameS = "HP_UX" ; then
-        ARCH=hp700
-    fi
-    if test $unameS = "SunOS" ; then
-        ARCH=solaris
+    else
+      if test $unameS = "IRIX" || test $unameS = "IRIX64" ; then
+          ARCH=sgi
+      fi
+      if test $unameS = "AIX" ; then
+          ARCH=ibm6000
+      fi
+      if test $unameM = "alpha" ; then
+          ARCH=alphax
+      fi
+      if test $unameS = "HP_UX" ; then
+          ARCH=hp700
+      fi
+      if test $unameS = "SunOS" ; then
+          ARCH=solaris
+      fi
     fi
     AC_MSG_RESULT($ARCH)
     AC_SUBST(ARCH)
--- ./configure.predag	Sat May 29 12:16:54 1999
+++ ./configure	Sat Jun  5 17:33:39 1999
@@ -865,23 +865,28 @@
 	if test ! -z "$isit" ; then
 	    ARCH=linux86 
 	else
-	    ARCH=unknown 
+      if test $unameM = "alpha" ; then
+        ARCH=linuxAlpha
+      else
+        ARCH=unknown 
+      fi
 	fi
-    fi
-    if test $unameS = "IRIX" || test $unameS = "IRIX64" ; then
-    	ARCH=sgi
-    fi
-    if test $unameS = "AIX" ; then
-    	ARCH=ibm6000
-    fi
-    if test $unameM = "alpha" ; then
-        ARCH=alphax
-    fi
-    if test $unameS = "HP_UX" ; then
-        ARCH=hp700
-    fi
-    if test $unameS = "SunOS" ; then
-        ARCH=solaris
+    else
+      if test $unameS = "IRIX" || test $unameS = "IRIX64" ; then
+          ARCH=sgi
+      fi
+      if test $unameS = "AIX" ; then
+          ARCH=ibm6000
+      fi
+      if test $unameM = "alpha" ; then
+          ARCH=alphax
+      fi
+      if test $unameS = "HP_UX" ; then
+          ARCH=hp700
+      fi
+      if test $unameS = "SunOS" ; then
+          ARCH=solaris
+      fi
     fi
     echo "$ac_t""$ARCH" 1>&6
     
 --------------------------------------------------------------------   
/ Dr. David Alan Gilbert      | Running Linux on           |  Happy  \ 
\   gro.gilbert @ treblig.org |  Alpha, x86, ARM and SPARC |  In Hex /
 ____________________________|___ http://www.treblig.demon.co.uk __/


                 reply	other threads:[~1999-06-06  0:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox