[comp.unix.wizards] rpcgen

rajeevc@mipos2.intel.com (Rajeev Chandrasekhar) (11/28/88)

In article <19328@uflorida.cis.ufl.EDU> rdk@manatee.cis.ufl.edu () writes:
>Hi!
>
>I am doing a project for school involving RPCGEN, Sun's remote procedure
>call program compiler.  I am currently using version 3.5.  The latest
>version of the Documenation is Revision A of 9 May, 1988.  My problem
>is that Sun's documentation does not match the RPCGEN version that I have.
>
>Their are several problems : first, the docs I have refer to a function
>called clnt_create.  The function is supposed to set up or create
>the client handle to the server.  This function does not seem to exist
>when I compile the program.  When I substituted this function with
>clnttcp_create(), it compiled but then proceeded to crash.

That sounds very wierd ... assuming you have done the normal things
like include the rpc.h header file and theres nothing wrong with
clnt.h, i suspect it has something to do with the version.
I am running Sunos 4.0 and it has clnt_create. 

I have the same release (may 1988) documentation , and thats about
the best documentation on the subject. 

Rajeev




Rajeev Chandrasekhar
Intel Corp            >> theres someone in my head, and its not me << 
2625, Walsh Ave MS SC4-59                      (408) 765-4632
Santa Clara, CA 95051  {hplabs,oliveb}!intelca!mipos2!rajeevc                      

sxn%ingersoll@Sun.COM (Stephen X. Nahm) (11/29/88)

In article <19328@uflorida.cis.ufl.EDU> rdk@manatee.cis.ufl.edu () writes:
>Hi!
>
>I am doing a project for school involving RPCGEN, Sun's remote procedure
>call program compiler.  I am currently using version 3.5.  The latest
>version of the Documenation is Revision A of 9 May, 1988.

The May 1988 documentation is for SunOS 4.0.  The version of rpcgen in SunOS
4.0 is *much* different than that from SunOS 3.5.

Fortunately, you can get the source code for rpcgen and the RPC library from
SunOS 4.0 and use these.  These can be found in the RPCSRC distribution,
version 3.9 or 4.0.  You can get RPCSRC 3.9 now from the sun-spots archive.
Via anonymous FTP, connect to titan.rice.edu and cd to the sun-source
directory.  Among other things, you'll find 15 files that start with "rpcsrc".
Via email, send a message with the word "help" to archive-server@rice.edu and
follow the directions.

RPCSRC 3.9 was based on SunOS 4.0 Beta software.  RPCSRC 4.0 was based on SunOS
4.0 FCS (First Customer Ship) software (there are a few very minor bug fixes) .
The latter should be available at the sun-spots archive soon.

Steve Nahm                              sxn@sun.COM or sun!sxn