Skip to content
Tcl Source Code History Of Ticket 3181906fffffffff
Login

History Of Ticket 3181906fffffffff

Artifacts Associated With Ticket 3181906fffffffff

  1. Ticket change [2cec450057] (rid 118994) by mthuurne on 2011-02-15 08:27:18:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Platform: Mac OS X, version 10.4/10.5/10.6
      The problem occurs on 10.6 as well, but is harder to reproduce there, see below.
      
      When configured with --disable-load, the tclLoadDyld.c source is not built. However, tclIOUtil.c will use TclpLoadMemoryGetBuffer() and TclpLoadMemory() (both implemented in tclLoadDyld.c) if TCL_LOAD_FROM_MEMORY is #defined. This leads to missing symbols at link time:
      
      gcc-4.2 -Os -arch i386 -D__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=1050 -pipe   -isysroot /Developer/SDKs/MacOSX10.5.sdk   -arch i386 -D__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=1050 -isysroot /Developer/SDKs/MacOSX10.5.sdk  tclAppInit.o -L/Users/mth/prog/openmsx/tclbug-build -ltcl8.5 -framework CoreFoundation  -sectcreate __TEXT __info_plist Tclsh-Info.plist \
       -o tclsh
      Undefined symbols:
        "_TclpLoadMemoryGetBuffer", referenced from:
            _TclLoadFile in libtcl8.5.a(tclIOUtil.o)
        "_TclpLoadMemory", referenced from:
            _TclLoadFile in libtcl8.5.a(tclIOUtil.o)
      ld: symbol(s) not found
      collect2: ld returned 1 exit status
      make: *** [tclsh] Error 1
      
      I worked around the issue by modifying conifgure like this: (instead of unconditionally #defining TCL_LOAD_FROM_MEMORY on Darwin)
      
      if test "$DL_OBJS" != "tclLoadNone.o"; then
      cat >>confdefs.h <<\_ACEOF
      #define TCL_LOAD_FROM_MEMORY 1
      _ACEOF
      fi
      
      To reproduce the problem, it is essential to compile for OS X 10.4 or 10.5, since those contain Tcl 8.4 in the SDK while 10.6 contains Tcl 8.5 in the SDK and tclsh is linked to the systemwide libtcl instead to the one just built (maybe that is a bug in itself?). For convenience, I attached the script that I used to demonstrate the problem. It sets environment variables and compile flags to build for Mac OS X 10.5, even if you run it on 10.6.
      
      
    4. foundin initialized to: "obsolete: 8.5.9"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "mthuurne"
    10. subsystem initialized to: "40. Dynamic Loading"
    11. title initialized to: "Compile error with --disable-load on Mac OS X"
    12. type initialized to: "Bug"
  2. Ticket change [dfe4d361c7] (rid 115095) by mthuurne on 2011-02-15 15:27:18:

    1. icomment:
      
      
      File Added - 401688: tclbug.sh
      
      
      
    2. login: "mthuurne"
    3. mimetype: "text/plain"
    4. username: "mthuurne"
  3. Add attachment "tclbug.sh" [44ad78d807] (rid 116748) by mthuurne on 2011-02-15 15:27:18.

  4. Ticket change [2b285ff2c2] (rid 118688) by hobbs on 2011-02-16 04:28:35:

    1. icomment:
      --disable-load is a legacy feature that should really be removed.  I don't see a need to fix this - what is the desire for using this?
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. priority changed to: "3 Low"
    5. username: "hobbs"
  5. Ticket change [27ca70893b] (rid 88580) by mthuurne on 2011-02-16 04:44:44:

    1. icomment:
      Originally I added --disable-load to work around bug 2902010. Since that bug is fixed now, I don't really need --disable-load anymore. However, I generally disable all features we don't need so the produced executable is smaller. I guess the binary loading feature is not that large though.
      
      It would be fine with me if you decide to drop --disable-load as a feature. If the feature continues to exist though, it would be better to fix this bug.
      
      
      
    2. login: "mthuurne"
    3. mimetype: "text/plain"
    4. username: "mthuurne"
  6. Ticket change [04c667c3e2] (rid 88931) by kennykb on 2011-02-16 08:59:19:

    1. assignee changed to: "das"
    2. icomment:
      Assigning to the maintainer of tclIOUtil.c on MacOSX. (I don't generally do MacOSX.)
      
      
    3. login: "kennykb"
    4. mimetype: "text/plain"
    5. username: "kennykb"
  7. Ticket change [1a0ccadb60] (rid 122909) by das on 2011-02-16 10:38:06:

    1. icomment:
      the TCL_LOAD_FROM_MEMORY check in tcl/unix/configure.in should probably just be wrapped into a AS_IF([test "$DL_OBJS" == "tclLoadNone.o"], ....)
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  8. Ticket change [ff8cd860af] (rid 259747) by serhiy.storchaka on 2026-10-21 10:03:39:

    1. icomment:
      Fixed in 8.5.14 and 8.6.1 by [bf36815647] (ticket [3433012]): tclLoadNone.c now provides dummy TclpLoadMemory functions, so a --disable-load build links on macOS.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  9. Ticket change [baef657177] (rid 260035) by serhiy.storchaka on 2026-10-22 17:19:31:

    1. closedate changed to: "2461334.9192054397"
    2. closer changed to: "serhiy.storchaka"
    3. login: "serhiy.storchaka"