|
2022-01-14
| ||
| 16:33 | • Closed ticket [b241e4ccc0]: BUG: Error while building with Tcl 8.7a5... pl... artifact: e33cd73807 user: jan.nijtmans | |
| 15:44 | Fix [b241e4ccc0]: Error while building with Tcl 8.7a5... check-in: 2d7363022b user: jan.nijtmans tags: core-8-branch | |
| 09:08 | • New ticket [b241e4ccc0] BUG: Error while building with Tcl 8.7a5.... artifact: 2ba4d996b4 user: petasis | |
[BUG]: Error while building with Tcl 8.7a5...
Closed / Fixedb241e4ccc03f88a98bf9a3a7c36c98f292198c03Created 5 years agoUpdated 5 years ago
Descriptionplain2022-01-14 09:08:41
Hi all,
I am trying to recompile tkinter from source with Tcl 8.7a5, but it fails.
Without specifying anything, I end up with a set of undefined symbols staring with TclBN_.
Looking in tclTomMathDecls.h, there is a TCL_WITH_EXTERNAL_TOMMATH definition. Enabling this, I end up with a single undefined symbol,
TclBN_mp_ubin_size.
This is due to line 174 of the file:
#define mp_unsigned_bin_size(mp) (MP_DEPRECATED_PRAGMA("replaced by mp_ubin_size") (int)TclBN_mp_ubin_size(mp))
It should respect TCL_WITH_EXTERNAL_TOMMATH, which it does not.
George
Referenced by1
2d7363022bFix [b241e4ccc0]: Error while building with Tcl 8.7a5... check-in2022-01-14 15:44:02
jan.nijtmanswiki2022-01-14 16:33:10
Thanks for the report! Indeed, the deprecation of mp_unsigned_bin_size was not correctly handled. Should be fixed now (will be in Tcl 8.7a6).
However, the functions mp_unsigned_bin_size() and mp_to_unsigned_bin_n() are deprecated in libtommath, I recommend to use mp_ubin_size() resp mp_to_ubin() in stead. Those two functions are available in Tcl 8.6 too. Using mp_ubin_size()/mp_to_ubin() in _tkinter.c would make this work for Tk 8.7a5 too.
Thanks!
Log in (anonymous is fine) to add a comment.