<i>Tcl_PanicProc - Tcl9 & NaviServer</i> status still Open with 3 other changes
by
.
D 2024-04-23T00:51:55.655
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\nOS:\sFreeBSD\s14\r\nTCL:\s9.0b1/b2\r\nNaviServer:\s4.99\s(pre-fix)\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\nCompilation\serror:\r\n\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 c67075c0cc76384df3ca4ae4a14ab661