Newsgroups: comp.parallel.pvm
From: wjiang@thud.cs.utk.edu (weicheng jiang   )
Subject: Re: help! can't link PVM3.2.6 apps on SGI's
Organization: Computer Science Dept, University of Tennessee, Knoxville
Date: 9 Jun 1994 21:24:24 GMT
Message-ID: <2t81a8INNc6@CS.UTK.EDU>

In article <2t80b3$k1c@lll-winken.llnl.gov>, sartorio@trinity.llnl.gov (Dominic Sartorio) writes:
|> 
|> This is probably a very stupid question, since it seems that other
|> people on this newsgroup aren't having this problem. So, please
|> forgive my ignorance, for I am new to PVM.
|> 
|> I have PVM version 3.2.6 built on an SGI Indigo running IRIX 4.0.5.
|> Problem is I can't link any programs that call PVM functions.
|> 
|> My command line is:
|> % cc -g program.c -L(where PVM libs are) -lpvm3 -lgpvm3
|> 
|> And, regardless of the program (and I've tried lots), I get the
|> following linker errors:
|> 
|> Error: Undefined:
|> xdrmem_create
|> xdr_short
|> xdr_int
|> xdr_long
|> xdr_float
|> xdr_double
|> xdr_u_short
|> xdr_u_int
|> xdr_u_long
|> 

You have to add the option 
    -lsun
to link in the XDR library.


Hope this helps,

-Weicheng Jiang
University of Tennessee

