Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6f9bf20fd4ae7b226f1f330d5e8ec39a9eb4e9b9
Ticket: d19aef1487a940bbf8ce7553b4aacc88e5ae9621
Does not cross-compile for iOS 6 - patch included.
User & Date: anonymous on 2014-07-29 09:21:24
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    When building for iOS 6 as target (--host=arm-apple-darwin) with load disabled (--disable-load), two problems occur:
    * The declaration of TclpLoadMemory differs from its definition.
    * Some defines do not distinguish between __APPLE__ and ios/macosx.
    
    diff -rupN tcl8.6.1.orig/generic/tclLoadNone.c tcl8.6.1/generic/tclLoadNone.c
    --- tcl8.6.1.orig/generic/tclLoadNone.c	2013-09-19 21:04:14.000000000 +0200
    +++ tcl8.6.1/generic/tclLoadNone.c	2014-07-29 08:57:30.000000000 +0200
    @@ -104,7 +104,7 @@ TclpLoadMemory(
         int size,			/* Dummy: unused by this implementation */
         int codeSize,		/* Dummy: unused by this implementation */
         Tcl_LoadHandle *loadHandle,	/* Dummy: unused by this implementation */
    -    Tcl_FSUnloadFileProc **unloadProcPtr)
    +    Tcl_FSUnloadFileProc **unloadProcPtr, int flags)
     				/* Dummy: unused by this implementation */
     {
         Tcl_SetObjResult(interp, Tcl_NewStringObj("dynamic loading from memory "
    diff -rupN tcl8.6.1.orig/unix/tclUnixPort.h tcl8.6.1/unix/tclUnixPort.h
    --- tcl8.6.1.orig/unix/tclUnixPort.h	2013-09-19 21:04:17.000000000 +0200
    +++ tcl8.6.1/unix/tclUnixPort.h	2014-07-29 11:01:56.000000000 +0200
    @@ -541,7 +541,11 @@ extern int errno;
      *---------------------------------------------------------------------------
      */
     
    -#if defined(__APPLE__) && defined(__DYNAMIC__)
    +#ifdef __APPLE__
    +#include "TargetConditionals.h"
    +#endif
    +
    +#if defined(__APPLE__) && defined(__DYNAMIC__) && TARGET_OS_MAC
     #   include <crt_externs.h>
     #   define environ	(*_NSGetEnviron())
     #   define USE_PUTENV	1
    
  5. foundin changed to: "8.6.1"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "37918056d323dc69a2f76cecc85476189094f3b8"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "52. Portability Support"
  15. title changed to: "Does not cross-compile for iOS 6 - patch included."
  16. type changed to: "Bug"