Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 24f00ba79cd0cb54a06531bca0fa7c91cccde114
Ticket: 3328635fffffffffffffffffffffffffffffffff
Virtual Time broken on threaded unix
User & Date: aku on 2014-10-09 18:52:43
Changes

  1. icomment:
    The updated patch is now committed to branch "tkt3328635-posix-monotonic-clock".
    
    Pushed revision [265e84eb5e].
    I am asking for a general review by Joe and Alexandre.
    
    This code does not work yet! (on linux even).
    
    It compiles on my build system (RedHat FC4 Stentz), yet fails to link.
    It claims that clock_gettime() is missing (*).
    
    Checking with temporarily added #error lines showed that the code believes that both _POSIX_TIMERS and _POSIX_MONOTONIC_CLOCK are defined. From what I read in the discussion here and referenced web site and manpage that should mean that clock_gettime() is available. And it is ipmlied to be in the (g)libc.
    
    The glibc here is 2.3(.6).
    Should some other library be linked too ?
    
    Or could be a macro and I need a header which contains the proper mapping to the actual function name ?
    
    Further note that I tried to extend the patch to fall back to CLOCK_REALTIME where possible. Please review this part too.
    
    (Ad *): .../build/tcl-8.5/libtcl8.5.so: undefined reference to `clock_gettime'
    
  2. login: "aku"
  3. mimetype: "text/x-fossil-wiki"