[comp.sys.sun] NNTP/RRN help needed

abrams@bnlux0.bnl.gov (The Ancient Programmer) (07/26/89)

I previously posted this "Request for Assistance" in news.software.nntp
and received a couple of replies which said: "It worked fine for me."  So
I got new versions of nntp.1.5 and rrn.39 from Berkeley's anonymous ftp
and tried again with the same results!  Does anyone have any idea why I am
getting these results while others seem to be having no problem with the
same code?

	Trying to install NNTP.1.5 & RRN.39 on a Sun 3 under OS 4.0.1.
Problem #1: In RRN.39, Configure requires that response_codes.h be in the
		nntp/common source directory, and in the distribution it is not
		there. Getting past that -

Problem #2: In util.c, signal is defined as:
		         int (*signal())();
	    while in /usr/include/signal.h signal is defined as:
			void    (*signal())();

	   This leads to an error during make of:
|"util.c", line 36: redeclaration of signal
|"util.c", line 64: warning: illegal pointer combination
|"util.c", line 65: warning: illegal pointer combination
|*** Error code 1
|make: Fatal error: Command failed for target `util.o'

Problem #3: If I blunder past that problem by changing signal to void
		in util.c, I encounter the following:
|make: Fatal error: Don't know how to make target `getactive.o'

Has anyone else encountered these problems? If people have successfully
gotten NNTP1.5/RNN39 working on Suns running SUNOS 4.0.1, what is
different about my system? It is a vanilla SUNOS 4.0.1!

Any help gratefully accepted.  Thanks in advance.

ellis@unix.sri.com (07/28/89)

|I previously posted this "Request for Assistance" in news.software.nntp
|and received a couple of replies which said: "It worked fine for me."  So
|I got new versions of nntp.1.5 and rrn.39 from Berkeley's anonymous ftp
|and tried again with the same results!  Does anyone have any idea why I am
|getting these results while others seem to be having no problem with the
|same code?
|
|..Trying to install NNTP.1.5 & RRN.39 on a Sun 3 under OS 4.0.1...

I had exactly the same problems as you did. The cure is easy, don't use
RRN.39. Go back to Berkeley and get RN.39, install the rrn patches. Even
then, after running "Configure" I had to modify config.h as below:

/*#define       TERMIO          /* is this a termio system? */
#undef  	TERMIO          /* Will not compile correctly */

Just why [r]rn code cannot correctly compile with TERMIO is beyond me, but
frankly I don't care, since it compiles and runs just fine without it.

Oh yes, two other suggestions. 

First, you may have to enter the default server by hand in config.h at the
same time:

#define SERVER_FILE     "<filename to contain default nntp server's hostname>"

Configure did not do this correctly for me.

Second, you may also want to turn off automatic new newsgroup checking at
this time, in common.h:

/*define FINDNEWNG      /* check for new newsgroups on startup */
#undef  FINDNEWNG       /* Turn this horrible "feature" off */


This annoying "feature" harrasses users with a long list of unavoidable
requests to add the same nonexistent groups every week or so, and leaves a
first time rn user in a particularly foul mood.

-michael

leadley@uhura.cc.rochester.edu (Scott Leadley) (08/18/89)

In article <639@brazos.Rice.edu> you write:
>Oh yes, two other suggestions. 
>Second, you may also want to turn off automatic new newsgroup checking [in rn]
>at this time, in common.h:
>
>/*define FINDNEWNG      /* check for new newsgroups on startup */
>#undef  FINDNEWNG       /* Turn this horrible "feature" off */
>
>
>This annoying "feature" harrasses users with a long list of unavoidable
>requests to add the same nonexistent groups every week or so

Actually, rn will ask you about adding new groups to your .newsrc file
every time that a new group is added.  If you have newsgroups in your
active file that don't have directories yet, rn will ask whether you want
to add them EVERY time.

For some reason (looks like misconfiguration when it was installed), 2.11
B inews at our site waits until the first article is recieved to create
the directory.  Since inews and rn have different interpretations of what
a missing directory means, it inconveniences the fewest people hack inews
or to manually create the directory when the the newsgroup is created.  --


				Scott Leadley - leadley@cc.rochester.edu