Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* xdr_long fails in OSF/1
@ 1994-11-10 23:00 Hamish Marson
  0 siblings, 0 replies; only message in thread
From: Hamish Marson @ 1994-11-10 23:00 UTC (permalink / raw)


I have a problem with OSF/1 and RPC programming...

A program of mine that works fine on AIX uses a struct that gets passed
via RPC calls from one machine to another. Now when the client is run 
under AIX it works fine, and the server (AIX & OSF/1) can decode the 
arguments no trouble at all...

The problems start when I try to run the client under OSF/1 (Tried 2 & 3).

If a certain long is set with

rec.log_time=0

then the code works fine...
BUT!

time(&rec.log_time)

(time_t is defined as typedef long time_t in sys/utctime.h )

causes the xdr_long (Or xdr_u_long) routines to fail and clnt_perror()
(I'm using rpcgen to generate the rpc code BTW) gives the textual error

RPC: Can't encode arguments

Why? Have I suddenly struck some limit in OSF1? (Unlikely, NFS still 
works fine, and the server code works, I assume it uses a similar (OR 
the same) routine to decode the argument)...

Can anyone say why this happens? Do I have to drop the idea of using
timestamps on my calls from OSF/1? Everything works fine under AIX...

--
======================================================================
|  Hamish Marson                                                     |
|  Systems Programmer              |                                 |
|  Computer Services               | INTERNET h.marson@waikato.ac.nz |
|  University of Waikato           | PHONE    +64 7 8562889 xt 8181  |
|  New Zealand                     | FAX      +64 7 8384066          |
===========Disclaimer :- Remember. You heard it here first.===========


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1994-11-10 23:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-11-10 23:00 xdr_long fails in OSF/1 Hamish Marson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox