Artifacts Associated With Ticket da0005d2f8b48b03
Ticket change [7958a6d529] (rid 234621) by teclab on 2024-10-26 19:26:48:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
With the new gcc.exe (Rev1, Built by MSYS2 project) 14.2.0 compiling gets an error: _________________________________ D:/cm/tcltk86/rcompile/tcl/generic/tclIO.c:8117:63: error: passing argument 4 of 'setsockopt' from i ncompatible pointer type [-Wincompatible-pointer-types] 8117 | setsockopt(tcpData->fds.fd, IPPROTO_TCP, TCP_NODELAY, &newMode, sizeof(newMode)); | ^~~~~~~~ | | | int * In file included from D:/cm/tcltk86/rcompile/tcl/win/tclWinPort.h:51, from D:/cm/tcltk86/rcompile/tcl/generic/tclPort.h:21, from D:/cm/tcltk86/rcompile/tcl/generic/tclInt.h:36, from D:/cm/tcltk86/rcompile/tcl/generic/tclIO.c:15: D:/Programs/msys64/mingw64/include/winsock2.h:1035:88: note: expected 'const char *' but argument is of type 'int *' 1035 | WINSOCK_API_LINKAGE int WSAAPI setsockopt(SOCKET s,int level,int optname,const char *optva l,int optlen); | ~~~~~~~~~~~~^~~~~ ~ make: *** [Makefile:625: tclIO.o] Error 1 _________________________________ With the old gcc.exe (Rev6, Built by MSYS2 project) 13.2.0 this step passed but with warning: E:/gitlab-runner/builds/Uyyf6o_gt/0/product/tcltk/rcompile/tcl/generic/tclIO.c:8117:63: warning: passing argument 4 of 'setsockopt' from incompatible pointer type [-Wincompatible-pointer-types] 8117 | setsockopt(tcpData->fds.fd, IPPROTO_TCP, TCP_NODELAY, &newMode, sizeof(newMode)); | ^~~~~~~~ | | | int * In file included from E:/gitlab-runner/builds/Uyyf6o_gt/0/product/tcltk/rcompile/tcl/win/tclWinPort.h:51, from E:/gitlab-runner/builds/Uyyf6o_gt/0/product/tcltk/rcompile/tcl/generic/tclPort.h:21, from E:/gitlab-runner/builds/Uyyf6o_gt/0/product/tcltk/rcompile/tcl/generic/tclInt.h:36, from E:/gitlab-runner/builds/Uyyf6o_gt/0/product/tcltk/rcompile/tcl/generic/tclIO.c:15: C:/Programs/msys2/mingw64/include/winsock2.h:1035:88: note: expected 'const char *' but argument is of type 'int *' 1035 | WINSOCK_API_LINKAGE int WSAAPI setsockopt(SOCKET s,int level,int optname,const char *optval,int optlen); | ~~~~~~~~~~~~^~~~~~ _________________________________ Thank You! - foundin initialized to: "core-8-6-branch"
- is_private initialized to: "0"
- login: "teclab"
- priority initialized to: "5 Medium"
- private_contact initialized to: "6bac77948ef91492d41f70b5be732fdb60f91282"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "teclab"
- subsystem initialized to: "69. Other"
- title initialized to: "tclIO.c:8117:63 incompatible pointer type"
- type initialized to: "Bug"
Ticket change [d5d82215cf] (rid 234631) by jan.nijtmans on 2024-10-26 22:34:08:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2460610.44037733"
- closer changed to: "jan.nijtmans"
- icomment:
I don't see any setsockopt() call in tclIO.c, only in tclWinSock.c. Not even on line 8117. So, I wonder where your tcltk comes from.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Works For Me"
- status changed to: "Closed"