Newsgroups: comp.parallel.pvm
From: thlin@top.cis.syr.edu (Tseng-Hui Lin (Frank))
Subject: PVM FORTRAN library on LINUX problem
Keywords: FORTRAN, LINUX
Organization: Syracuse University CIS Dept.
Date: 15 Dec 1994 05:47:42 GMT
Message-ID: <3col9u$5vb@newstand.syr.edu>

    I installed PVM 3.3.4 on my Linux box. After fought 
with a very small FORTRAN program for 2 days without any
result, I started checking the PVM source code. The C version
of my program worked. I guessed the problem should be in
FORTRAN interface. I checked pvm3/conf/LINUX.m4 and found
that the way PVM 3.3.4 uses to generate the FORTRAN-to-C
calling interface was different from my knowledge. 

    I remembered that the f2c on Linux passes string arguments
as a "pointer" and a "length" of string and the length argument
is appended after all other arguments like SUN instead of the 
pointer argument. I copied SUN4.m4 to LINUX.m4 and re-compiled
my test program. It worked.

    I don't know if this is a bug of PVM 3.3.4 or my installation
error of Linux. Is there any one has the same experence? I am
using Linux 1.1.54 on my AMD486DX40 16MB RAM system. I
installed PVM in $(HOME)/pvm3.


