Thread View: news.software.nntp
2 messages
2 total messages
Started by Stephan Forseilles
Mon, 29 Dec 1997 00:00
history.dir problem
Author: Stephan Forseilles
Date: Mon, 29 Dec 1997 00:00
Date: Mon, 29 Dec 1997 00:00
36 lines
1873 bytes
1873 bytes
Configuration: innd running on DU4.0B, Linux readerboxes with nnrpd spawned from inetd. spool/articles and spool/over.view shared with nfs. Recently I also shared history because without it, nnrpd won't be able to answer ARTICLE <id> commands. Problem: nnrpd on linux seems puzzled by the history.dir created by the innd running on the DIGITAL. Here's how it looks like in the errlog: Dec 29 10:38:20 news0 nnrpd[839]: news1.skynet.be cant dbminit /usr/news/etc/history Math argument out of domain of func Here's how the history.dir looks like (the Digital Unix is happy with it): dbz 3 6112831 9 C 34359738368 34359738367 28 8 7 6 5 4 3 2 1 0 2742173 2763871 3072322 3279320 4075214 3749623 3723855 3656500 3372079 3900857 3628691 Would it have somthing to do with the fact that the Digital is 64bits and the Linux 32bits? Thanks. -- --------- This is my own personal opinion ------------ * Stephan Forseilles - UNIX System Engineer * * admin@skynet.be - Belgacom Skynet SA/NV * * Digital Unix/Linux/Solaris - FFESSM Level I * Frisbeetarianism, n.: The belief that when you die, your soul goes up the on roof and gets stuck.
Re: history.dir problem
Author: Department of Redundancy Departm...
Date: Wed, 31 Dec 1997 00:00
Date: Wed, 31 Dec 1997 00:00
44 lines
2427 bytes
2427 bytes
On Mon, 29 Dec 1997, Stephan Forseilles wrote:
> spool/articles and spool/over.view shared with nfs. Recently I also
> shared history because without it, nnrpd won't be able to answer ARTICLE
>
> Problem: nnrpd on linux seems puzzled by the history.dir created by the
> innd running on the DIGITAL.
>
> Here's how the history.dir looks like (the Digital Unix is happy with
> it):
>
> dbz 3 6112831 9 C 34359738368 34359738367 28 8 7 6 5 4 3 2 1 0
Wow, kewl. An OS with 64-bit longs, that works... Nice.
> Would it have somthing to do with the fact that the Digital is 64bits
> and the Linux 32bits?
That's it. You could do two things to fix this, either by breaking
your dbz on Digital, or fixing Linux to grok it properly.
If you want to do things the less efficient way, you need to change
the `long' in your Digital dbz and makehistory/expire/grephistory source
code to be whatever gives you a 32-bit rather than 64-bit number.
The better way to fix this, since your 35 bits of tagging (which may
not be used as efficiently as they could be) give you far more than what
you'd get with only the 3 bits provided by a 32-bit long, would be to fix
the source code with Linux to use `long long' where needed to support
Digital's 64-bit longs. I haven't done this myself with Linux (although
have had success with both FreeBSD and SGI IRIX 6.2), but you should be
able to use Joe Greco's 64-bit dbz hacks as the basis for this if you need
some guidance. Not everything in this patch set is required for a
reader-only box. Then rebuild your libinn.a and recompile nnrpd to use
it, and it should work fine.
Barry Bouwsma
will sleep through new year festivities for food
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