[Info-vax] Building latest C-Kermit under OpenVMS gives errors
Tony Nicholson
agn453 at gmail.com
Sat Oct 30 05:02:48 EDT 2021
On Friday, October 29, 2021 at 12:02:34 AM UTC+11, Steven Schweda wrote:
> The last thing I tried seemed to call its version "9.0.305 Alpha.02".
> Various changes/corrections to that kit:
>
> http://antinode.info/ftp/kermit/v9r0_305_Alpha02/
> ftp://antinode.info/kermit/v9r0_305_Alpha02/
Thanks Steven. I looked at these and indeed there are quite a few changes.
As you mention below, some of the coding is quite ugly!
> > [...] The release notes seem to suggest 9.0.305-04 should compile
> > under OpenVMS.
>
> With any luck, at least the source-file corruption in that kit might
> be fixed (again?).
>
> There's still a serious bug in (at least) CKHTTP.C:
>
> fp[n] = fopen("NLA0:","r"); /* CK wants a fp, give it one */
>
> I don't know which sub-genius had that flash of inspiration. (The
> compiler likes it, at least.) I assume that correcting it would require
> some serious changes to the file-I/O scheme.
>
> > [...] I fixed an error with Multinet include clashes with a #include
> > <time.h>).
>
> Details? Did you specify Multinet explicitly, instead of relying on
> its TCPIP emulation?
I've just let the ckvker.com DCL build file detect I'm using Multinet.
There's existing comments in ckcmai.c regarding a clash with Multinet
and the inclusion of <sys/time.h>.
This causes a compilation error with incompatible type for the 5th parameter to
the select() routine. The default expects a "struct timeval" type, whereas Multinet
uses "void". To fix this I included the Multinet version of time.h from the
multinet_root:[multinet.include.sys] directory in ckcmai.c (using #ifdef MULTINET
conditional).
Tony
More information about the Info-vax
mailing list