Re: RCS will not compile om CentOS 8
Paul Eggert <[email protected]> Mon, 28 Sep 2020 14:33:02 -0700
| Newsgroups | gmane.comp.version-control.rcs.bugs |
|---|---|
| Organization | UCLA Computer Science Department |
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------1B27B8C1BB544A71446ED533
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
On 9/28/20 12:51 PM, Bill P wrote:
> b-anchor.c:99:1: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before '{' token
>
> {
This is due RCS 5.9.4's misuse of _Noreturn. The attached patch should work
around the bug (but is good for GCC-compatible compilers only; something fancier
is needed for other compilers).
Looks like it's time for a new RCS release, if only to fix this porting glitch.
--------------1B27B8C1BB544A71446ED533
Content-Type: text/x-patch; charset=UTF-8;
name="rcs.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="rcs.diff"
--- src/base.h~ 2020-09-28 14:21:33.916904956 -0700
+++ src/base.h 2020-09-28 14:22:29.644236409 -0700
@@ -41,7 +41,7 @@
#include <vfork.h>
#endif
-#define exiting _Noreturn
+#define exiting __attribute__ ((__noreturn__))
/* GCC attributes */
--------------1B27B8C1BB544A71446ED533--