Skip to content
Tcl Source Code Artifact [c9ad94563a]
Login

Artifact [c9ad94563a]

Artifact c9ad94563a0708aaa733b0fd051cee2324860a1a6d3dfef83c8fa7778680f218:

Ticket change [c9ad94563a] - Ticket [ef23a85ac6bab7d4|ef23a85ac6] <i>Tcl_PanicProc - Tcl9 &amp; NaviServer</i> status still Open with 3 other changes by mookie on 2024-04-22 23:54:51.
D 2024-04-22T23:54:51.830
J comment Hi\sCore,\r\n\r\nIn\sattempt\sof\susing\sNaviServer\swith\sTCL9.0x\s--\sa\smodule\sfor\sthe\sserver\sfails,\slog.c\swhen\scompiling\sagainst\sTCL9.\r\n\r\nAfter\sreaching\sout\sto\sGustaf,\sdev\sof\sNaviServer,\sa\shot-patch\shas\sbeen\screated.\r\n\r\nHis\sexplanation:\r\n\r\nThe\sissue\sis\sthat\sTcl_PanicProc\sis\sdefined\sin\sTcl9\swith\sthe\sattribute\sdeclaration\sTCL_NORETURN1,\sbut\sit\sseems,\sthis\sattribute\sdefinition\shas\sto\sbe\sprovided\sas\swell\sfor\sthe\sprototype.\sIt\swould\sbe\scertainly\sbetter,\sif\sthis\sattribute\sdefinition\swould\sbe\spart\sof\sthe\stype\sdeclaration\sof\sTcl_PanicProc\sin\sTcl9.\sNot\svery\slong\sago,\sthe\ssame\scode\sworked\sfine,\sso\ssomething\shas\schanged\sin\sTcl9.\r\n\r\nThe\spatch\sbelow\saddresses\sthis\sissue,\sbut\sthis\sis\snot\snice.\sMaybe,\sthe\stcl-core\speople\shave\sa\ssuggestion,\ssince\sthis\swill\seffect\sas\swell\sother\sapplications\srequiring\sthe\suse\sof\sTcl_SetPanicProc().\r\n\r\nExample\sCompilation\serror:\r\n\r\n\scc\s\s-O2\s-Wall\s-fPIC\s\s-pipe\s-finput-charset=UTF-8\s\s-DNDEBUG\s-DSYSTEM_MALLOC\s-std=c99\s-I../include\s-I"/usr/local/include"\s\s\s-DHAVE_CONFIG_H\s\s\s-c\s-o\slog.o\slog.c\r\n>\slog.c:262:22:\serror:\sincompatible\sfunction\spointer\stypes\spassing\s'Tcl_PanicProc'\s(aka\s'void\s(const\schar\s*,\s...)')\sto\sparameter\sof\stype\s'void\s(*)(const\schar\s*,\s...)\s__attribute__((noreturn))'\s[-Wincompatible-function-pointer-types]\r\n\s\s\s\s\sTcl_SetPanicProc(Panic);\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s^~~~~\r\n\s/usr/local/include/tcl.h:2366:37:\snote:\spassing\sargument\sto\sparameter\s'panicProc'\shere\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sTCL_NORETURN1\sTcl_PanicProc\s*panicProc);\r\n\r\nNaviServer\sIssue:\shttps://sourceforge.net/p/naviserver/mailman/message/58763387/\r\n\r\nSource\sto\spatched\slog.c:\shttps://github.com/naviserver-project/naviserver/commit/c96c143ac2c7a88b99f8c32e7d140019fe5e7629\r\n\r\nMany\sThanks,\r\nDavid\sF
J login mookie
J mimetype text/plain
K ef23a85ac6bab7d4f2cdb1eb1a03d23bb2e5b289
U mookie
Z de121538ba96b2e52075696974a1749e