Thread View: news.software.readers
1 messages
1 total messages
Started by Ian Miller
Wed, 25 Jun 1997 00:00
SLRN 0.9.4.1 on VMS
Author: 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.
*****************************************************************************
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads