🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #264326

Re: trn 4 and UTF-8

#264326
From: Eli the Bearded
Date: Wed, 12 Aug 2020 18:42
55 lines
2851 bytes
In news.software.readers, Ambrose <ambrose@pingviini.invalid> wrote:
> Eli the Bearded  <*@eli.users.panix.com> wrote:
>> I've looked at your code (and commented on a few issues), but I haven't
>> tried compiling it [yet]. If you want a tester on a non-Linux system, I
>> read news on NetBSD and will happily compile and run it.
> Yes, please do. I haven't tried figuring out how to do things (makefiles,
> etc.) the proper way so some things are super kludgey right now but if it
> can't run on a non-Linux system my patch is no good.

$ make
[...]
cc -c -O -I/usr/local/include trn.c
trn.c:56:10: fatal error: patchlevel2.h: No such file or directory
 #include "patchlevel2.h"
          ^~~~~~~~~~~~~~~
compilation terminated.
*** Error code 1

Stop.
make: stopped in ~eli/trn4/acli-trn4
$ find . -name patchle\*
./patchlevel.h
$ grep patch .gitignore 
# Real generated files - for this patched version
patchlevel2.h
$ grep -l patchlevel2.h *
GNUmakefile
Pnews.SH
newsnews.SH
trn.c
$ 

Hmmm. Guess I should have started with `gmake -f GNUmakefile` 

That gets me to here:

cc -c -O -I/usr/local/include filter.c
filter.c:28:22: error: 'pipe2' redeclared as different kind of symbol
 static int pipe1[2], pipe2[2];
                      ^~~~~
In file included from config2.h:11:0,
                 from common.h:12,
                 from filter.c:7:
/usr/include/unistd.h:364:6: note: previous declaration of 'pipe2' was here
 int  pipe2(int *, int);
      ^~~~~
*** Error code 1

It looks like you renamed "pipe_2" to "pipe2" to match "pipe1", but
there was a good reason for not using "pipe2". I copied in filter.c from
the test77 version of trn4 and the compile completed.

Elijah
------
now to try running it
Technical Details
Message-ID: <eli$2008121421@qaz.wtf>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <rganif$m4h$1@neodome.net> <rh00u9$84e$1@gioia.aioe.org> <eli$2008121328@qaz.wtf> <rh1a5o$73f$1@gioia.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <eli$2008121421@qaz.wtf>
Subject: Re: trn 4 and UTF-8
Date: Wed, 12 Aug 2020 18:42:37 +0000
From: Eli the Bearded <*@eli.users.panix.com>
References: <rganif$m4h$1@neodome.net> <rh00u9$84e$1@gioia.aioe.org> <eli$2008121328@qaz.wtf> <rh1a5o$73f$1@gioia.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Nntp-Posting-Host: panix5.panix.com
Lines: 55
X-Attribution: EtB
User-Agent: Vectrex rn 2.1 (beta)
X-Trace: reader1.panix.com 1597257757 4713 166.84.1.5 (12 Aug 2020 18:42:37 GMT)
Xfrom: is a real address
Newsgroups: news.software.readers
Encrypted: double rot-13
Nntp-Posting-Date: Wed, 12 Aug 2020 18:42:37 +0000 (UTC)
X-Us-Congress: Moronic Fucks.
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-Complaints-To: abuse@panix.com
Organization: Some absurd concept
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode