Compiling python-2.7 on my x64-macos box fails with: Modules/_ctypes/malloc_closure.c: In function 'more_core': Modules/_ctypes/malloc_closure.c:92: error: too few arguments to function 'mmap' Modules/_ctypes/malloc_closure.c:93: error: expected ';' before ')' token Modules/_ctypes/malloc_closure.c:93: error: expected statement before ')' token Looking at the patch "python-2.7-irix" it reveals that you must've adjusted the patch wrongly: item = (ITEM *)mmap(NULL, count * sizeof(ITEM), PROT_READ | PROT_WRITE | PROT_EXEC, - MAP_PRIVATE | MAP_ANONYMOUS, - -1, + flags, + devzero); 0); Note the double closing bracket for the mmap arguments, which isn't there when coompared to the 2.6.4 patch: item = (ITEM *)mmap(NULL, count * sizeof(ITEM), PROT_READ | PROT_WRITE | PROT_EXEC, - MAP_PRIVATE | MAP_ANONYMOUS, - -1, + flags, + devzero, 0); So basically just sync those two patches at this spot. This reminds me of bug #328089. Reproducible: Always Steps to Reproduce: 1. emerge python 2. 3.
Created attachment 243355 [details, diff] Fix for python-2.7-irix.patch
(In reply to comment #1) > Created an attachment (id=243355) [details] > Fix for python-2.7-irix.patch > This patch for the patch fixes compilation of python-2.7 wrt mmap for me.
hmmm, I'm sure I compiled it this way (got it installed), but anyway, fixed now.
(In reply to comment #3) > hmmm, I'm sure I compiled it this way (got it installed), but anyway, fixed > now. > Well I also was, but just looking at the patch made me feel not so sure anymore, since it was clearly broken c syntax. Anyway, thanks for listening the wire and fixing.