Newsgroups: comp.parallel.pvm
Path: ukc!uknet!pipex!howland.reston.ans.net!agate!ames!pioneer.arc.nasa.gov!whitney
From: whitney@pioneer.arc.nasa.gov (David Whitney GDP)
Subject: Re: 2 more simple pvm3.2.6 questions.
Message-ID: <1994Feb4.182236.3340@news.arc.nasa.gov>
Sender: usenet@news.arc.nasa.gov
Organization: NASA Ames Res. Ctr. Mtn Vw CA 94035
References: <CK39xy.2vp@newcastle.ac.uk> <dai.759418887@tina.mrco.carleton.ca> <2i8omh$4m9@silver.shef.ac.uk> <2iichv$556@belfort.daimi.aau.dk>
Date: Fri, 4 Feb 1994 18:22:36 GMT
Lines: 52

In article <2iichv$556@belfort.daimi.aau.dk>, kells@daimi.aau.dk (Kell S|nnichsen) writes:
|> Just to make speculations continuing, I can report that we have had only
|> minor problems running on a net of ~20 SUN4SOL2.  The only two "problems"
|> were that it is necessary to link with -lsocket -lnsl to make the programs
|> work (otherwise a screenful of 'unsatisfied symbols' scroll past your
|> eyes), and that SUN want money to deliver cc, so we have to do with gcc.
|> This of course gives us the problem of compiling with cc on HPPA and gcc
|> with -lsocket -lnsl on SUN4SOL2; how do you make architecture dependent
|> make files???

I assume someone mailed you your answer, but if not, I'll post.  I think this
newsgroup needs more posted answers and less private email because I'm sure a lot
of people would be interested in the answers to all these questions that get
silently answered here.
[Off soapbox]

The answer is "aimk", the most wonderfully simple yet staggeringly useful utility
I've seen in some time.  As stated in the documentation, if you have a file
called Makefile.aimk and type "aimk" instead of "make", all those nasties like
-lsocket are handled for you.  From $(PVM_ROOT)/conf/SUN4SOL2.def:

ARCHCFLAGS      =       -DSYSVBFUNC -DSYSVSTR -DNOGETDTBLSIZ -DSYSVSIGNAL -DNOWA
ARCHLIB         =       -lnsl -lsocket
HASRANLIB       =       f
PVM_ARCH        =       SUN4SOL2
CC              =       gcc

This hidden config file handles all above problems.  I added the CC, but 
everything else was standard.  See $(PVM_ROOT)/examples/Makefile.aimk for a
sample makefile.

All you need to do:

1. create a Makefile.aimk from the sample one.
2. setenv PVM_ROOT   /yourpvmdir/pvm3
3. setenv PVM_ARCH `$(PVM_ROOT)/lib/pvmgetarch`
4. aimk myfile

2,3 should be in your .cshrc anyway.


-Dave

BTW, I've had no problem running things (slaves) on Solaris 2.2 (dunno 2.3)

____________________________________________________________________________
David Whitney              | Cooper:  Wanna know why I'm whittling?
whitney@ames.arc.nasa.gov  | Truman:  OK, I'll bite.  Why are you whittling?
Graphics and Visualization | Cooper:  Because that's what you do in a
Sterling Software          |          town where a yellow light still means
NASA Ames, Mtn View, CA    |          slow down,  not speed up.
          Not an indication of Sterling or NASA's opinion

