Tcl Source Code

View Ticket
Login
Ticket UUID: 1941434
Title: Missing include file when using tclTomMath.h
Type: Bug Version: obsolete: 8.5.2
Submitter: mangoa01 Created on: 2008-04-13 17:23:55
Subsystem: 56. LibTomMath Assigned To: dgp
Priority: 9 Immediate Severity:
Status: Closed Last Modified: 2009-10-06 23:31:21
Resolution: Fixed Closed By: dgp
    Closed on: 2009-10-06 16:31:21
Description:
When compiling an extension that uses bignum objects it is necessary to include "tclTomMath.h" to obtain the prototypes for the bignum functions. "tclTomMath.h" also includes "tommath_class.h" which is not part of the installed include files. "tommath_class.h" is located in the "libtommath" directory. Therefore it is necessary to have sources around in order to build extensions that use bignums.
User Comments: dgp added on 2009-10-06 23:31:21:

allow_comments - 1

dgp added on 2009-10-06 23:31:18:
Fixed for 8.5.8 and 8.6b2.

dgp added on 2009-10-01 04:52:33:
That patch is against the HEAD.  Should adapt
easily to the 8.5 branch.

dgp added on 2009-10-01 04:35:19:
Patch uploaded for comments.

See also  http://wiki.tcl.tk/24497 .

dgp added on 2009-10-01 04:34:40:

File Added - 344903: 1941434.patch

andygoth added on 2008-12-17 00:22:08:
I have also run into this problem with Tcl 8.6a3.  I was able to work around it simply by creating an empty file named tommath_class.h in my source tree and adding its directory to the -I include path.  However, this is a very ugly hack.  tclTomMath.h should be fixed to only include this file when building the Tcl library or to never include it at all, depending on whether or not it serves any purpose at build time.  It isn't useful when simply using the library.

Attachments: