🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Gérald Niel Sat, 13 Feb 2021 12:23
Re: SLRN build fail on macOS
#264560
Author: Gérald Niel
Date: Sat, 13 Feb 2021 12:23
38 lines
3155 bytes
[Followup-To: news.software.readers]

Le Samedi 13 février 2021 à 09:24 UTC, Julien ÉLIE écrivait sur
news.software.nntp :

> Once in src/snprintf.c, where there is:

> /* Define VA_COPY() to do the right thing for copying va_list variables.
>   * config.h may have already defined VA_COPY as va_copy or __va_copy.
>   */
> #ifndef VA_COPY
> # if (defined (__GNUC__) && defined (__PPC__) && (defined (_CALL_SYSV) 
>|| defined (__WIN32__))) || defined (__WATCOMC__)
> #  define VA_COPY(ap1, ap2)   (*(ap1) = *(ap2))
> # elif defined (VA_COPY_AS_ARRAY)
> #  define VA_COPY(ap1, ap2)   memmove ((ap1), (ap2), sizeof (va_list))
> # else /* va_list is a pointer */
> #  define VA_COPY(ap1, ap2)   ((ap1) = (ap2))
> # endif /* va_list is a pointer */
> #endif /* !VA_COPY */

> And another time in src/misc.c where that piece of code is not present.

> Well, to be straight-forward (though not optimal because with a 
> duplication), just add the same lines as above at the beginning of 
> src/misc.c.
> I believe it will solve the problem.

Thanks, it works.

I will be able to test the patch for the libcanlock v3.

@+
-- 
On ne le dira jamais assez, l'anarchisme, c'est l'ordre sans le
gouvernement ; c'est la paix sans la violence. C'est le contraire
précisément de tout ce qu'on lui reproche, soit par ignorance, soit
par mauvaise foi.                                  -+- Hem Day -+-
Re: SLRN build fail on macOS
#264694
Author: Michael Bäuerle
Date: Sun, 14 Feb 2021 17:15
33 lines
3244 bytes
Gérald Niel wrote:
> Julien ÉLIE écrivait sur news.software.nntp :
> > 
> > Once in src/snprintf.c, where there is:
> > 
> > /* Define VA_COPY() to do the right thing for copying va_list variables.
> >   * config.h may have already defined VA_COPY as va_copy or __va_copy.
> >   */
> > #ifndef VA_COPY
> > # if (defined (__GNUC__) && defined (__PPC__) && (defined (_CALL_SYSV) 
> > || defined (__WIN32__))) || defined (__WATCOMC__)
> > #  define VA_COPY(ap1, ap2)   (*(ap1) = *(ap2))
> > # elif defined (VA_COPY_AS_ARRAY)
> > #  define VA_COPY(ap1, ap2)   memmove ((ap1), (ap2), sizeof (va_list))
> > # else /* va_list is a pointer */
> > #  define VA_COPY(ap1, ap2)   ((ap1) = (ap2))
> > # endif /* va_list is a pointer */
> > #endif /* !VA_COPY */
> > 
> > And another time in src/misc.c where that piece of code is not present.
> > 
> > Well, to be straight-forward (though not optimal because with a 
> > duplication), just add the same lines as above at the beginning of 
> > src/misc.c.
> > I believe it will solve the problem.
> 
> Thanks, it works.
> 
> I will be able to test the patch for the libcanlock v3.

I have uploaded a new patchset (matching for the slrn 1.0.4-5 snapshot)
to the libcanlock homepage:
<https://micha.freeshell.org/libcanlock/index.html#patches>
Re: SLRN build fail on macOS
#264696
Author: Gérald Niel
Date: Sun, 14 Feb 2021 20:24
25 lines
2701 bytes
Le Dimanche 14 février 2021 à 17:15 UTC, Michael Bäuerle écrivait sur
news.software.readers :

>> I will be able to test the patch for the libcanlock v3.

> I have uploaded a new patchset (matching for the slrn 1.0.4-5 snapshot)
> to the libcanlock homepage:
> <https://micha.freeshell.org/libcanlock/index.html#patches>

Doesn't woks:

slrn-pre1.0.4-5/src/misc.c:376:4: error: implicit declaration of
function 'VA_COPY' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    VA_COPY(ap1, ap);
    ^
1 error generated.

But with the Julien's solution, it works.

@+
-- 
On ne le dira jamais assez, l'anarchisme, c'est l'ordre sans le
gouvernement ; c'est la paix sans la violence. C'est le contraire
précisément de tout ce qu'on lui reproche, soit par ignorance, soit
par mauvaise foi.                                  -+- Hem Day -+-
Re: SLRN build fail on macOS
#264697
Author: Michael Bäuerle
Date: Mon, 15 Feb 2021 09:23
25 lines
2818 bytes
Gérald Niel wrote:
> Michael Bäuerle écrivait sur news.software.readers :
> > Gérald Niel wrote:
> > > 
> > > I will be able to test the patch for the libcanlock v3.
> > 
> > I have uploaded a new patchset (matching for the slrn 1.0.4-5 snapshot)
> > to the libcanlock homepage:
> > <https://micha.freeshell.org/libcanlock/index.html#patches>
> 
> Doesn't woks:
> 
> slrn-pre1.0.4-5/src/misc.c:376:4: error: implicit declaration of
> function 'VA_COPY' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
>     VA_COPY(ap1, ap);
>     ^
> 1 error generated.
> 
> But with the Julien's solution, it works.

I have only refactored the existing Cancel-Lock patches so that they
apply cleanly again (to the snapshot 1.0.4-5).

The VA_COPY patch from Julien is unrelated to Cancel-Lock and should
be packaged separately (IMHO).
Re: SLRN build fail on macOS
#264698
Author: Gérald Niel
Date: Mon, 15 Feb 2021 11:56
23 lines
2652 bytes
Le Lundi 15 février 2021 à 09:23 UTC, Michael Bäuerle écrivait sur
news.software.readers :

> I have only refactored the existing Cancel-Lock patches so that they
> apply cleanly again (to the snapshot 1.0.4-5).

> The VA_COPY patch from Julien is unrelated to Cancel-Lock and should
> be packaged separately (IMHO).

OK, so it works. ;)
I'm posting with a patched slrn.

First Cancel-Lock/Key added client side with slrn/libcanlock (on macOS
Big Sur), second server side with the scripts (nnrpd_filter.pl)
adapted to use sha-256 alog.


@+
-- 
On ne le dira jamais assez, l'anarchisme, c'est l'ordre sans le
gouvernement ; c'est la paix sans la violence. C'est le contraire
précisément de tout ce qu'on lui reproche, soit par ignorance, soit
par mauvaise foi.                                  -+- Hem Day -+-
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