William> Hi David, In one of your messages to the linux-alpha list
William> you mentioned that you had povray running. Were there any
William> patches necessary? If so could I get a copy of them?
Yes, it basically works out of the box. You may want to apply the
appended patch though, to avoid a division by zero. Be sure to
compile things with -O2 though (I think my patches change the Makefile
to use -g only). If you want to do performance measurements with
povray, be advised that the math stuff (libm, primarily) is pretty
much unoptimized at this point. Any contributions welcome... :)
William> You also mentioned that you had 'tk' working, could
William> you tell me which versions and if you had to make any
William> patches? Thanks, Bill V.
Yeah, works great. I used tcl7.5a2.tar.gz and tk4.1a2.tar.gz. No
patches needed (assuming you use my latest libc and stuff).
William> P.S. Your patches for the alpha, axp-diff-1.3.43-pci.gz,
William> included a change to ksyms.c to add the symbols for
William> 'memcpy' and 'memset'. The comment above suggests that gcc
William> 2.7.1 needs these, the BLADE_0.3 installation only includes
William> gcc 2.7.0, where can I find the upgrade? (and if there's a
William> FMTR, could you point me there?)
Well, I'm working on teaching 2.7.1 IEEE math. It's basically there,
but I need to finish the kernel trap handler before I can test it. I
suppose if somebody wanted gcc 2.7.1 badly, I could make some patches
available. But 2.7.0 works pretty well except for the short->double
conversion bug and there are not many changes in 2.7.1 beyond that.
--david
<--povsrc-2.2l2axp.patch--><--povsrc-2.2l2axp.patch--><--povsrc-2.2l2axp.patch-->
diff -urN pov/source/Makefile pov/source-axp/Makefile
--- pov/source/Makefile Sat Aug 20 00:07:12 1994
+++ pov/source-axp/Makefile Sun Nov 12 03:12:22 1995
@@ -17,8 +17,9 @@
OBJ = o
-CFLAGS= -pipe -m386 -c -O2 -ffast-math -funroll-loops -fomit-frame-pointer -finline-functions
-LFLAGS = -O2 -L/usr/X386/lib -s
+CFLAGS= -g -c -I/usr/X11R6/include
+#CFLAGS= -O2 -c -funroll-loops -fomit-frame-pointer -finline-functions -I/usr/X11R6/include
+LFLAGS = -O2 -L/usr/X11R6/lib
CC = gcc
BINDIR = ../bin
INSTBIN = $(HOME)/bin
@@ -46,7 +47,9 @@
povray.v: $(BINDIR)/povray.v
$(BINDIR)/povray.x: $(POVOBJS) xwindows.o
- $(CC) $(LFLAGS) $(POVOBJS) xwindows.o -o $(BINDIR)/povray.x -lm -lX11 -lXt -lXext
+ $(CC) $(LFLAGS) $(POVOBJS) xwindows.o -o $(BINDIR)/povray.x \
+ -lXaw -lXmu -lXExExt -lXext -lX11 -lXt -lSM -lICE -lXExExt -lXext \
+ -lX11 -lm -lg
povray.$(OBJ) : povray.c povproto.h frame.h vector.h config.h
diff -urN pov/source/cones.c pov/source-axp/cones.c
--- pov/source/cones.c Wed Jul 28 21:55:36 1993
+++ pov/source-axp/cones.c Sun Nov 12 03:55:56 1995
@@ -149,7 +149,7 @@
}
}
- if (Cone->closed)
+ if (Cone->closed && D.z != 0.0)
{
d = (1.0 - P.z) / D.z;
a = (P.x + d * D.x);
diff -urN pov/source/config.h pov/source-axp/config.h
--- pov/source/config.h Sat Aug 20 00:22:39 1994
+++ pov/source-axp/config.h Sun Sep 10 03:57:53 1995
@@ -122,10 +122,12 @@
/* 'scuse me folks, but linux header files don't suck */
void *getenv PARAMS((char *name));
void *malloc PARAMS((int size));
+void *calloc PARAMS((int count, int eltsize));
+void *XtMalloc PARAMS((int size));
void free PARAMS((void *));
/* I prefer targa files */
#define DEFAULT_OUTPUT_FORMAT 't'
-#define COMPILER_VER "linux386"
+#define COMPILER_VER "Linux/Alpha"
diff -urN pov/source/gif.c pov/source-axp/gif.c
--- pov/source/gif.c Wed Jul 28 21:56:36 1993
+++ pov/source-axp/gif.c Sun Nov 12 03:43:47 1995
@@ -50,6 +50,10 @@
register int x;
register unsigned char *line;
+ if (Bitmap_Line >= Current_Image->height) {
+ return 0; /* may happen with bad images like rough.gif */
+ }
+
line = Current_Image->data.map_lines[Bitmap_Line++];
for (x = 0; x < linelen; x++)