🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #9720

Re: Linux 2.0.8/inn1.4unoff4 bad nnrpd

#9720
From: Alex Kiernan
Date: Mon, 29 Jul 1996 00:00
42 lines
2069 bytes
Isle-Net Telecommunications (islenet@cnj.digex.net) wrote:
>I noticed that no one was connecting to my nnrp, since I upgraded to ELF,
>kernel 2.0.8, and recompiled INN.  To test, I added stdin to my
>nnrp.access file.  When I load in.nnrpd, I get a Segmentation fault, and
>the program terminates.
>
>When compiling, nnrpd gives lots and lots of warnings, but no errors.
>Mostly stuff about functions from time.h being redefined at the same
>location.

The warnings are the cause of the problem, this patch fixed it for me:

diff --unified --recursive inn1.4unoff4/nnrpd/misc.c inn1.4unoff4.local/nnrpd/misc.c
--- inn1.4unoff4/nnrpd/misc.c	Thu Mar 18 21:04:43 1993
+++ inn1.4unoff4.local/nnrpd/misc.c	Fri Jul 12 13:12:37 1996
@@ -7,7 +7,6 @@
 #if	defined(DO_NEED_TIME)
 #include <time.h>
 #endif	/* defined(DO_NEED_TIME) */
-#include <sys/time.h>
 
 
 #define ASCtoNUM(c)		((c) - '0')
diff --unified --recursive inn1.4unoff4/nnrpd/nnrpd.h inn1.4unoff4.local/nnrpd/nnrpd.h
--- inn1.4unoff4/nnrpd/nnrpd.h	Sun Jun 11 23:13:10 1995
+++ inn1.4unoff4.local/nnrpd/nnrpd.h	Fri Jul 12 13:12:36 1996
@@ -19,6 +19,7 @@
 #include <fcntl.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
+#include <sys/time.h>
 #include "paths.h"
 #include "nntp.h"
 #include "logging.h"

-- 
Alex Kiernan - alex@hisoft.co.uk
HiSoft Systems, The Old School, Greenfield, Bedford, MK45 5DE, UK
http://www.hisoft.co.uk Tel: +44 1525 718181 Fax: +44 1525 713716

Technical Details
Message-ID: <4ti1pr$da9@hisoft.demon.co.uk>
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
References: <4tdkuq$47e@news4.digex.net>

Show Full Headers
Complete Article Headers
Message-ID: <4ti1pr$da9@hisoft.demon.co.uk>
Subject: Re: Linux 2.0.8/inn1.4unoff4 bad nnrpd
Date: Mon, 29 Jul 1996 00:00:00 +0000
From: alex@hisoft.co.uk (Alex Kiernan)
References: <4tdkuq$47e@news4.digex.net>
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: 170785654
Distribution: inet
X-nntp-posting-host: hisoft.demon.co.uk
Organization: HiSoft Systems
Newsgroups: news.software.nntp