From: hamish@thebes.waikato.ac.nz (Hamish Marson)
Subject: xdr_long fails in OSF/1
Date: 10 Nov 1994 23:00:05 GMT [thread overview]
Message-ID: <39u8ll$15ji@thebes.waikato.ac.nz> (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.===========
reply other threads:[~1994-11-10 23:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox