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

Bug#94249: pvm fails to run on ARM



Package: pvm
Version: 3.4.2-5
Severity: important

Hello,

the newer Versions of pvm (3.4.2-4, 3.4.2-5) finally include the ARM
architecture again. But one important part of the patch was left out, so it
will compile but never run:

14:09:34 shark:~>pvm
can't generate signature for my integer byte order
Aborted
14:21:53 shark:~>

It is a Float-Order problem I reported earlier.
The patch for this follows:

--- src/pmsg.orig.c	Tue Apr 17 15:01:06 2001
+++ src/pmsg.c	Tue Apr 17 15:01:10 2001
@@ -194,7 +194,7 @@ ibol(o, p, n)
 
 	j = ffs(n) - 1;
 /*
-	printf(".%d%d.%d%d%d", (i & 2) ? 1 : 0, (i & 1) ? 1 : 0
+	printf(".%d%d.%d%d%d", (i & 2) ? 1 : 0, (i & 1) ? 1 : 0,
 			(j & 4) ? 1 : 0, (j & 2) ? 1 : 0, (j & 1) ? 1 : 0);
 */
 	return ((i << 3) | j) << o;
@@ -272,9 +272,15 @@ fbol(o, p, n)
 					break;
 			if (j == n)
 				return i << o;
+
+			for (j = 0; j < n; j++)
+				if (p[(((j/4)*8)+3)-j] != thesigs[i].bytes[j])
+					break;
+			if (j == n)
+				return ((2 << 4) | i) << o;
 		}
 	}
-	fprintf(stderr, "can't generate signature for my integer byte order\n");
+	fprintf(stderr, "can't generate signature for my float byte order\n");
 	abort();
 	return 0;
 }


And BTW, is this meant to be:
/usr/src/debian/pvm-3.4.2/src/pvmd.c:4515: the use of 'tmpnam' is dangerous,
better use 'Mkstemp'

Regards
  Alexander

-- 
alex@shark-linux.de



Reply to: