🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #88627

Re: SLRN build fail on macOS

#88627
From: Julien ÉLIE
Date: Sat, 13 Feb 2021 09:24
46 lines
3571 bytes
Bonjour Gérald,

>> #ifndef va_copy
>> #    ifdef __va_copy
>> #        define va_copy(d, s) __va_copy((d), (s))
>> #    else
>> #        define va_copy(d, s) memcpy(&(d), &(s), sizeof(va_list))
>> #    endif
>> #endif
> 
> As I said, it's beyond my skills or knowledge.
> What is the file to patch with this?
> Anything else to modify?

I see that VA_COPY is only used twice in srln source code.

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.

-- 
Julien ÉLIE

« – À la plage ? Mais il pleut !
   – Pas du tout ! Dans le midi de la Gaule, il pleut. Ici, c'est tout
     juste un peu humide. Vivifiant. Pas vrai, Astérix ?
   – Ce matin, ça devient de plus en plus vivifiant ! » (Astérix)
Technical Details
Message-ID: <s085rs$b9p$1@news.trigofacile.com>
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: <i6fq61Fa3dbU1@mid.individual.net> <rueg47$og$2@neodome.net> <ruenj0$dsl$1@dont-email.me> <ruf1ah$1vtp$1@neodome.net> <rufd7o$6ud$1@dont-email.me> <slrns0nh0v.hh9.gerald.niel+spam@news.gegeweb.org> <AABgDBR4nnEAAAQH.A1.flnews@Server4.micha.freeshell.org> <slrns0qcf0.3c0.gerald.niel+spam@news.gegeweb.org> <rujevf$7hs$1@pasdenom.info> <slrns0qgep.47g.gerald.niel+spam@news.gegeweb.org> <ruk3dr$2hf$1@news.trigofacile.com> <slrns0vtnm.nbf.gerald.niel+spam@news.gegeweb.org> <ruov85$a2f$1@news.trigofacile.com> <slrns21rbm.1jhv.gerald.niel+spam@home.niel.me> <AABgIRNoBmwAAAMz.A1.flnews@WStation5.stz-e.de> <slrns24ikp.9uk.gerald.niel+spam@home.niel.me> <AABgIwHhIAEAAAoy.A1.flnews@WStation7.micha.freeshell.org> <slrns2773u.njo.gerald.niel+spam@home.niel.me> <slrns27bjv.td4.gerald.niel+spam@home.niel.me> <s01ll7$sc6$1@news.trigofacile.com> <slrns2f3eb.30mj.gerald.niel+spam@home.niel.me>

Show Full Headers
Complete Article Headers
Message-ID: <s085rs$b9p$1@news.trigofacile.com>
Subject: Re: SLRN build fail on macOS
Date: Sat, 13 Feb 2021 10:24:12 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <i6fq61Fa3dbU1@mid.individual.net> <rueg47$og$2@neodome.net> <ruenj0$dsl$1@dont-email.me> <ruf1ah$1vtp$1@neodome.net> <rufd7o$6ud$1@dont-email.me> <slrns0nh0v.hh9.gerald.niel+spam@news.gegeweb.org> <AABgDBR4nnEAAAQH.A1.flnews@Server4.micha.freeshell.org> <slrns0qcf0.3c0.gerald.niel+spam@news.gegeweb.org> <rujevf$7hs$1@pasdenom.info> <slrns0qgep.47g.gerald.niel+spam@news.gegeweb.org> <ruk3dr$2hf$1@news.trigofacile.com> <slrns0vtnm.nbf.gerald.niel+spam@news.gegeweb.org> <ruov85$a2f$1@news.trigofacile.com> <slrns21rbm.1jhv.gerald.niel+spam@home.niel.me> <AABgIRNoBmwAAAMz.A1.flnews@WStation5.stz-e.de> <slrns24ikp.9uk.gerald.niel+spam@home.niel.me> <AABgIwHhIAEAAAoy.A1.flnews@WStation7.micha.freeshell.org> <slrns2773u.njo.gerald.niel+spam@home.niel.me> <slrns27bjv.td4.gerald.niel+spam@home.niel.me> <s01ll7$sc6$1@news.trigofacile.com> <slrns2f3eb.30mj.gerald.niel+spam@home.niel.me>
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
Newsgroups: news.software.nntp
Organization: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 13 Feb 2021 09:24:12 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb0800a775003c20c8729cf09989.ipv6.abo.wanadoo.fr:2a01:cb08:a7:7500:3c20:c872:9cf0:9989"; logging-data="11577"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.7.1
In-Reply-To: <slrns2f3eb.30mj.gerald.niel+spam@home.niel.me>
Content-Language: en-GB