Skip to content
Tcl Source Code History Of Ticket da0005d2f8b48b03
Login

History Of Ticket da0005d2f8b48b03

Artifacts Associated With Ticket da0005d2f8b48b03

  1. Ticket change [7958a6d529] (rid 234621) by teclab on 2024-10-26 19:26:48:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-plain"
    4. 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!
      
    5. foundin initialized to: "core-8-6-branch"
    6. is_private initialized to: "0"
    7. login: "teclab"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "6bac77948ef91492d41f70b5be732fdb60f91282"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "teclab"
    14. subsystem initialized to: "69. Other"
    15. title initialized to: "tclIO.c:8117:63 incompatible pointer type"
    16. type initialized to: "Bug"
  2. Ticket change [d5d82215cf] (rid 234631) by jan.nijtmans on 2024-10-26 22:34:08:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2460610.44037733"
    3. closer changed to: "jan.nijtmans"
    4. 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.
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Works For Me"
    8. status changed to: "Closed"