Platform is sles 9 ia64: Linux hostname 2.6.5-7.191-default #1 SMP Tue Jun 28 14:58:56 UTC 2005 ia64 ia64 ia64 GNU/Linux Python needs a patch or else it will try to use an undefined constant. It appears PR_SET_NAME is defined around the 2.6.9 kernel era.
Created attachment 229841 [details] python-2.6.5-python.c-PR_SET_NAME.patch workaround that I used to successfully compile.
61_all_process_data.patch:+ prctl(PR_SET_NAME, process_name); so the problem is introduced by a Gentoo patch.
61 is the GENTOO_PYTHON_* stuff patch. @python: what you think of Jeremy's patch?
Hi, I know this is low priority but I can't submit upstream for a revert to a Gentoo patch. Guidance?
I'm getting the same error on on ppc embedded: Linux dsmg600 2.4.21-pre4 #11 Sat Oct 3 11:50:34 CDT 2009 ppc 82xx Sandpoint GNU/Linux Upgrading the kernel isn't much of an option unless I solder a serial port to the board and learn how to flash u-boot. This appears to be a function that sets the process name, no? Is it really critical for < 2.6.9 kernels? Perhaps some of the newer prctl constants can be #ifdef'ed out for older kernels. My concern is that the PR_SET_NAME call will have unpredictable results for older systems that don't define this function. The prctl.h header is very sparse on my system (I'll include it if it helps).
*** Bug 322653 has been marked as a duplicate of this bug. ***
Can't we just axe this patch, or apply the one from Jeremy in Prefix? Knowing the python team policies, the patch probably went upstream, and got accepted, so just another case of where we have to fight python upstream's annoyingness.
This patch is probably wrong. We will apply better patch.
(In reply to comment #8) Apparently Jeremy Olexa mistested a test file...
2.7, 3.2: r345
Fixed in 2.7_pre20100627 and 3.2_pre20100627.
2.6, 3.1: r356
Fixed in 2.6.5-r3 and 3.1.2-r4.