[Bug 253604] lang/python39: use libmpdec from ports

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 18 16:37:42 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253604

--- Comment #2 from Stefan Krah <skrah at bytereef.org> ---

I didn't notice that you had already opened an issue, sorry.

The _decimal.c changes are generally required because the mpdecimal.h header
has been cleaned up. There were some leftovers like the typedef of "uchar",
which collided with some system header on Solaris and broke the build.


It does not build here without the patch:

In file included from ./Include/unicodeobject.h:58,
                 from ./Include/Python.h:97,
                 from
/usr/home/stefan/Python-3.9.1/Modules/_decimal/_decimal.c:29:
/usr/home/stefan/Python-3.9.1/Modules/_decimal/_decimal.c: In function
'dec_format':
/usr/home/stefan/Python-3.9.1/Modules/_decimal/_decimal.c:3283:43: error:
'uchar' undeclared (first use in this function); did you mean 'u_char'?
 3283 |         if (n > 1 || (n == 1 && !isascii((uchar)spec.dot[0]))) {
      |                                           ^~~~~



Would you like to close this and continue with your original issue or keep this
one open?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-python mailing list