Article View: news.software.readers
Article #264694Re: SLRN build fail on macOS
From: Michael Bäuerle
Date: Sun, 14 Feb 2021 17:15
Date: Sun, 14 Feb 2021 17:15
33 lines
3244 bytes
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>
Technical Details
Message-ID:
<AABgKVq/vqAAADxn.A1.flnews@WStation7.micha.freeshell.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-mailReferences:
<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> <s085rs$b9p$1@news.trigofacile.com> <slrns2fh6p.vv.gerald.niel+spam@home.niel.me>Show Full Headers
Complete Article Headers
Message-ID: <AABgKVq/vqAAADxn.A1.flnews@WStation7.micha.freeshell.org> Subject: Re: SLRN build fail on macOS Date: Sun, 14 Feb 2021 18:15:43 +0100 From: Michael Bäuerle <michael.baeuerle@gmx.net> 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> <s085rs$b9p$1@news.trigofacile.com> <slrns2fh6p.vv.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 Lines: 33 Content-Type: text/plain; charset=ISO-8859-1; format=fixed Content-Transfer-Encoding: 8bit Mime-Version: 1.0 Injection-Date: Sun, 14 Feb 2021 17:15:43 -0000 User-Agent: flnews/1.0pre25 (for GNU/Linux) X-Received-Bytes: 3197 Newsgroups: news.software.readers X-Trace: individual.net FisbbOZS1znubLteuTts/gty6D0MxCEaaNOh3g9BymIFhqSzKz X-Orig-Path: not-for-mail Cancel-Lock: sha1:t8NXpQWpXxDGvyU2RlLScglx+4w= sha256:ll3XvorPLM9Xgyyip5GwtWoyV0Re0Rxb7EUDx3EmhrE= sha1:DauyDT75LrdMm9l4NLw7zaVCYbY=