Newsgroups: comp.parallel.pvm
From: adilger@enel.ucalgary.ca (Andreas Dilger)
Subject: Re: Problem with libraries
Organization: ECE Department, U. of Calgary, Calgary, Alberta, Canada
Date: 6 Mar 1996 23:18:08 GMT
Message-ID: <4hl6fg$ork@ds2.acs.ucalgary.ca>

In article <4hjajv$lko@news.mty.itesm.mx>,
Ing. Luis Antonio Fasano B. <lfasano@foreigner> wrote:
>    The problem is that when i try to use the library (libpvm3.a) for using pvm with my application, there's an error specified, which says something like this
>
>Well...i'm trying to compile on Solaris2.4 (SUNMP and/or SUN4SOL2)
>
>Undefined                       first referenced
> symbol                             in file
>socket                              libpvm3.a(lpvmshmem.o)
>xdr_short                           libpvm3.a(lpvmpack.o)
>xdrmem_create                       libpvm3.a(lpvmpack.o)
[etc...]

The problem is that you aren't linking in the proper libraries.  You need
to use -lnsl and -lsocket for Solaris.  This should be done for you in the
SUN4SOL2.def file in $(PVM_ROOT)/conf if you are using aimk to build your
program.

Cheers, Andreas.
-- 
Andreas Dilger   University of Calgary  \"If a man ate a pound of pasta and
(403) 220-8792   Micronet Research Group \ a pound of antipasto, would they
Dept of Electrical & Computer Engineering \   cancel out, leaving him still
http://www-mddsp.enel.ucalgary.ca/People/adilger/       hungry?" -- Dogbert

