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

2012-11-17 Thread Mark Dickinson
Mark Dickinson added the comment: Matt: thanks for testing. Patch applied---this should be fixed now. I'm a little bit nervous about this one, since it may introduce new failures on systems with a buggy round implementation (Linux / alpha, for example). Still, we have tests for that, so I'l

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

2012-11-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset ff300ccd119d by Mark Dickinson in branch '2.7': Issue #9742: Sneaky fix for build failure on Solaris 9. http://hg.python.org/cpython/rev/ff300ccd119d -- nosy: +python-dev ___ Python tracker

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

2012-11-01 Thread Matt Selsky
Matt Selsky added the comment: I tested this patch again python 2.7.3 on Solaris 9 and the math module now builds correctly. Thanks! Let me know if you need any output. -- ___ Python tracker _

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

2012-10-31 Thread Mark Dickinson
Mark Dickinson added the comment: Reopening because I think I may have an easy solution. Is there anyone who can reproduce the problem who could test the attached patch (against 2.7) to see if it solves the issue? -- assignee: -> mark.dickinson resolution: out of date -> status: clo

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

2012-10-31 Thread Mark Dickinson
Mark Dickinson added the comment: Looking back at the discussion, I think I got this bit wrong: "the round function is needed, and used, in Objects/floatobject.c (that is, if PY_NO_SHORT_FLOAT_REPR is *not* defined;" In fact, the round function is used if PY_NO_SHORT_FLOAT_REPR *is* defined, a

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

2012-10-28 Thread Stefan Krah
Stefan Krah added the comment: Right, they distinguish between EOL and "Extended Support Phase": http://www.oracle.com/technetwork/server-storage/solaris10/overview/general-137378.html -- ___ Python tracker ___

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

2012-10-28 Thread Trent Nelson
Trent Nelson added the comment: Snakebite's got a Solaris 9 SPARC instance up and running. It's available via the s9 alias. Regarding EOL, this indicates October 2014 for 9: http://en.wikipedia.org/wiki/Solaris_(operating_system)#Version_history If it's as simple as suggested, I don't mind t

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

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Stefan. Closing. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ __

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

2012-10-28 Thread Trent Nelson
Changes by Trent Nelson : -- nosy: +trent ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

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

2012-10-28 Thread Stefan Krah
Stefan Krah added the comment: FWIW, Solaris 9 has EOL status: http://www.oracle.com/technetwork/server-storage/solaris10/overview/index-138972.html I suspect we might as well close this issue, since the motivation to work on it will be pretty low in general. -- __

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

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Unassigning, since I don't plan to work on this any time soon. -- assignee: mark.dickinson -> ___ Python tracker ___ ___

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

2012-05-28 Thread Stefan Krah
Stefan Krah added the comment: This is just a suggestion, but the easiest way of getting good support for a non-mainstream platform is to provide a build slave: http://www.python.org/dev/buildbot/ Setting up a build slave takes 20 min: http://bugs.python.org/file24399/buildslave_install.txt

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

2012-05-28 Thread Cory Zito
Cory Zito added the comment: I hit this issue today with 2.7.3 (Solaris 9, Sun Studio 12). Adding Python/pymath.o to $(BUILDPYTHON) worked for me. Should a check in configure of is Solaris and no round should just go ahead and add this to $(BUILDPYTHON)? -- nosy: +CoryZ

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

2011-04-21 Thread David Schnur
David Schnur added the comment: I encountered this problem when updating from 2.6.4 to 2.7.1 on Solaris 8, which also doesn't have 'round'. I tried srmadsen's --whole-archive option, but it wasn't recognized by the (somewhat ancient) tools on that machine. I solved the problem by just editin

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

2011-01-10 Thread Reid Madsen
Reid Madsen added the comment: Python support, This issue with not being able to build on Solaris 9 is easily fixed. I have attached a patch with the fix for Python 2.7. When linking with libpython-2.7.a, the linker will only extract modules that satisfy dependencies emanating from python.o

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

2010-12-29 Thread Matt Selsky
Changes by Matt Selsky : -- nosy: +Matt.Selsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2010-11-23 Thread Mark Dickinson
Mark Dickinson added the comment: > I *do* get a math module... but it does *not* have a round function. Not a problem: the math module isn't supposed to have a round function. :-) The round function is used as part of the calculations that produce the gamma function. So if the gamma functi

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

2010-11-23 Thread Doug Shea
Doug Shea added the comment: It's actually not quite a solution, either. Working your changes into the build process, I *do* get a math module... but it does *not* have a round function. > python Python 2.7 (r27, Nov 23 2010, 11:54:39) [GCC 3.3.2] on sunos5 Type "help", "copyright", "credits"

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

2010-11-23 Thread Jerzy Kozera
Jerzy Kozera added the comment: 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 m

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

2010-11-22 Thread Doug Shea
Doug Shea added the comment: I don't think there's anything wrong with the setup we've been looking at so far, per se. The libpython2.7.a file produced has the 'round' function like it should: > nm libpython2.7.a | grep round [116] | 1360| 696|FUNC |GLOB |0|2 |_Py_double_rou

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

2010-11-22 Thread Doug Shea
Doug Shea added the comment: > ./python Python 2.7 (r27:82500, Nov 22 2010, 10:06:14) [GCC 3.3.2] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print sys.float_repr_style short So it appears, if I follow you, that PY_NO_SHORT_FLOAT_REPR is n

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

2010-11-22 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks. I'm still stuck, though. Since I'm pretty much at the wild guesses stage, here's one: Perhaps the pymath.o object file isn't being included in the Python executable at all, because none of its functions are needed. Now that doesn't seem to make s

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

2010-11-22 Thread Doug Shea
Doug Shea added the comment: Certainly! -- Added file: http://bugs.python.org/file19773/pyconfig.h ___ Python tracker ___ ___ Python-b

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

2010-11-22 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. That's puzzling indeed. I made a claim earlier that 'round' is already used in Objects/floatobject.c, but it occurs to me now that that's not true if PY_NO_SHORT_FLOAT_REPR is #defined. Could you attach the pyconfig.h file produced by configure? -

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

2010-11-22 Thread Doug Shea
Doug Shea added the comment: I unpacked a fresh tarball, made this change, then did a ./configure and make as normal. Exact same error as originally reported. :( -- ___ Python tracker _

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

2010-11-22 Thread Mark Dickinson
Mark Dickinson added the comment: Doug: thanks. I think I may just be being stupid here. One thing you might try is replacing the line extern double round(double); in Include/pymath.h, with: PyAPI_FUNC(double) round(double); and see if that helps. --

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

2010-11-22 Thread Doug Shea
Doug Shea added the comment: I have some knowledge of these things, so I'll try to find out what's going on, but I could also upload output and/or debug files here for you to examine, if that helps. If you give me the files you'd like to see from my build, or the commands you'd like the outpu

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

2010-11-20 Thread Mark Dickinson
Mark Dickinson added the comment: > Force it to export that 'round' symbol in the core, perhaps? Sure. That might involve first understanding why it's not being exported. That's where I'm a bit stuck, especially without a Solaris system to test on. If someone can figure out why the symbol

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

2010-11-19 Thread Doug Shea
Doug Shea added the comment: Is there perhaps a work-around we could use to get this to compile and have a math module? Force it to export that 'round' symbol in the core, perhaps? -- nosy: +Doug.Shea ___ Python tracker

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

2010-09-02 Thread Misael Henriquez
Misael Henriquez 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 H

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

2010-09-02 Thread Misael Henriquez
Misael Henriquez added the comment: The check for round failed during configure. I included a bit of that in my second note above. Here's a bit more of the output: collect2: ld returned 1 exit status configure:11989: $? = 1 configure: failed program was: | /* confdefs.h */ | #define _GNU_SOU

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

2010-09-02 Thread Mark Dickinson
Mark Dickinson added the comment: Ah. Reading your second message more closely, you're presumably getting a 'no' there. Could you double check that 'HAVE_ROUND' is not defined in pyconfig.h? In that case, what's supposed to happen is that there's a substitute 'round' function defined in Pyt

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

2010-09-02 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. There should be a configure-time test for 'round'. Could you look for a line something like: checking for round... yes in the configure output and tell me whether you've got a 'yes' or a 'no' there? -- assignee: -> mark.dickinson _

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

2010-09-02 Thread Ned Deily
Changes by Ned Deily : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2010-09-02 Thread Misael Henriquez
Misael Henriquez added the comment: The problem appears to be the lack of a round function in Solaris 9. This compiles find in Solaris 10, but I need it in Solaris 9. configure:11989: checking for round configure:11989: gcc -o conftest -g -O2 conftest.c -lresolv -lsocket -lnsl -lrt -ldl -

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

2010-09-02 Thread Misael Henriquez
New submission from Misael Henriquez : building 'math' extension$ gcc -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/src/python/Python-2.7/Include -I/usr/local/src/python/Python-2.7 -c /usr/local/src/pytho