Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b60cc67b749dada11fa8b704661597cc21d8f027ab058a1b9af73d8923d42aaf
Ticket: 4663e0636f7a24b9363e67c7a3dd25e9e495be17
TIP 538 and Tcl extensions: 'tommath.h' file not found
User & Date: mr_calvin on 2020-05-17 23:02:08
Changes

  1. comment changed to:
    We noticed that since TIP 538 became integrated into core-8-branch, our NSF builds started failing because tommath.h cannot be picked up anymore. See https://travis-ci.com/github/nm-wu/nsf/jobs/334291146#L717
    
    > In file included from ./generic/nsf.c:16655:
    >
    > /home/travis/tcl/generic/tclTomMath.h:11:10: fatal error: 'tommath.h' file not found
    >
    > #include "tommath.h"
    
    NSF includes tclTomMath.h explicitly, to access mp_int at one spot.
    
    TIP 538 advertises that Tcl extensions should be able to include either tommath.h directly, or tclTomMath.h (as NSF does). 
    
    How should an extension properly include tclTomMath.h (which unconditionally includes tommath.h) when built against a Tcl core not using a systemwide libtommath? Apparently, tommath.h is not provided to extensions that way (anymore)?
    
    Thank you!
    
  2. login: "mr_calvin"
  3. mimetype: "text/plain"