Article View: news.software.nntp
Article #42142Re: [ ANNOUNCE ] INN 2.2.2 available
From: Brad Knowles
Date: Tue, 14 Dec 1999 00:00
Date: Tue, 14 Dec 1999 00:00
110 lines
4602 bytes
4602 bytes
In article <ylyaaywis5.fsf@windlord.stanford.edu>, Russ Allbery
<rra@stanford.edu> wrote:
> -DDBZDEBUG. I think the messages actually go to stdout, too, so you'd
> probably get them in errlog instead of news.debug.
Okay, I had to apply some patches to lib/dbz.c in order to get the
bloody thing to compile with -DBZDEBUG -- see below.
Now, while this compiles, I don't see any "debug" output on stderr
when I try to do a grephistory. At least I'm not getting the "out of
domain" errors I had been previously getting. I'm going to try actually
installing the updated innd and we'll see what happens.
diff -c lib/dbz.c.orig lib/dbz.c
*** lib/dbz.c.orig Mon Dec 13 14:18:37 1999
--- lib/dbz.c Tue Dec 14 10:57:39 1999
***************
*** 1,5 ****
/*
! dbz.c V6.1.1
Copyright 1988 Jon Zeeff (zeeff@b-tech.ann-arbor.mi.us)
You can use this code in any manner, as long as you leave my name on it
--- 1,5 ----
/*
! dbz.c V6.1.2
Copyright 1988 Jon Zeeff (zeeff@b-tech.ann-arbor.mi.us)
You can use this code in any manner, as long as you leave my name on it
***************
*** 65,70 ****
--- 65,73 ----
Limited can't tag warnings once per dbzinit() by Sang-yong Suh (May,
1998)
+ Bugs in "#ifdef DBZDEBUG ... #endif" sections fixed by Brad Knowles
+ <brad@shub-internet.org> Tue Dec 14 10:57:31 MET 1999
+
*/
#include <stdio.h>
***************
*** 972,978 ****
nb2r = sizeof(buffer) - 1;
while ((offset = search(&srch)) != NOTFOUND) {
! DEBUG(("got 0x%lx\n", key_ptr));
/* fetch the key */
offset <<= conf.dropbits;
--- 975,981 ----
nb2r = sizeof(buffer) - 1;
while ((offset = search(&srch)) != NOTFOUND) {
! DEBUG(("got 0x%lx\n", *keytext)); /* WTF was "key_ptr"?!? */
/* fetch the key */
offset <<= conf.dropbits;
***************
*** 1186,1193 ****
cp->tagshift = TAGSHIFT;
cp->dropbits = 0;
cp->lenfuzzy = 0;
! DEBUG(("getconf: defaults (%ld, %c, (0x%lx/0x%lx<<%d %d))\n",
! cp->tsize, cp->casemap, cp->tagenb,
cp->tagmask, cp->tagshift, cp->dropbits));
return TRUE;
}
--- 1189,1196 ----
cp->tagshift = TAGSHIFT;
cp->dropbits = 0;
cp->lenfuzzy = 0;
! DEBUG(("getconf: defaults (%ld, (0x%lx/0x%lx<<%d %d))\n",
! cp->tsize, cp->tagenb, /* WTF was "cp->casemap"?!? */
cp->tagmask, cp->tagshift, cp->dropbits));
return TRUE;
}
***************
*** 1442,1448 ****
taboffset = sp->tabno * conf.tsize;
}
sp->place = ((sp->shorthash + sp->run) % conf.tsize) + taboffset;
! DEBUG(("search @ %ld\n", place));
/* get the tagged value */
if ((options.pag_incore != INCORE_NO) && (sp->place <
conf.tsize)) {
--- 1445,1451 ----
taboffset = sp->tabno * conf.tsize;
}
sp->place = ((sp->shorthash + sp->run) % conf.tsize) + taboffset;
! DEBUG(("search @ %ld\n", sp->place)); /* Obvious typo from
"place" */
/* get the tagged value */
if ((options.pag_incore != INCORE_NO) && (sp->place <
conf.tsize)) {
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
Are you a USENET news server administrator outside of North America or
Western Europe? Would you like a newsfeed from a site in the Freenix
Top 65? If so, please contact me via private e-mail for details.
Technical Details
Message-ID:
<brad-D46CE8.11101114121999@news.skynet.be>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<8336cs$gpj$1@isrv4.pa.vix.com> <brad-BC9EC0.18442513121999@news.skynet.be> <38554a64$0$84804@news.execpc.com> <brad-87DD68.22453413121999@news.skynet.be> <brad-6306B4.23112313121999@news.skynet.be> <ylyaaywis5.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <brad-D46CE8.11101114121999@news.skynet.be> Subject: Re: [ ANNOUNCE ] INN 2.2.2 available Date: Tue, 14 Dec 1999 00:00:00 +0000 From: Brad Knowles <brad@shub-internet.org> References: <8336cs$gpj$1@isrv4.pa.vix.com> <brad-BC9EC0.18442513121999@news.skynet.be> <38554a64$0$84804@news.execpc.com> <brad-87DD68.22453413121999@news.skynet.be> <brad-6306B4.23112313121999@news.skynet.be> <ylyaaywis5.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 560468349 Mail-Copies-To: poster Posted-And-Mailed: yes X-Complaints-To: abuse@skynet.be X-Trace: news0.skynet.be 945166214 5188 195.238.1.121 (14 Dec 1999 10:10:14 GMT) Organization: Shub-Internet X-URL: http://www.shub-internet.org/ User-Agent: MT-NewsWatcher/3.0 (PPC) NNTP-Posting-Date: 14 Dec 1999 10:10:14 GMT Newsgroups: news.software.nntp