pvm utility segfaults on start when compiled with gcc-4. This seems to be because of the way newer gcc treats not correct code. This happens with pvm-3.4.5. I've not checked newer pvm-3.4.6 This patches helps: --- pvm3/src/global.c.orig 2009-07-10 19:01:51.000000000 +0000 +++ pvm3/src/global.c 2009-07-10 19:01:12.000000000 +0000 @@ -205,7 +205,7 @@ /* Trace Data Identifier Structures */ -struct Pvmtevdid* pvmtevdidlist = +struct Pvmtevdid pvmtevdidlist[] = { /* TEV_DID_AN */ "AN", "PVM Architecture Name", /* TEV_DID_AC */ "AC", "PVM Architecture Code", @@ -335,7 +335,7 @@ /* Trace Event Info */ -struct Pvmtevinfo* pvmtevinfo = +struct Pvmtevinfo pvmtevinfo[] = { /* TEV_ADDHOSTS */ "addhosts", 0, { 0, 0 }, { 0, 0 }, 0, /* TEV_BARRIER */ "barrier", 0, { 0, 0 }, { 0, 0 }, 0, --- pvm3/src/global.h.orig 2009-07-10 19:01:51.000000000 +0000 +++ pvm3/src/global.h 2009-07-10 19:14:38.000000000 +0000 @@ -156,6 +156,7 @@ * */ +#include <pvmtev.h> /* UDPMAXLEN should be set to the largest UDP message length your system can handle. */ @@ -318,7 +319,7 @@ /* General Trace Globals Declarations */ +extern struct Pvmtevdid pvmtevdidlist[]; -extern struct Pvmtevinfo* pvmtevinfo; +extern struct Pvmtevinfo pvmtevinfo[]; Reproducible: Always Steps to Reproduce: 1. emerge sys-cluster/pvm 2. run "pvm" 3. segfault
*** This bug has been marked as a duplicate of bug 151316 ***