🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Brent O'Keeffe Tue, 07 May 1996 00:00
Re: Compiling INN
#7354
Author: Brent O'Keeffe
Date: Tue, 07 May 1996 00:00
35 lines
1923 bytes
In article <31892C4D.5B3C@trianet.net>,
   Daniel Salama <dsalama@trianet.net> wrote:
>I have been trying to compile INN but I keep getting errors! I am now at 
>a point where when I compile nnrp but it is halting when looking for 
>"nlist". I looked at loadave.c and it is looking for <nlist.h> but I 
>cannot find this anywhere in the entire distribution of INN. If you have 
>any suggestions or if I need to download an additional package, please 
>let me know as soon as possible.

I had the same problem during the compile.  I never did find the correct fix 
for this problem, but I did find a work-around.  The problem arises when 
loadave.c looks for nlist.h (as you said).  The trick is that this procedure 
is only called if there is a load limit set for nnrpd.  This feature allows a 
cuttoff point at which new nnrp's will be spawned, to prevent overloading the 
server.  Since we are a relatively small site, we have no need for this 
feature.  

To disable this feature, edit your config.data and change the cooresponding 
line to:

NNRP_LOADLIMIT          -1

This will allow nnrp to succesfully compile without the load limit feature.  I 
would still like to find the correct patch here, since this is only a minor 
workaround.


Brent O'Keeffe
Unix System Administrator
Computer Services, Eastern New Mexico University
Portales, New Mexico
Ph - (505) 562-2694  Fax - (505) 562-2766

Re: Compiling INN
#7388
Author: Waldi Ravens
Date: Wed, 08 May 1996 00:00
26 lines
986 bytes
Brent O'Keeffe <Brent.OKeeffe@enmu.edu> wrote:
> I would still like to find the correct patch here, since this is only a
> minor workaround.

Some systems (e.g. 4.[34]BSD) provide the getloadavg() function:

#include <stdlib.h>

int
GetLoadAverage()
{
	double avenrun;

	if (getloadavg(&avenrun, 1) != 1)
		return -1;
	return (int)(avenrun + 0.5);
}


Regards,
Waldi
-- 
Never let your schooling interfere with your education.

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