Article View: news.software.readers
Article #34589SLRN 0.9.4.1 on VMS
From: Ian Miller
Date: Wed, 25 Jun 1997 00:00
Date: Wed, 25 Jun 1997 00:00
67 lines
2880 bytes
2880 bytes
I have now built SLRN 0.9.4.1 on VMS (OpenVMS Alpha V6.2 DECC V 5.5 and
OpenVMS VAX V5.5-2 VAXC 3.2) and have a couple of changes
POST.C\postpone_file.c\line 860
add after
slrn_error ("Not implemented yet. Sorry");
return -1;
to prevent DECC complaining that this function does not return a value.
In slrnfeat.h change the first set of defines as to
#if VMS
#define SLRN_HAS_PULL_SUPPORT 0
#define SLRN_HAS_NNTP_SUPPORT 1
#define SLRN_HAS_SPOOL_SUPPORT 0
#define SLRN_HAS_INEWS_SUPPORT 0
#else
#define SLRN_HAS_PULL_SUPPORT 1
#define SLRN_HAS_NNTP_SUPPORT 1
#define SLRN_HAS_SPOOL_SUPPORT 1
#define SLRN_HAS_INEWS_SUPPORT 1
#endif
The problem was the INEWS_SUPPORT caused server.c to try and compile some
stuff using popen and pclose. These are not defined until VMS V7.0 which I
don't have. In DECC V5.5 stdio.h popen and pclose are defined like this
/*
** ISO POSX-2 Extensions
*/
#if _POSIX_C_SOURCE >= 2 || !defined(_ANSI_C_SOURCE) && __VMS_VER >= 70000000
__FILE_ptr32 popen(const char *__command, const char *__mode);
int pclose(FILE *__stream);
#endif
I had a problem with CHKSLANG.C and VAXC. This has code like
#ifndef EXIT_SUCCESS
# ifdef VMS
# define EXIT_SUCCESS 1
# else
# define EXIT_SUCCESS 0
# endif
#endif
Unfortunally VAXC does defined EXIT_SUCCESS as 0 which is not correct as
a return value from main on VMS. I know the VAXC exit() function has a hack
to change exit (0) to exit(1) so I guess that is why.
So for VAXC EXIT_SUCCESS should be redefined to 1.
VAXC defines EXIT_FAILURE to be 2 which is a higher severity error than 0.
Apart from this all is as good as ever. I like the new URL display.
Parhaps I will have a play with the postpone stuff sometime.
--
****************************************************************************
Ian Miller "The time has come",the walrus said
Teletext Dept.,Softel "to speak of many things".
Tel: +44 118 9842151 from "Through the looking glass"
Ian.Miller at softel.co.uk by Lewis Carrol.
PSImail: 243273400398::IAN
Disclaimer - I said this stuff myself. My employer had nothing to do with it.
*****************************************************************************
Technical Details
Message-ID:
<slrn5r2a7u.gq1o5d.Ian.Miller@gaspod.softel.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn5r2a7u.gq1o5d.Ian.Miller@gaspod.softel.co.uk> Subject: SLRN 0.9.4.1 on VMS Date: Wed, 25 Jun 1997 00:00:00 +0000 From: Ian.Miller@softel.xxx (Ian Miller) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 252473667 X-NNTP-Posting-Host: softel.demon.co.uk [194.222.21.226] Organization: Softel Ltd. Reply-To: Ian.Miller at softel Newsgroups: news.software.readers