Skip to content
Tcl Source Code History Of Ticket 218270ffffffffff
Login

History Of Ticket 218270ffffffffff

Artifacts Associated With Ticket 218270ffffffffff

  1. Ticket change [d7e4dffc63] (rid 107345) by nobody on 2000-10-26 00:55:17:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 3346 Bug
      Version: 8.2.1
      SubmitDate: '1999-11-05'
      LastModified: '2000-01-11'
      Severity: SER
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      OS: IRIX
      OSVersion: IRIX64 6.5.5.
      FixedDate: '2000-10-25'
      ClosedDate: '2000-01-11'
      
      
      Name:
      Nils H. Busch
      
      Extensions:
      none
      
      ReproducibleScript:
      C compiler used SGI cc v. 7.3
          configure 
          make test
      
      ObservedBehavior:
      configure error:
          configure:2436: cc -c   conftest.c 1>&5
          cc-1565 cc: ERROR File = configure, Line = 2432
            The struct "tm" has no field "tm_gmtoff".
          
            struct tm tm; tm.tm_gmtoff;
                             ^
          
          1 error detected in the compilation of "conftest.c".
          configure: failed program was:
          #line 2429 "configure"
          #include "confdefs.h"
          #include <time.h>
          int main() {
          struct tm tm; tm.tm_gmtoff;
          ; return 0; }
          
          error in test:
          socket.test
          
          ==== socket-2.3 tcp connection with client interface specified FAILED
          ==== Contents of test case:
          
              removeFile script
              set f [open script w]
              puts $f {
                  set timer [after 2000 "set x done"]
                  set f [socket  -server accept 2830]
                  proc accept {file addr port} {
                      global x
                      puts "[gets $file] $addr"
                      close $file
                      set x done
                  }
                  puts ready
                  vwait x
                  after cancel $timer
                  close $f
              }
              close $f
              set f [open "|[list $::tcltest::tcltest script]" r]
              gets $f x
              if {[catch {socket -myaddr 127.0.0.1 127.0.0.1 2830} sock]} {
                  set x $sock
              } else {
                  puts $sock hello
                  flush $sock
                  lappend x [gets $f]
                  close $sock
              }
              close $f
              set x
          
          ---- Result was:
          ready {hello 0.0.0.0}
          ---- Result should have been:
          ready {hello 127.0.0.1}
          ==== socket-2.3 FAILED
          
          ==== socket-7.1 testing socket specific options FAILED
          ==== Contents of test case:
          
              removeFile script
              set f [open script w]
              puts $f {
                  socket -server accept 2820
                  proc accept args {
                      global x
                      set x done
                  }
                  puts ready
                  set timer [after 10000 "set x timed_out"]
                  vwait x
                  after cancel $timer
              }
              close $f
              set f [open "|[list $::tcltest::tcltest script]" r]
              gets $f
              set s [socket 127.0.0.1 2820]
              set p [fconfigure $s -peername]
              close $s
              close $f
              set l ""
              lappend l [string compare [lindex $p 0] 127.0.0.1]
              lappend l [string compare [lindex $p 2] 2820]
              lappend l [llength $p]
          
          ---- Result was:
          -1 0 3
          ---- Result should have been:
          0 0 3
          ==== socket-7.1 FAILED
          
          ==== socket-7.2 testing socket specific options FAILED
          ==== Contents of test case:
          
              removeFile script
              set f [open script w]
              puts $f {
                  socket -server accept 2821
                  proc accept args {
                      global x
                      set x done
                  }
                  puts ready
                  set timer [after 10000 "set x timed_out"]
                  vwait x
                  after cancel $timer
              }
              close $f
              set f [open "|[list $::tcltest::tcltest script]" r]
              gets $f
              set s [socket 127.0.0.1 2821]
              set p [fconfigure $s -sockname]
              close $s
              close $f
              set l ""
              lappend l [llength $p]
              lappend l [lindex $p 0]
              lappend l [expr [lindex $p 2] == 2821]
          
          ---- Result was:
          3 0.0.0.0 0
          ---- Result should have been:
          3 127.0.0.1 0
          ==== socket-7.2 FAILED
          
          ==== socket-7.5 testing socket specific options FAILED
          ==== Contents of test case:
          
              set s [socket -server accept 2829]
              proc accept {s a p} {
                  global x
                  set x [fconfigure $s -sockname]
                  close $s
              }
              set s1 [socket 127.0.0.1 2829]
              set timer [after 10000 "set x timed_out"]
              vwait x
              after cancel $timer
              close $s
              close $s1
              set l ""
              lappend l [lindex $x 0] [lindex $x 2] [llength $x]
          
          ---- Result was:
          0.0.0.0 2829 3
          ---- Result should have been:
          127.0.0.1 2829 3
          ==== socket-7.5 FAILED
      
      DesiredBehavior:
      no error in configure
          successfully completetd tests
      
      
      
      These are not to be worried about.  The configure "failure" is
      intentional, to see if that code would work at all.  It will
      cause a -D def that will make the code work as expected.
      
      The socket problems are all related to the fact that 0.0.0.0
      was returned instead of the normal loopback 127.0.0.1.  This
      is just a system config issue, where the tests are expecting
      the standard loopback (they aren't all that flexible), and
      it won't affect the operation of Tcl, including sockets. 
      -- 01/11/2000 hobbs
      
    4. foundin initialized to: "obsolete: 8.2.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "85. tclconfig"
    10. title initialized to: "test failure: can this be ignored ?"
    11. type initialized to: "Bug"
  2. Ticket change [11c5557691] (rid 95200) by welch on 2000-10-26 08:17:57:

    1. closedate changed to: "2000-10-26T01:17:57"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [065299437f] (rid 89206) by dgp on 2001-04-06 02:42:18:

    1. closedate changed to: "2001-04-05T19:42:18"
    2. closer changed to: "dgp"
    3. subsystem changed to: "27. Channel Types"