🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #9620

Re: Patch to prevent nn from coring if NNTP server lookup fails

#9620
From: Cord Beermann
Date: Tue, 14 Nov 2000 00:00
61 lines
3701 bytes
In <3a0d9ded$0$238@hades.is.co.za> andrewg@no.spam.please.za.didata.com (Andrew Gaylard) writes:

>Now, having got nn to run without coring, it doesn't display correctly
>at all on Linux. This is what it looks like:

>{apg}~/nn-6.5.6-new : nn
>Connecting to NNTP server news.is.co.za ...
>Connecting to NNTP server news.is.co.za ... ok (posting is allowed)
>Release 6.5.6 #1 (NOV)
>  by Kim F. Storm, Peter Wemm, and Michael T Pins, 1999

>NNTP>>> GROUP comp.editors                                                     NNTP<<< 211 162 20878 21039 comp.editorsNNTP>>> XOVER 21027-21039               NNTP<<< 224 data follows Newsgroup: comp.editorsArticles: 12 of 98/9a Rogers News       8  Where is vim 6.0a source for win32?b Stan Brown       17  >c i-8-1 K-F6hler-  22  >d bobhanson        19  Question re editors using interruptse bobhanson        19  -f B Macmillan      27  >>>>pronounciation of Vig B Macmillan      19  >>>>>>>>How to get rid of
> the ^M character?h Maxim Ischenko   18  Vim buffer's numberingi Chris Speirs     35  >j Sven Guckes      38  >message formatting from within Vik David Rennalls   10  Strange Backspace on Solaris with Vim 5.7l-- 21:24 -- SELECT -- help:? -----All-----n Solaris

>As you can see, it's totally unusable (this is an xterm, if that makes
>any difference). I tried compiling with terminfo instead of termcap, but
>the compile failed with these errors:

>/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h:90:
>warning: `va_start' redefined
>/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/varargs.h:106:
>warning: this is the location of the previous definition
>term.c:882: macro `va_start' used with just one arg
>term.c:1017: macro `va_start' used with just one arg
>term.c:1090: macro `va_start' used with just one arg
>term.c:2020: macro `va_start' used with just one arg
>term.c:2037: macro `va_start' used with just one arg
>term.c:2137: macro `va_start' used with just one arg
>make[1]: *** [term.o] Error 1
>make[1]: Leaving directory `/home/apg/nn-6.5.6-new'
>make: *** [all] Error 2

Hmmm... for me it works fine... as i've apllied a bunch of
patches and i'm not really good in C i'd to guess which one fixes
your problem.

i think this is it:

diff -rdbN nn-6.5.6/conf/s-linux.h nn-6.5.6+RFC1522+PGP+Auth+aux.pl+Debian/conf/s-linux.h
23c26
< #define       HAVE_TERMIO_H                   /* */
---
> /* #define    HAVE_TERMIO_H                   /* */
30c33
< /* #define    USE_TERMINFO                    /* */
---
> #define       USE_TERMINFO                    /* */
40c43
< #define TERMLIB       -ltermcap
---
> #define TERMLIB       -lncurses

if not, i can share my complete Sources.

btw: has anybody tried to patch/replace the aux-script to support
Passworded-NNTP-Servers?

Cord


Technical Details
Message-ID: <8us66n$90d$1@jadzia.cord.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
References: <3a0d9ded$0$238@hades.is.co.za>

Show Full Headers
Complete Article Headers
Message-ID: <8us66n$90d$1@jadzia.cord.de>
Subject: Re: Patch to prevent nn from coring if NNTP server lookup fails
Date: Tue, 14 Nov 2000 00:00:00 +0000
From: Cord Beermann <cord@Wunder-Nett.org>
References: <3a0d9ded$0$238@hades.is.co.za>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
X-Deja-AN: 693610696
X-NNTP-Posting-Host: 195.247.165.180
X-Disclaimer: (auch elektronischen) ist nur mit der Einwilligung des Autors gestattet
X-Admin-Comment: X-NNTP-Posting... are valid if present
X-Complaints-To: usenet@ivm.net
X-Trace: 14 Nov 2000 21:10:15 CET, mjollnir.hx.abacom.net
Organization: Wunder-Nett - Community Of Alternative Communication
Newsgroups: news.software.nn