🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #1333

Patch to nntp 1.5.11 client code for NCR Towers with WIN

#1333
From: Doug Sewell
Date: Tue, 17 Sep 1991 17:35
69 lines
3164 bytes
Since I've had a few requests for them, here are my patches to the NNTP
1.5.11 distribution client code to run with WIN/TCP on an NCR Tower.

They come with no guarantee, other than that they work for me.  I'm willing
to take a look at problems you have.

These patches allow you to build clientlib.o (which you link in with rrn,
tass, etc) and the NNTP mini-inews for posting articles.

I did NOT use the 'TLI' or 'WIN_TCP' because it's not fully supported
or implemented, and because I understand sockets.

One other caveat: nntp 1.6 is supposed to be out Real Soon Now.  I didn't
wait for it, because it didn't offer any features I need as much as I
needed working NNTP support now.  This code's been working for with TASS
on our NCR Tower for over a month.  Same will go for the server code - if
I have to, I'll patch 1.5.11 rather than wait and see if 1.6 supports
NCR/WIN, and the patches probably won't be hard to fit into 1.6.

Instructions:
(1) Apply the patches below, using Larry Wall's 'patch' program.
(2) In common/conf.h, #undef BSD_43 and #define USG.  DO NOT define
    TLI or WIN_TCP.
(2) Make whatever other changes you need to conf.h.  Note that some of
    them (say if your 'news' userid is 'news', not 'usenet') must be put
    in both conf.h and passed to make.  For client-only support, some
    answers - like dbz vs dbm - don't matter much.
(3) go to the high-level NNTP directory and enter this 'make' command:

make "CFLAGS=-O -I/usr/netinclude -DNCR" "LIBS=-lnet -lnsl -lPW" client

(depending on which Tower model you have, your library names may be
different).

You WILL get some warnings - mostly because NCR's 'cpp' doesn't like
trailing stuff on the back end of #endif statements.  There are also
a few warnings about incompatible types - I've not had any trouble with
them, and I admit this is a somewhat quick-and-dirty hack.

Apply this patch to common/clientlib.c:

33a34,36
> #ifdef NCR
> #include <sys/twg_config.h>
> #endif
47a51,53
> #ifdef NCR
> #include <sys/in.h>
> #else
48a55
> #endif

Apply this patch to inews/uname.c:

34a35,37
> #ifdef NCR
> #include <sys/twg_config.h>
> #endif

This is cross-posted to news.software.nntp and alt.sources (so it
gets into the archives).  Followups set to comp.sys.ncr, change if
if you wish.

G'luck.  Doug
--
Doug Sewell, Tech Support, Computer Center, Youngstown State University
doug@ysu.edu, doug@ysub.bitnet, uunet!ysu.edu!doug
Too bad ignorance isn't painful.
Technical Details
Message-ID: <91260.173527DOUG@ysub.ysu.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!wupost!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!ysub!ysub.ysu.edu!doug

Show Full Headers
Complete Article Headers
Message-ID: <91260.173527DOUG@ysub.ysu.edu>
Subject: Patch to nntp 1.5.11 client code for NCR Towers with WIN
Date: Tue, 17 Sep 1991 17:35:27 +0000
From: Doug Sewell <DOUG@ysub.ysu.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!wupost!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!ysub!ysub.ysu.edu!doug
Organization: Youngstown State University
Newsgroups: comp.sys.ncr,news.software.nntp,alt.sources
Followup-to: comp.sys.ncr