[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binary portability between VMS and Ultrix



>Date: Tue, 29 Mar 94 14:14 GMT
>From: address@hidden
>To: STEVE <address@hidden>
>Subject: Re: Binary portability between VMS and Ultrix

In the above message you wrote:

>       Thank you for your fast reply to my questions. On the VMS side of
>       the problem it is definitely the FTP server, which is causing it.
>       I got the system managers to open the vms disks for nfs-access for
>       me and there was then no problem of reading vms created netCDF
>       file from Ultrix.

Excellent!

>       In order to solve the problem with openVMS I looked with the
>       unix od on an octal dump of both a valid vms netcdf file and
>       an OpenVMS one. I found that the byte order was interchanged.
>       So on VMS the first word read:
>       103,104,016,001 and on OpenVMS: 001,106,104,103

Just FYI, the first four octets of a netCDF file are: 'C' 'D' 'F'
'\001'.

>       I played around with some compiler optionc concerning big and little
>       endiness on OpenVMS but failed to solve that thing until now.
>       Then I wrote a little program to flick these bytes and got a
>       valid netCDF file with good data but with all text inverted. So
>       the variable TIME got EMIT etc. Well, I'll stop that now, perhaps
>       I find time to sort that out on another day. If I have got a valid
>       version, I let you know, if you are interested.

Does `libsrc/Makefile' have the option `-DSWAP' defined?

--------
Steve Emmerson   <address@hidden>