Package: pvm
Severity: normal
Tags: patch

When building 'pvm' on amd64 with gcc-4.0,
I get the following error:

In file included from /pvm-3.4.2/src/pvmcruft.c:213:
/pvm-3.4.2/src/global.h:311: error: array type has incomplete element type
/pvm-3.4.2/src/global.h:313: error: array type has incomplete element type

With the attached patch 'pvm' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/pvm-3.4.2/src/global.h ./src/global.h
--- ../tmp-orig/pvm-3.4.2/src/global.h  1999-07-08 21:00:20.000000000 +0200
+++ ./src/global.h      2005-03-20 13:34:12.115320219 +0100
@@ -304,11 +304,3 @@
 extern struct waitc *waitlist;         /* wait list */
 
 extern struct pvmmclass *pvmmboxclasses;               /* the mbox database */
-
-
-/* General Trace Globals Declarations */
-
-extern struct Pvmtevdid pvmtevdidlist[];
-
-extern struct Pvmtevinfo pvmtevinfo[];
-
diff -urN ../tmp-orig/pvm-3.4.2/src/pmsg.c ./src/pmsg.c
--- ../tmp-orig/pvm-3.4.2/src/pmsg.c    2005-03-20 13:34:13.786997298 +0100
+++ ./src/pmsg.c        2005-03-20 13:32:16.734608430 +0100
@@ -151,6 +151,7 @@
  **           **
  ***************/
 
+extern struct Pvmtevinfo pvmtevinfo[];
 
 /***************
  **  Private  **
diff -urN ../tmp-orig/pvm-3.4.2/src/pvmdtev.c ./src/pvmdtev.c
--- ../tmp-orig/pvm-3.4.2/src/pvmdtev.c 1998-11-20 21:06:41.000000000 +0100
+++ ./src/pvmdtev.c     2005-03-20 13:33:38.448823637 +0100
@@ -73,6 +73,8 @@
 static int init_start = 0;
 static int init_end = 0;
 
+extern struct Pvmtevdid pvmtevdidlist[];
+extern struct Pvmtevinfo pvmtevinfo[];
 
 void
 tev_init_pvmd( dst, ctx, tag )
diff -urN ../tmp-orig/pvm-3.4.2/src/tev.c ./src/tev.c
--- ../tmp-orig/pvm-3.4.2/src/tev.c     1998-11-20 21:04:18.000000000 +0100
+++ ./src/tev.c 2005-03-20 13:31:47.315291348 +0100
@@ -72,7 +72,8 @@
  ***************/
 
 struct pmsg *midtobuf();
+extern struct Pvmtevinfo pvmtevinfo[];

 
 /***************
  **  Private  **


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to