This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jerzy.Kozera
Recipients Doug.Shea, Jerzy.Kozera, mark.dickinson, mhenriq
Date 2010-11-23.15:06:37
SpamBayes Score 9.880985e-15
Marked as misclassified No
Message-id <1290524804.7.0.328674807982.issue9742@psf.upfronthosting.co.za>
In-reply-to
Content
Running

gcc -Wl,-R/usr/local/lib,-R/usr/lib  -o python Python/pymath.o Modules/python.o libpython2.7.a -lresolv -lsocket -lnsl -lrt -ldl  -lpthread   -lm

mv build/lib.solaris-2.8-sun4u-2.7/math_failed.so build/lib.solaris-2.8-sun4u-2.7/math.so

seems to have made math module import correctly and work:

bash-2.03$ ./python
Python 2.7 (r27:82500, Nov 23 2010, 14:49:30)
[GCC 3.4.6] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>> math.floor(2.4)
2.0


I suppose it's more a workaround than a solution, but hopefully it makes using math module possible and confirms the suggestion there might be something wrong with ar/gcc linking the .a file.
History
Date User Action Args
2010-11-23 15:06:44Jerzy.Kozerasetrecipients: + Jerzy.Kozera, mark.dickinson, mhenriq, Doug.Shea
2010-11-23 15:06:44Jerzy.Kozerasetmessageid: <1290524804.7.0.328674807982.issue9742@psf.upfronthosting.co.za>
2010-11-23 15:06:37Jerzy.Kozeralinkissue9742 messages
2010-11-23 15:06:37Jerzy.Kozeracreate