Tcl Extension Architecture (TEA) Sample Extension

Ticket Change Details
Login
Overview

Artifact ID: 28cea38a2f9f5cf91119c66d77d48c35cafa1cfa
Ticket: 878ab2fa0417e29b47723c97fd6f69d439d14a58
-DUSE_TCL_STUBS=1 not in CPPFLAGS on Mac OSX
User & Date: anonymous 2017-06-30 20:03:25
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    I tried to compile an extension based on the sampleextension on Mac OSX. 
    
    With both, the ActiveTcl installation with tclConfig.sh in 
    /Library/Frameworks/Tcl.framework/tclConfig.sh 
    
    and the MacPorts installation in 
    /opt/local/lib/tclConfig.sh
    
    there is a problem with -DUSE_TCL_STUBS. The flag is not set automatically in CPPFLAGS, when no extra arguments are given to ./configure. This is inconsistent, because the linker flag is -ltclstub8.6 - thus no linking is possible for extensions.
    
    When I work around it by adding -DUSE_TCL_STUBS=1 to the CPPFLAGS in Makefile.in, it works.
    
    I guess the expected behaviour would be that it is added automatically by autoconf / ./configure, as it is on Linux...
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "a3f08bcfe0d7e172d8d82cc61b2d7ce1036b1158"
  10. resolution changed to: "None"
  11. severity changed to: "Critical"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to: "-DUSE_TCL_STUBS=1 not in CPPFLAGS on Mac OSX"
  16. type changed to: "Bug"