Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 46111062a3ae44e0e8c631c86aee02d079588f8f
Ticket: 3599194fffffffffffffffffffffffffffffffff
compat/fake-rfc2553.c is broken
User & Date: afredd on 2013-01-02 20:14:11
Changes

  1. icomment:
    > >Comment By: Reinhard Max (rmax)
    > Date: 2013-01-02 03:15
    > 
    > Message:
    > Thanks for your report, I'll have a look at it.
    > Just out of curiosity: What platform building Tcl on that needs this
    > fake-rfc2553 stuff?
    > 
    
    It's a 'unix' build option driven by the configured symbol NEED_FAKE_RFC2553.
    In tclUnixPort.h there's:
    
      #ifdef NEED_FAKE_RFC2553
      # include "../compat/fake-rfc2553.h"
      #endif
    
    
    However, i'm on a 32 bit Win XP machine :-)
    
    Had to make a number of, er, hacks to make a git blead copy of Tcl
    to build which included using the fake-rfc2553 stuff.
    And yes i know this is not the Right Thing To Do. But i can at least
    now play around with the code. (8.5 used to build just fine on this
    machine without any hacks).
    
    Not sure who _really_ needs this. The only way i can see how this
    ever could have worked is if HAVE_FREEADDRINFO was also defined.
    Then the (fake_)?freeaddrinfo() would not have been compiled in.
    
    
    One more thing: the (unsigned short) cast in the call to htons()
    should really be a (uint16_t) cast; however, then you should really
    add a #include of <stdint.h> and i didn't want to further muddy
    the waters.
    
    
    
  2. login: "afredd"
  3. mimetype: "text/plain"
  4. username: "afredd"