alex,

>Hi, I actually use PVM on Linux...
>
>2005/8/20, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>> cc  -DIMA_BSD386 -I../../include -I../../tracer -I../../src
>> -DSOCKADHASLEN -DNOREXEC -DRSHCOMMAND=\"/usr/bin/rsh\"
>> -DHASSTDLIB -DNEEDMENDIAN -DHASERRORVA
>> S -o pvm cons.o cmds.o job.o trc.o  -L../../tracer/BSD386
>> -L../../lib/BSD386 -lpvmtrc -lpvm3 -lrpc
>> /usr/bin/ld: cannot find -lrpc
>
>You could also try changing above to -lrpcsvc
>

i think the correct way to work around the library issue is to
edit pvm3/conf/BSD386.def variable ARCHLIB and change it from
-lrpc to -lrpcsvc (this is what they do for the freebsd .def
file). this didn't change anything and the pvm command still
spits out errors.

>> the pvm command doesn't give me a console prompt
>> and spits out some errors. it also leaves the pvmd3 daemon
>> running in the background. here is the text:
>> 
>> $ pvm
>
>Aren't you supposed to give a hostfile as the argument to "pvm"?

it's not required as an argument, and running "pvm" without
arguments should give the console prompt "pvm> ". here's what
happens in either case:

$ pwd
/home/X/pvm3/lib
$ pvm
libpvm [pid1842] /tmp/tmp.0.unBsb1842: Invalid argument
libpvm [pid1842]: pvmbeatask() can't create t-auth file
libpvm [pid1842] /tmp/tmp.1.zGeKb1842: Invalid argument
libpvm [pid1842]: pvmbeatask() can't create t-auth file
libpvm [pid1842]: Console: Can't contact local daemon
$ cat testing                                                
                                                             
                            
box2.example.org
$ pvm testing                                                
                                                             
                            
libpvm [pid1745] /tmp/tmp.0.RTTHJ1745: Invalid argument
libpvm [pid1745]: pvmbeatask() can't create t-auth file
libpvm [pid1745] /tmp/tmp.1.TfyQv1745: Invalid argument
libpvm [pid1745]: pvmbeatask() can't create t-auth file
libpvm [pid1745]: Console: Can't contact local daemon

i also confirmed that this behavior does affect the example
programs:

$ ../lib/aimk hello hello_other 
making in BSD386/ for BSD386
cc -g -I../../include -DSOCKADHASLEN -DNOREXEC
-DRSHCOMMAND=\"/usr/bin/ssh\" -DHASSTDLIB -DNEEDMENDIAN
-DHASERRORVARS -o hello ../../examples/hello.c 
-L../../lib/BSD386 -lpvm3 -lrpcsvc
../../lib/BSD386/libpvm3.a(lpvm.o)(.text+0x8a4): In function
`pvm_tc_conreq':
: warning: tmpnam() possibly used unsafely; consider using
mkstemp()
mv hello ../../bin/BSD386
cc -g -I../../include -DSOCKADHASLEN -DNOREXEC
-DRSHCOMMAND=\"/usr/bin/ssh\" -DHASSTDLIB -DNEEDMENDIAN
-DHASERRORVARS -o hello_other ../../examples/hello_other.c 
-L../../lib/BSD386 -lpvm3 -lrpcsvc
../../lib/BSD386/libpvm3.a(lpvm.o)(.text+0x8a4): In function
`pvm_tc_conreq':
: warning: tmpnam() possibly used unsafely; consider using
mkstemp()
mv hello_other ../../bin/BSD386
$ ../bin/BSD386/hello 
libpvm [pid6405] /tmp/tmp.0.dMimg6405: Invalid argument
libpvm [pid6405]: pvmbeatask() can't create t-auth file
libpvm [pid6405] /tmp/tmp.1.pGvXK6405: Invalid argument
libpvm [pid6405]: pvmbeatask() can't create t-auth file
libpvm [pid6405] /tmp/tmp.2.RoRXM6405: Invalid argument
libpvm [pid6405]: pvmbeatask() can't create t-auth file
libpvm [pid6405]: pvm_mytid(): Can't contact local daemon
i'm tfffffff2
libpvm [pid6405] /tmp/tmp.3.GCmxO6405: Invalid argument
libpvm [pid6405]: pvmbeatask() can't create t-auth file
libpvm [pid6405] /tmp/tmp.4.eNThP6405: Invalid argument
libpvm [pid6405]: pvmbeatask() can't create t-auth file
libpvm [pid6405] /tmp/tmp.5.wYBtA6405: Invalid argument
libpvm [pid6405]: pvmbeatask() can't create t-auth file
libpvm [pid6405]: pvm_spawn(): Can't contact local daemon
can't start hello_other
libpvm [pid6405] /tmp/tmp.6.bIeHd6405: Invalid argument
libpvm [pid6405]: pvmbeatask() can't create t-auth file

the source that's being problematic is isolated here:

$ grep -R -n -A 4 -B 4 "can't creat t-auth file" pvm3/*       
pvm3/misc/group-hack-337-12-    pvm_setopt(PvmDebugMask, -1);
pvm3/misc/group-hack-337-13-***************
pvm3/misc/group-hack-337-14-*** 2033,2038 ****
pvm3/misc/group-hack-337-15---- 2034,2045 ----
pvm3/misc/group-hack-337:16:           
pvmlogerror("pvmbeatask() can't creat t-auth file\n");
pvm3/misc/group-hack-337-17-            cc = PvmSysErr;
pvm3/misc/group-hack-337-18-            goto bail2;
pvm3/misc/group-hack-337-19-+   }
pvm3/misc/group-hack-337-20-+   if ((gid = pvmgetugid()) != -1) {

i've also gotten essentially the same behavior when i compile
Jacob Meuser's "sort of" PVM port (see
http://www.jakemsr.com/openbsd/ports/port-tgzs/pvm-3.4.5-port.tgz

).

if nobody can assist me in this endeavor, perhaps they could
give me some advice about "porting" applications to openbsd. i
am not unwilling to work on the code, but i would appreciate
some advice before getting involved.

cheers,
jake

>
>Regards
>Alex

Reply via email to