From 071ce4c960a8ccdc1b8297e05cf6464c71f58494 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 17 Aug 2020 13:59:27 +0100 Subject: [PATCH] hbytes.h: Add a missing `extern' on a data declaration With GCC-10's changes to the default symbol resolution rules, the absence leads to this error: /usr/bin/ld: hbytes.o:/<>/hbytes/hbytes.h:251: multiple definition of `cht_ulong_type'; chop.o:/<>/hbytes/hbytes.h:251: first defined here (once per object file). Closes: 957087 Signed-off-by: Ian Jackson --- hbytes/hbytes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbytes/hbytes.h b/hbytes/hbytes.h index 0ed871c..2e5d658 100644 --- a/hbytes/hbytes.h +++ b/hbytes/hbytes.h @@ -248,7 +248,7 @@ extern Tcl_ObjType cht_addrmap_type; /* from ulong.c */ -Tcl_ObjType cht_ulong_type; +extern Tcl_ObjType cht_ulong_type; /* useful macros */ -- 2.30.2