[issue9742] Python 2.7: math module fails to build on Solaris 9

Misael Henriquez report at bugs.python.org
Thu Sep 2 21:55:57 CEST 2010


Misael Henriquez <misael.henriquez at merchantlink.com> added the comment:

Thanks for your attention to this issue.  It sounds like you're onto something regarding the stand-in function not getting exported.  I'm not sure what to check next, though.

>From pyconfig.h:

/* Define to 1 if you have the `round' function. */
/* #undef HAVE_ROUND */

>From Python/pymath.c:

#ifndef HAVE_ROUND
double
round(double x)
{
    double absx, y;
    absx = fabs(x);
    y = floor(absx);
    if (absx - y >= 0.5)
    y += 1.0;
    return copysign(y, x);
}
#endif /* HAVE_ROUND */

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9742>
_______________________________________


More information about the Python-bugs-list mailing list