From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31592 invoked from network); 11 Jun 2020 09:33:56 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 11 Jun 2020 09:33:56 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id 53aa9d92 for ; Thu, 11 Jun 2020 04:33:49 -0500 (EST) Received: from coleridge.oriole.systems (coleridge.oriole.systems [89.238.76.34]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id 52f2d2ac for ; Thu, 11 Jun 2020 04:33:48 -0500 (EST) Date: Thu, 11 Jun 2020 11:33:41 +0200 From: Wynn Wolf Arbor To: discuss@mandoc.bsd.lv Subject: Compilation with GCC 10 and -fno-common fails for 1.14.5 Message-ID: <20200611093341.h76sla3ucgcmtd4w@nabokov.fritz.box> Mail-Followup-To: Wynn Wolf Arbor , discuss@mandoc.bsd.lv X-Mailinglist: mandoc-discuss Reply-To: discuss@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Hi, GCC 10 has switched from -fcommon to -fno-common as a default, breaking compilation with the current release of mandoc: compat_getline.c:5: multiple definition of `dummy'; compat_err.o:mandoc-1.14.5/compat_err.c:5: first defined here [..] When multiple unneeded (ie HAVE_* is set) compatibility files are included in a compiler invocation, the dummy declarations 'int dummy' clash with one another. Ordinarily I would have sent a patch along, but I am not sure what solution is preferred here. I can think of the following: * Simply have a unique name for each dummy declaration per file. * Make sure that unneeded compatibility files are not included in the build. This seems a decent albeit more complex and disruptive solution. I tried checking whether the development branch has this fixed already, but it seems that the CVS web interface [1] is down at the moment (500 Internal Server Error). I also sadly couldn't check out the CVS: cvs [checkout aborted]: end of file from server (consult above messages if any) There were no previous messages, and I don't know how to make CVS more verbose. I did not find anything through a cursory check of the mandoc-source mailing list archive, so I'm assuming this issue is still present. Thanks for your time! [1] https://cvsweb.bsd.lv/mandoc/ -- Wolf -- To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv