Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!kuhub.cc.ukans.edu!anu-news!list From: munnari!csc.anu.oz.au!gih900@UUNET.UU.NET (Geoff Huston) Newsgroups: news.software.anu-news Subject: RE: Unable to use NNTP_TCPCMU Message-ID: <8909140352.AA07559@uunet.uu.net> Date: 14 Sep 89 18:43:06 GMT Sender: ANU-NEWS Discussion Reply-To: Geoff Huston Lines: 46 X-cc: GIH900@uunet.UU.NET There have been a number of recent mail messages re problems with NNTP and the CMU/Tek implementation of TCP, including: > Can anyone tell me > 1) why I cant get anything written to the log file, > and/or 2) why it wont work. > Some answers on this, as I had the same problem locally..... a) make sure that the WKS: entry in the config file gives SYSPRV to the server process. b) (and this is the real fix!!) change NNTP_TCPCMU as follows: b1- set DEBUG to 0 (or remove the whole DEBUG conditional compiled code) - there's a bug in the first attempt to write out the current time which causes an accvio inside main(). b2- the call to getremhost is not healthy - It worked originally, and then caused problems -- after looking at the CMU definitions of the relevant arg blocks it mucks around with aligned fields within the info record. The easiest solution is to rip all that code out and replace it with the following:... /* * getremhost * * Return the remote host name */ getremhost(remhost,remuser,unit) char *remhost, *remuser; int unit; { if (remhost) strcpy(remhost,"tcp"); if (remuser) strcpy(remuser,"nntp"); } If anyone has a version of the NNTP_TCPCMU code which does make a successful call to TCP$INFO I'd be pleased to see it!! cheers, Geoff Huston gih900@csc.anu.oz.au