[issue9069] test_float failure on Solaris

Mark Dickinson report at bugs.python.org
Fri Jun 25 13:18:37 CEST 2010


Mark Dickinson <dickinsm at gmail.com> added the comment:

So perhaps the cause is simply that copysign isn't being declared for David's Python builds?  If that were the case, I'd expect to see some gcc warnings in the Python build output, something like:

    warning: implicit declaration of function `copysign'

David, are there any such warnings?

Looking at /usr/include/math.h in my OpenSolaris VM, I see (with irrelevant bits omitted):

#if defined(__EXTENSIONS__) || defined(_XOPEN_SOURCE) || \
        !defined(_STRICT_STDC) && !defined(_POSIX_C_SOURCE)

#if defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE)

extern double copysign __P((double, double));

#endif

#endif

Assuming that this is the cause, it would be interesting to know which of these defines differs between my OpenSolaris VM and David's machines.
(e.g., the 'hawk' machine, since this seems closest in spec to what I'm working with).

----------

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


More information about the Python-bugs-list mailing list