Article View: news.software.nntp
Article #4973nntpclient for solaris 2.3 (solution)
From: Blars Blarson
Date: Thu, 15 Feb 1996 00:00
Date: Thu, 15 Feb 1996 00:00
81 lines
2972 bytes
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
Technical Details
Message-ID:
<4ful6a$2jt@usc.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <4ful6a$2jt@usc.edu> Subject: nntpclient for solaris 2.3 (solution) Date: Thu, 15 Feb 1996 00:00:00 +0000 From: blarson@blars.la.ca.us (Blars Blarson) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 139439900 Distribution: inet Sender: blarson@blars.hsc.usc.edu Organization: dis Newsgroups: news.software.nntp,comp.unix.solaris