🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #882

Re: rn4.3/rn4.4 problems reading news on RS/6000

#882
From: Wes Chalfant
Date: Mon, 11 Nov 1991 21:10
52 lines
3570 bytes
In article <21013@cgl.ucsf.EDU> joed@cca.ucsf.edu (Joe DeBattista%ITS) writes:
>    I have a little problem running rn on my RS/6000.  
>When I first run rn, it calls up all the newsgroups telling
>the user about the number of articles unread.  As an example, I'll
>say that ca.driving comes up with a message saying I have 175 unread 
>articles, and I'll say that there are really 10 articles sitting in
>/usr/spool/news/ca/driving, numbered from 5100 thru 5110. When 
>I do an rn on ca.driving,  I get the message saying
>
>  Skipping unavailable articles ...
>
>and comes to the end.  Checking the .newsrc file, ca.driving shows
>the marked articles as 1-5110. If I change the number in my .newsrc 
>to 5105, and try to access ca.driving again, I can read the 
>articles from 5105 thru 5110.  If I change the number to 5099, then
>I don't see any articles, and the .newsrc still gets set to 5110.
>Articles arriving after 5110 seem to be accessible by rn ok, as long 
>as the article number in .newsrc still corresponds to existing articles
>in ca.driving.  If .newrc says the articles read are from 1-5125, and
>the actual articles in ca.driving are 5130-5136, then I don't see
>the articles again.  

	This problem can be caused by a using a bad version of the
directory scanning subroutines (opendir, readdir, ...).  When a
missing article is detected, the routine getngmin() is called to find
the lowest numbered article for a newsgroup.  getngmin does this by
opening and reading the appropriate directory; if the directory
routines fail then getngmin returns a failure value and rn sets the
current article to the last article (per the active file).

	I had this problem when I built rn on SCO UNIX.  Rn worked
just fine except for the problem that you describe.  In the case of
SCO UNIX, the problem was that SCO provide two incompatible
implementations of opendir/readdir/etc -- one in libc.a (the "right"
one for this application), and one in libx.a (the "wrong" one).
libx.a was needed for some compatibility calls.  The workaround was to
search libc.a twice -- once before libx.a to get the right directory
routines, and once after to resolve any new references from the libx.a
routines.

	I've never built rn under AIX, so I don't know if there is a
similar pitfall.  I found three versions of readdir in AIX libraries
(libc.a, libcfg.a and libXm.a), but it is doubtful that you are
linking rn with libcfg.a or libXm.a.  Possibly the configuration
script decided that you needed rn's version of the directory routines
-- check config.h in the rn root directory and make sure USENDIR is
undefined.  If all else fails, use a debugger to watch what readdir()
is returning in getngmin().

	Wes Chalfant
	Kofax Image Products
	uunet!kofax!wes
Technical Details
Message-ID: <1991Nov11.211036.29759@kofax.uucp>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!zeus.ieee.org!europa.asd.contel.com!darwin.sura.net!gatech!ukma!wupost!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!ncar!noao!arizona!arizona.edu!cerritos.edu!orion.oac.uci.edu!unogate!unocal!genisco!lawnet!kofax!wes
References: <21013@cgl.ucsf.EDU>

Show Full Headers
Complete Article Headers
Message-ID: <1991Nov11.211036.29759@kofax.uucp>
Subject: Re: rn4.3/rn4.4 problems reading news on RS/6000
Date: Mon, 11 Nov 1991 21:10:36 +0000
From: wes@kofax.uucp (Wes Chalfant)
References: <21013@cgl.ucsf.EDU>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!zeus.ieee.org!europa.asd.contel.com!darwin.sura.net!gatech!ukma!wupost!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!ncar!noao!arizona!arizona.edu!cerritos.edu!orion.oac.uci.edu!unogate!unocal!genisco!lawnet!kofax!wes
Newsgroups: news.software.readers
Organization: Kofax Image Products
Lines: 52