[comp.realtime] RPC Problem

thor@stout.ucar.edu (Rich Neitzel) (06/23/89)

Well, I think I've discoverd a problem with the rpc package in
VxWork's. I have an application that needs to pass both doubles and
unsigned chars. However, when I go to download I'm told that the xdr
routines _xdr_double and _xdr_u_char don't exisat and sure enough,
lkup finds many xdr routines but not these! Needless to say I am
miffed, since now I have to come up with some way to move the data via
other means. Of course, I'm willing to admit that I am doing something
wrong, so if you have any pointers let me know.
-------------------------------------------------------------------------------

			Richard Neitzel
			National Center For Atmospheric Research
			Box 3000
			Boulder, CO 80307-3000
			303-497-2057

			thor@thor.ucar.edu

    	Torren med sitt skjegg		Thor with the beard
    	lokkar borni under sole-vegg	calls the children to the sunny wall
    	Gjo'i med sitt shinn		Gjo with the pelts
    	jagar borni inn.		chases the children in.




-------------------------------------------------------------------------------

psm@manta.NOSC.MIL (Scot Mcintosh) (06/24/89)

In article <3510@ncar.ucar.edu> thor@thor.ucar.edu (Rich Neitzel) writes:
>I have an application that needs to pass both doubles and
>unsigned chars. However, when I go to download I'm told that the xdr
>routines _xdr_double and _xdr_u_char don't exisat and sure enough,
>lkup finds many xdr routines but not these!

Have you considered supplying your own versions of these routines?  The
Sun source is available, and probably wouldn't even have to be
modified (I'm assuming your target is a 68020 board).

nusbaum@meson.uucp (R. James Nusbaum) (06/26/89)

In article <3510@ncar.ucar.edu> thor@thor.ucar.edu (Rich Neitzel) writes:
>
>Well, I think I've discoverd a problem with the rpc package in
>VxWork's. I have an application that needs to pass both doubles and
>unsigned chars. However, when I go to download I'm told that the xdr
>routines _xdr_double and _xdr_u_char don't exisat and sure enough,
>lkup finds many xdr routines but not these! Needless to say I am


A well known problem.  I use the ones from my host's (a Sun) library.
I include them in the kernel by making the following changes to the
kernel Makefile:

change
EXTRA_MODULES = -u _ls -u _setjmp

to
EXTRA_MODULES = -u _ls -u _setjmp -u _xdr_float -u _xdr_double -u _xdr_char\
 -u _xdr_u_char -u Fadds -u Mund


xdr_float is also undefined.  Fadds and Mund are missing floating point
routines.




Jim Nusbaum
Radiation Research Laboratory
Loma Linda University Medical Center
nusbaum%proton.uucp@ucrmath.ucr.edu

hmp@cive.ri.cmu.edu (Henning Pangels) (06/29/89)

In article <365@proton.UUCP>, nusbaum@meson.uucp (R. James Nusbaum) writes:
> A well known problem.  I use the ones from my host's (a Sun) library.
> I include them in the kernel by making the following changes to the
> kernel Makefile:
> 
> change
> EXTRA_MODULES = -u _ls -u _setjmp
> 
> to
> EXTRA_MODULES = -u _ls -u _setjmp -u _xdr_float -u _xdr_double -u _xdr_char\
>  -u _xdr_u_char -u Fadds -u Mund
> 

Is this safe? After all, a Sun is not identical to a VxWorks target, so
I wouldn't be surprised if linking binary Sun system libraries to 
VxWorks had side effects. I'm sure it'll work sometimes, since the 
processors are usually '020s, but as a general practice, I'd be cautious.
Am I being paranoid here?

Henning Pangels
Field Robotics Center
Robotics Institute
Carnegie-Mellon University
ARPAnet/Internet: hmp@cive.ri.cmu.edu
(412) 268-6557