[issue4919] 2.6.1 build issues on solaris with SunStudio 12
report at bugs.python.org
Mon Jan 12 10:14:51 CET 2009
New submission from scott wedel <taverngeek at gmail.com>:
The HUGE_VAL aka infinity issue is solved if the LIB is -lsunmath -lm
instead of just -lm
Sun Studio 12 compiler also seems to choke on the PyByteArray_GET_SIZE
and _AS_STRING because those macros use the ',' operator to stuff an
assert before the pointer lookup. When I remove the assert portion of
those macros then they compile fine.
The assertions in those macros appear a bit silly because some places
they are used already have prior assertions and I don't see the point of
the macro which appears to be to crash due to an assertion one statement
prior to the null pointer reference causing a crash.
The configure process also appeared to make a few mistakes such as not
finding uid_t because that is in <sys/types.h> and not in the presumed
header file. If configure were to include the standard header files AND
the file that it expects to find the definition then it would be better
at finding what is defined. I don't know why Sun does that.
title: 2.6.1 build issues on solaris with SunStudio 12
versions: Python 2.6
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list