🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
55 messages
55 total messages Page 2 of 2 Started by Arlen Holder Tue, 04 Aug 2020 04:18
Page 2 of 2 • 55 total messages
Re: trn 4 and UTF-8
#264325
Author: Ambrose
Date: Wed, 12 Aug 2020 17:50
20 lines
1667 bytes
In article <eli$2008121328@qaz.wtf>,
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 you. 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.

>Additionally, this is a multi-user system and I can possibly persuade
>others here to test my build.

Maybe after you’ve tested it yourself. I really do appreciate the feedback.
Thank you.


-- 
(*$insert_signature_here*)
Re: trn 4 and UTF-8
#264326
Author: 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
Re: trn 4 and UTF-8
#264327
Author: Ambrose
Date: Wed, 12 Aug 2020 21:05
33 lines
2144 bytes
In article <eli$2008121421@qaz.wtf>,
Eli the Bearded  <*@eli.users.panix.com> wrote:
>
>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.

Thank you. I guess I’ll have to learn how to edit the makefile the proper way.

I don’t remember renaming pipe_2, and nothing’s showing on git. I’ll try to
figure out what happened there. Thank you again.

(Update: I checked my copy of 4.0-test77 and it says pipe2. I’ll try to download
a fresh copy and see if I got a corrupted copy two weeks ago.)

-- 
(*$insert_signature_here*)
Re: trn 4 and UTF-8
#264329
Author: Eli the Bearded
Date: Wed, 12 Aug 2020 22:15
16 lines
1766 bytes
In news.software.readers, Ambrose <ambrose@pingviini.invalid> wrote:
> Eli the Bearded  <*@eli.users.panix.com> wrote:
>> 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.
> I don't remember renaming pipe_2, and nothing's showing on git.

In that case it's likely my source has that change and it wasn't you. I
don't recall the provenance of my test77 files.

Separately I've found an issue with AT_GREY_SPACE() and I'll have
a patch later.

Elijah
------
also at_norm_char() differs from AT_NORM_CHAR() for *s == 0
Page 2 of 2 • 55 total messages
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