From: Ian Jackson Date: Mon, 17 Aug 2020 12:59:27 +0000 (+0100) Subject: hbytes.h: Add a missing `extern' on a data declaration X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=071ce4c960a8ccdc1b8297e05cf6464c71f58494;p=chiark-tcl.git 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 --- 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 */