mat@cdbhp1.UUCP (W Mat Waites) (04/03/91)
Help! I've got a problem getting rn running just right on my 9000/835. It works fine without "DBM", but I'd like cross-posted articles to be read only once, but when I turn on dbm, problems arise. In bits.c I get a bus error at the fseek in the following code. I guess the pointer (rhs.dptr) is pointing somewhere weird. Anybody already dealt with this? ... lhs.dptr = ident_buf; /* look up article by id */ lhs.dsize = strlen(lhs.dptr) + 1; rhs = fetch(lhs); /* fetch the record */ if (rhs.dptr == NULL) /* if null, nothing there */ goto wild_goose; fseek (hist_file, *((long *)rhs.dptr), 0); /* this bombs!!!! */ /* datum returned is position in hist file */ fgets (xref_buf, BUFSIZ, hist_file); ... Thanks, Mat -- W Mat Waites mat@cdbhp1.UUCP | Unlike most of you, I am not a nut. {gatech,emory}!cdbhp1!mat | -H. Simpson
mat@cdbhp1.UUCP (W Mat Waites) (04/04/91)
I answer my own question... again.... In article <29@cdbhp1.UUCP> mat@cdbhp1.UUCP (W Mat Waites) writes: > > Help! > > I've got a problem getting rn running just right on my > 9000/835. > > It works fine without "DBM", but I'd like cross-posted articles > to be read only once, but when I turn on dbm, problems arise. Well, this is where I screwed up.... The DBM code is apparently not needed. The problem was not with rn, it was with the way I set up news. I didn't define DOXREF, so inews was not providing the xref info that rn needs to avoid reading dupe articles. Apparently the "DBM" code in bits.c is not needed to perform this function. I wonder what is is supposed to do??? Mat -- W Mat Waites mat@cdbhp1.UUCP | Unlike most of you, I am not a nut. {gatech,emory}!cdbhp1!mat | -H. Simpson