Artifacts Associated With Ticket a606b0a528ebb1b1
Ticket change [0daef1ee6b] (rid 220623) by anonymous on 2023-11-26 19:05:00:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
Currently, Tcl 9 fails to build from source on big-endian architecture with the following error messages: In file included from /<<PKGBUILDDIR>>/generic/tclUtf.c:12: /<<PKGBUILDDIR>>/generic/tclInt.h:4644:43: error: expected declaration specifiers or ‘...’ before ‘(’ token 4644 | # define TclUniCharNcmp(cs,ct,n) memcmp((cs),(ct),(n)*sizeof(Tcl_UniChar)) | ^ /<<PKGBUILDDIR>>/generic/tclUtf.c:1878:1: note: in expansion of macro ‘TclUniCharNcmp’ 1878 | TclUniCharNcmp( | ^~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/generic/tclInt.h:4644:48: error: expected declaration specifiers or ‘...’ before ‘(’ token 4644 | # define TclUniCharNcmp(cs,ct,n) memcmp((cs),(ct),(n)*sizeof(Tcl_UniChar)) | ^ /<<PKGBUILDDIR>>/generic/tclUtf.c:1878:1: note: in expansion of macro ‘TclUniCharNcmp’ 1878 | TclUniCharNcmp( | ^~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/generic/tclInt.h:4644:53: error: expected declaration specifiers or ‘...’ before ‘(’ token 4644 | # define TclUniCharNcmp(cs,ct,n) memcmp((cs),(ct),(n)*sizeof(Tcl_UniChar)) | ^ /<<PKGBUILDDIR>>/generic/tclUtf.c:1878:1: note: in expansion of macro ‘TclUniCharNcmp’ 1878 | TclUniCharNcmp( | ^~~~~~~~~~~~~~ (full log can be found at [Debian buildd log site](https://buildd.debian.org/status/fetch.php?pkg=tcl9.0&arch=s390x&ver=9.0.0%7Eb1%7Erc0%2Bdfsg-1&stamp=1701016509&raw=0)) As far as I can see, the macro definition of TclUniCharNcmp from tclInt.h (line 4644) clashes with the function definition with the same name in tclUtf.c (line 1878). The bug didn't show in Tcl 8.* because they set TCL_UTF_MAX=3 while TCL_UTF_MAX=4 for Tcl 9. - foundin initialized to: "9.0"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "07bcf89c4057d2d0e00473ab972eef3274af2d93"
- resolution initialized to: "None"
- severity initialized to: "Critical"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "44. UTF-8 Strings"
- title initialized to:
Tcl 9.0 fails to build from source for big-endian architectures
- type initialized to: "Bug"
Ticket change [cdb121a7e3] (rid 220624) by chrstphrchvz on 2023-11-26 21:44:53:
- icomment:
As already done for other functions with both macro and function implementations, I predict this will be fixed by putting <tt>#undef TclUniCharNcmp</tt> before the actual function definition in tclUtf.c.
- login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [c1400fec0d] (rid 220627) by jan.nijtmans on 2023-11-26 22:29:34:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2460275.43720072"
- closer changed to: "jan.nijtmans"
- icomment:
In this case, the macro TclUniCharNcmp() isn't used anywhere, so a better solution is just to remove it completely. Thanks for the report! Should be fixed now.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"