From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,3975617d3b5e0275,start X-Google-Attributes: gidfc89c,public X-Google-Thread: f678f,3975617d3b5e0275,start X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,3975617d3b5e0275,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-10 22:59:30 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!wupost!waikato!thebes.waikato.ac.nz!hamish From: hamish@thebes.waikato.ac.nz (Hamish Marson) Newsgroups: comp.unix.programmer,comp.unix.osf.osf1,comp.unix.osf.misc Subject: xdr_long fails in OSF/1 Date: 10 Nov 1994 23:00:05 GMT Organization: The University of Waikato Message-ID: <39u8ll$15ji@thebes.waikato.ac.nz> Reply-To: hamish@waikato.ac.nz NNTP-Posting-Host: thebes.waikato.ac.nz X-Newsreader: TIN [version 1.2 PL2] Xref: nntp.gmd.de comp.unix.programmer:20042 comp.unix.osf.osf1:6410 comp.unix.osf.misc:2044 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.===========