Newsgroups: comp.parallel.pvm
Path: ukc!uknet!pipex!howland.reston.ans.net!EU.net!sun4nl!news.nic.surfnet.nl!utciva.civ.utwente.nl!infnews.cs.utwente.nl!kremer
From: kremer@cs.utwente.nl (Harro Kremer)
Subject: Re: How to start pvm inside a program?
Message-ID: <1994Mar18.122718@cs.utwente.nl>
Keywords: HELP!
Sender: usenet@cs.utwente.nl
Nntp-Posting-Host: utis180.cs.utwente.nl
Organization: Twente University, Dept. of Computer Science
References: <1994Mar10.173748.26682@relay.nswc.navy.mil> <CMszvy.DDp@aston.ac.uk>
Date: Fri, 18 Mar 1994 11:27:18 GMT
Lines: 27

In article <CMszvy.DDp@aston.ac.uk>, paisfic@aston.ac.uk (FIC PAIS) writes:
|> I am trying to install pvm3.2 under Sun's OS 5.2 (solaris).
|> Although all the header files seem to be correctly
|> included --- as an example, startup.c includes <sys/socket.h>,
|> where getsockname is defined:

This problem is seen often when people start working with Solaris. The cause of
this problem is the following.

The linker of Solaris only knows a few  system libraries by default. These
are the really generic libraries. Not generic libraries (e.g. the one offering
the socket interface) are not linked in by default.

For getsockname, the socket and the nsl library are needed. This is done by
adding the -lsocket and -lnsl flags to the cc command.

I hate to say it, but it is clearly in the manual page.

-- 
      __            Harro Kremer                  <kremer@cs.utwente.nl>
 ____/  \_______
|    \__/       | Univ. of Twente,   Dept. Computer Science,  TIOS-group
| ___    _   __ | P.O. Box 217,   NL-7500 AE  Enschede,  The Netherlands
|  |  | / \ (_  |                 tel: +31 53 89 3703 fax: +31 53 333815
|  |  | \_/ __) | 
|_______________|  Freedom's just another word for nothing left to lose.
                                   - Kris Kristofferson & Janis Joplin -

