🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Blars Blarson Thu, 15 Feb 1996 00:00
nntpclient for solaris 2.3 (solution)
#4973
Author: Blars Blarson
Date: Thu, 15 Feb 1996 00:00
81 lines
2972 bytes
While there did not seem to be much interest when I asked about
getting the nntp client software running on solaris 2.3, I figured I
might as well post the solution.  The LIBS part is a modified version
of something I found on a German ftp site, without the known buggy
-libbsd.  That enabled me to get debug the other problems, which apply
to all systems.  I'll make this info avilable on my ftp site
sundry.hsc.usc.edu as well.

The secret to getting nntpclnt 1.6.1 to run on solaris 2.3 is to use
the following libraries in the following order:

LIBS  =       -lnsl -lsocket -ldl -lintl

While it will compile and link otherwise, the gethostbyname call will
abort at runtime.

There are two other stupid coding errors in postauth.c .  While the
second only causes it to fail on some systems, (works on sunos
4.1.3_U1) the first makes me wonder if this code was ever tested...

*** nntpclnt.c	Thu Aug 11 14:37:51 1994
--- ../nntpclnt.blars/nntpclnt.c	Mon Dec 25 12:48:06 1995
***************
*** 145,150 ****
--- 145,152 ----
   *      Side effects:   None.
   */
  
+ FILE *fdopen(int, const char *);
+ 
  char *
  getserverbyfile(file)
  char    *file;
*** postauth.c	Thu Aug 11 14:37:52 1994
--- ../nntpclnt.blars/postauth.c	Sat Dec 30 15:30:29 1995
***************
*** 31,37 ****
  {
  	char authtype[NNTP_STRLEN];
  	int i, rcode;
! 	if((i = sscanf(response,"%d %s", rcode, authtype)) != 2)
  		return(-1);
  #ifdef AUTHSIMPLE
  	if (!strcasecmp(authtype,"SIMPLE"))
--- 31,37 ----
  {
  	char authtype[NNTP_STRLEN];
  	int i, rcode;
! 	if((i = sscanf(response,"%d %s", &rcode, authtype)) != 2)
  		return(-1);
  #ifdef AUTHSIMPLE
  	if (!strcasecmp(authtype,"SIMPLE"))
***************
*** 155,160 ****
--- 155,161 ----
  		return(-1);
  	}
  	fclose(passfile);
+ 	return 0;
  }
  #endif
  int
*** version.c	Thu Aug 11 14:37:55 1994
--- ../nntpclnt.blars/version.c	Sat Dec 30 15:25:48 1995
***************
*** 2,5 ****
   * Provide the version number of this release.
   */
  
! char	nntp_version[] = "client 1.6.1 (1 February 1993)";
--- 2,5 ----
   * Provide the version number of this release.
   */
  
! char	nntp_version[] = "client 1.6.1.blars";
-- 
Blars Blarson 					blarson@blars.la.ca.us
				http://sundry.hsc.usc.edu/blars.html
How well do we use our freedom to choose the illusions we create? -- Timbuk3

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