This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Harry,
> The following patch is necessary for ldm 5.1.1 to correctly work on
> DEC Alpha running Tru 64 Unix. They fall into 2 categories:
>
> 1. Changes in type to handle 64 bit values needed by some system
> calls (changing int to size_t).
>
> 2. Taking const out of the declaration of pointers that do change in
> a subroutine. The DEC Compilers assume that const means constant.
> In the routines that are patched a pointer is declared const and set
> to NULL. Even though the pointer is then passed by reference to
> another routine that changes the value, the DEC Compiler will
> replace references to the pointer by NULL.
Thanks! I'm currently debugging a problem with the 64-bit version on
Solaris ("-xarch=v9") and had discovered some of these with lint, but
it's great to have a complete patch for the DEC Alpha. If I'm lucky,
this may even fix a problem I'm seeing running with huge queues (> 2
Gbytes) ...
--Russ