Ah, well, I found workaround to get it to compile is to 
modifiy log.c on line 263 
  
From: 
 
  
  Tcl_SetPanicProc(Panic); 
  Ns_AddLogFilter(LogToFile, INT2PTR(STDERR_FILENO), NULL); 
  
To 
   
 
  Tcl_PanicProc(Panic); 
  Ns_AddLogFilter(LogToFile, INT2PTR(STDERR_FILENO), NULL); 
   
Results in completed compile, but does throw the warning: 
  
 
log.c:952:1: warning: unused function 'Panic' [-Wunused-function] 
Panic(const char *fmt, ...) 
^ 
  
So, I've probably broken something somewhere, but good enough for me. 
  
Regards, 
David F  
 
 
 
 

-----Original Message-----

From: Not <uns...@crystalforest.tf>
To: naviserver-devel <naviserver-devel@lists.sourceforge.net>
Date: Sunday, 21 April 2024 2:18 PM GMT
Subject: FreeBSD 14 - TCL 9.0 - NaviServer GIT Latest - error: incompatible 
function pointer - log.c

 
 
Good afternoon, 
I'm currently rebuilding my machine and I am having some issues with NaviServer 
(4.99-main #defd765) compiling on FreeBSD 14, with TCL 9.0b2 or TCL 9.0b1 
  
TCL 9.0b1 
=== 
 
cc  -O2 -Wall -fPIC  -pipe -finput-charset=UTF-8  -DNDEBUG -DSYSTEM_MALLOC 
-std=c99 -I../include -I"/usr/local/include"   -DHAVE_CONFIG_H   -c -o log.o 
log.c 
log.c:262:22: error: incompatible function pointer types passing 
'Tcl_PanicProc' (aka 'void (const char *, ...)') to parameter of type 'void 
(*)(const char *, ...) __attribute__((noreturn))' 
[-Wincompatible-function-pointer-types] 
    Tcl_SetPanicProc(Panic); 
                     ^~~~~ 
/usr/local/include/tcl.h:2366:37: note: passing argument to parameter 
'panicProc' here 
                            TCL_NORETURN1 Tcl_PanicProc *panicProc); 
                                                                                
     ^ 
   
TCL 9.0b2 
=== 
 
cc  -O2 -Wall -fPIC  -pipe -finput-charset=UTF-8  -DNDEBUG -DSYSTEM_MALLOC 
-std=c99 -I../include -I"/usr/local/include"   -DHAVE_CONFIG_H   -c -o log.o 
log.c 
log.c:262:22: error: incompatible function pointer types passing 
'Tcl_PanicProc' (aka 'void (const char *, ...)') to parameter of type 'void 
(*)(const char *, ...) __attribute__((noreturn))' 
[-Wincompatible-function-pointer-types] 
    Tcl_SetPanicProc(Panic); 
                     ^~~~~ 
/usr/local/include/tcl.h:2366:37: note: passing argument to parameter 
'panicProc' here 
                            TCL_NORETURN1 Tcl_PanicProc *panicProc); 
                                                                                
     ^ 
1 error generated. 
 
  
I'm using the latest GIT repo version. 
Any advice would be nice, I wish to use the ZIPFS that TCL9 brings. 
  
Regards, 
David F   
      
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to