New submission from Felix Yan <[email protected]>:
In bpo-40874, mpdecimal.h in the vendored libmpdec has defines of UNUSED while
the standalone released version of mpdecimal 2.5.0 doesn't. This breaks
_decimal module build with system libmpdec due to UNUSED is undefined.
Errors are like:
cpython/Modules/_decimal/_decimal.c:277:36: error: expected ‘;’, ‘,’ or ‘)’
before ‘UNUSED’
277 | dec_traphandler(mpd_context_t *ctx UNUSED) /* GCOV_NOT_REACHED */
| ^~~~~~
Reproducible in both 3.8 branch and master (didn't test 3.9, but should be
affected too).
----------
components: Extension Modules
messages: 373676
nosy: felixonmars, skrah
priority: normal
severity: normal
status: open
title: _decimal failed to build with system libmpdec 2.5
type: compile error
versions: Python 3.10, Python 3.8, Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue41302>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com