Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9ae3cc2e7aebd2fc8da93c0e6e66a09e937058b1422294dab790eaff679fdd28
Ticket: 0d72c165defb6d9a78db6572930730106daa692a
Linker Error on CrossCompiling Modules on tcl V8.6.10 in libtclstub8.6.a
User & Date: mniehren on 2020-01-02 13:44:58
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    I try to crosscompile tcl V8.6.10 on Linux with osxcross.
    Compiling works fine, but in the libtclstub8.6.a there is now an reference
    to TclIsSpaceProc, so.
    
    If i now compile an extension, the linking fails as libtclstub8.6.a has an
    undefinded reference for TclIsSpaceProc:
    
    o64-clang -DSTATIC_BUILD=1 -DMAC_OSX_TCL=1 -D__APPLE__ -shared -pipe -O2 -fomit-frame-pointer -Wall -fPIC   -o libtreectrl2.4.3.so qebind.o tkTreeColumn.o tkTreeCtrl.o tkTreeDisplay.o tkTreeDrag.o tkTreeElem.o tkTreeHeader.o tkTreeItem.o tkTreeMarquee.o tkTreeNotify.o tkTreeStyle.o tkTreeTheme.o tkTreeUtils.o tkMacOSXTree.o -framework Cocoa -framework Carbon  -L/home/michael/entwicklung/tclexecomp/maccross/build/tcl8.6.10/unix -ltclstub8.6 -L/home/michael/entwicklung/tclexecomp/maccross/build/tk8.6.10/unix -ltkstub8.6
    Undefined symbols for architecture x86_64:
      "_TclIsSpaceProc", referenced from:
          _strtoul in libtclstub8.6.a(strtoul.o)
    ld: symbol(s) not found for architecture x86_64
    clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
    
    
    After changeing the file "compat/strtoul.c" to the version of V8.6.9, compilation works
    as expected.
    
    Here is the only change:
    pc1@~/entwicklung/tclexecomp/src/tcl/tcl8.6.10.new# diff compat/strtoul.c ../../../maccross/build/tcl8.6.9/compat/strtoul.c
    77c77
    <     while (TclIsSpaceProc(*p)) {
    ---
    >     while (isspace(UCHAR(*p))) {
    
    Best regards
      Michael
    
  5. foundin changed to: "8.6.10"
  6. is_private changed to: "0"
  7. login: "mniehren"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "d24466f4295ab6e922f55b37442e741edb284b1f"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "mniehren"
  14. subsystem changed to: "69. Other"
  15. title changed to:
    Linker Error on CrossCompiling Modules on tcl V8.6.10 in libtclstub8.6.a
    
  16. type changed to: "Bug"