🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Andrew R. Tefft Tue, 07 Oct 1997 00:00
inn renumber is wrong (includes the solution)
#22182
Author: Andrew R. Tefft
Date: Tue, 07 Oct 1997 00:00
40 lines
2429 bytes
(note: when I started writing this, I didn't have an answer.
Now I do. I'm posting it anyway in hopes that it helps someone out).

I have inn 1.5.1 on a solaris 2.4 machine. I have noticed
that ctlinnd renumber is setting the wrong low-water mark.
In many groups, it is set to the correct value but with the first
two digits chopped off. e.g. if it should be 41361 it is set to 361.
In others, there seems to be no correspondence with the actual articles
present (many are set to 1; comp.os.linux.misc for example is set to
855 where it should be 206584). 

If it weren't for those wildly inconsistent differences, it would
remind me of my first compilation of xv under Solaris. It expected
some different readdir() characteristics, I guess, and would chop
off the first character or two of filenames shown in the visual
schnauzer. And if I remember, the fix for this was to manage to not
link xv with -lucb. 

Looking at innd, it is indeed linked with -lucb. And it has only
been linked with -lucb since I turned on perl filtering, since
libperl needed some functions from libucb. This would explain why I
only noticed it recently, if the problem is indeed in libucb.

To try to fix this, I edited the Makefile in the innd directory, adding
-lc before -lucb. This ensures that libc's version of readdir() is
used instead of libucb's. All works fine now. woo hoo! I still can't
explain the wildly inconsistent ones but since I don't really understand
what's different between the readdir() functions (could be a bug, but
nothing shows up in sunsolve), I'm not going to try.

Ever notice how just collecting good info on your problem to ask
someone else sometimes helps to you solve the problem yourself?

-- 

Include the keyword "Tefft" or "maibock" somewhere in your message
to ensure it gets accepted by my spam filter. 

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