Hey, so -- I am aware this is all bleeding edge and really unsupported however 
just throwing this in the mailing list for awareness that at the moment 
Naviserver does not compile with TCL9a3. If you would like to submit a bug 
report, I am happy to do so. 

TCL version: TCL9a3 
OS version: FreeBSD 14 
Naviserver version: 4.99.21 

g.c: In function 'NsInitLog': 
log.c:263:22: warning: passing argument 1 of 'Tcl_SetPanicProc' makes 
'__attribute__((noreturn))' qualified function pointer from unqualified 
[-Wdiscarded-qualifiers] 
263 | Tcl_SetPanicProc(Panic); 
| ^~~~~ 
In file included from ../include/nsthread.h:529, 
from ../include/ns.h:46, 
from nsd.h:38, 
from log.c:37: 
/srv/scrap/tcl9.0a3/generic/tcl.h:2198:37: note: expected 
'__attribute__((noreturn)) void (*)(const char *, ...)' but argument is of type 
'void (*)(const char *, ...)' 
2198 | TCL_NORETURN1 Tcl_PanicProc *panicProc); 
| ~~~~~~~~~~~~~~~^~~~~~~~~ 
gcc -O2 -DNDEBUG -DSYSTEM_MALLOC -Wall -fPIC -pipe -finput-charset=UTF-8 
-DSYSTEM_MALLOC -DTCL_NO_DEPRECATED -std=c99 -I../include 
-I"/srv/scrap/tcl9.0a3/generic" -DHAVE_CONFIG_H -c -o mimetypes.o mimetypes.c 
gcc -O2 -DNDEBUG -DSYSTEM_MALLOC -Wall -fPIC -pipe -finput-charset=UTF-8 
-DSYSTEM_MALLOC -DTCL_NO_DEPRECATED -std=c99 -I../include 
-I"/srv/scrap/tcl9.0a3/generic" -DHAVE_CONFIG_H -c -o modload.o modload.c 
modload.c: In function 'Ns_ModuleLoad': 
modload.c:171:9: error: unknown type name 'Tcl_PackageInitProc'; did you mean 
'Tcl_LibraryInitProc'? 
171 | Tcl_PackageInitProc *tclInitProc = NULL, *moduleVersionAddr = NULL; 
| ^~~~~~~~~~~~~~~~~~~ 
| Tcl_LibraryInitProc 
modload.c:190:29: warning: passing argument 5 of 'Tcl_FSLoadFile' from 
incompatible pointer type [-Wincompatible-pointer-types] 
190 | &tclInitProc, &moduleVersionAddr, &lh, &uPtr); 
| ^~~~~~~~~~~~ 
| | 
| int ** 
In file included from /srv/scrap/tcl9.0a3/generic/tcl.h:2254, 
from ../include/nsthread.h:529, 
from ../include/ns.h:46, 
from nsd.h:38, 
from modload.c:37: 
/srv/scrap/tcl9.0a3/generic/tclDecls.h:1153:27: note: expected 'int 
(**)(Tcl_Interp *)' but argument is of type 'int **' 
1153 | Tcl_LibraryInitProc **proc1Ptr, 
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ 
modload.c:190:43: warning: passing argument 6 of 'Tcl_FSLoadFile' from 
incompatible pointer type [-Wincompatible-pointer-types] 
190 | &tclInitProc, &moduleVersionAddr, &lh, &uPtr); 
| ^~~~~~~~~~~~~~~~~~ 
| | 
| int ** 
In file included from /srv/scrap/tcl9.0a3/generic/tcl.h:2254, 
from ../include/nsthread.h:529, 
from ../include/ns.h:46, 
from nsd.h:38, 
from modload.c:37: 
/srv/scrap/tcl9.0a3/generic/tclDecls.h:1154:27: note: expected 'int 
(**)(Tcl_Interp *)' but argument is of type 'int **' 
1154 | Tcl_LibraryInitProc **proc2Ptr, 
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ 
gmake[1]: *** [<builtin>: modload.o] Error 1 
gmake[1]: Leaving directory '/srv/scrap/naviserver-4.99.21/nsd' 
gmake: *** [Makefile:50: all] Error 1 

If I make the changes of Tcl_PackageInitProc within modload.c to 
Tcl_PackageInitProc I get the following error: 

roc.c:180:1: error: conflicting types for 'FuncptrKey' 
180 | FuncptrKey(Tcl_HashTable *UNUSED(tablePtr), void *keyPtr) 

Regards, 
D Fox 
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to