[issue7398] Issue with _PyLong_Format while trying to build Python on HP-UX itanium

2009-11-26 Thread Eric Smith
Eric Smith added the comment: I'm going to close this, but if you find the problem (and especially if you develop a patch to resolve it), please post back here. -- status: open -> closed ___ Python tracker

[issue7398] Issue with _PyLong_Format while trying to build Python on HP-UX itanium

2009-11-26 Thread Paul H
Paul H added the comment: Hi all, Many thanks for the tips, and for the super-quick responses also! Yes indeed, what is happening here is that PY_VERSION_HEX is not being evaluated correctly. In fact what appears to be happening is that Include/patchlevel.h is not being considered in the comp

[issue7398] Issue with _PyLong_Format while trying to build Python on HP-UX itanium

2009-11-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: To elaborate on Eric's suggestion, put a single line top PY_VERSION_HEX bottom right above the line #if PY_VERSION_HEX >= 0x0300 Then add the flag that produces preprocessor output to the compiler line (copy the compiler line literally from the build p

[issue7398] Issue with _PyLong_Format while trying to build Python on HP-UX itanium

2009-11-26 Thread Eric Smith
Eric Smith added the comment: For 3.1, line 1369 of Python/../Objects/stringlib/formatter.h should not be used. There's a #if on line 1359 that prevents the long_format function from being used. Could you investigate why that #if is using the wrong value? -- nosy: +eric.smith _

[issue7398] Issue with _PyLong_Format while trying to build Python on HP-UX itanium

2009-11-26 Thread Paul H
New submission from Paul H : Hello all, First post here so go easy on me please! And please bear in mind I am not a C programmer, just a unix admin trying to build python as an option for other programmers to use. I am trying to build Python 3.1.1 on HP-UX itanium. OS and compiler details are a