i'm trying to build python on snow leopard, but it fails on Nav module attached patches fixes that and also fixes readline support (tested on 10.6 only)
x86_64-apple-darwin10-gcc -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -march=nocona -DWITH_NEXT_FRAMEWORK -I. -I/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/./Include -I/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/./Mac/Include -I/opt/gentoo/usr/lib/Python.framework/Versions/2.6/include -I. -IInclude -I./Include -I/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/Include -I/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2 -c /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/Mac/Modules/Nav.c -o build/temp.macosx-10.6-i386-2.6/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/Mac/Modules/Nav.o /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/Mac/Modules/Nav.c:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'my_eventProcUPP' /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/Mac/Modules/Nav.c:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'my_previewProcUPP' /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/Mac/Modules/Nav.c:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'my_filterProcUPP' /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/Mac/Modules/Nav.c:44: error: expected ')' before 'callBackSelector' /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/Mac/Modules/Nav.c:71: error: expected ')' before 'callBackParms' /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/Mac/Modules/Nav.c:97: error: expected declaration specifiers or '...' before 'NavCallBackUserData' /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/Mac/Modules/Nav.c:98: error: expected declaration specifiers or '...' before 'NavFilterModes' /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/Mac/Modules/Nav.c: In function 'my_filterProc': /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/Mac/Modules/Nav.c:100: error: 'callbackUD' undeclared (first use in this function) /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/Mac/Modules/Nav.c:100: error: (Each undeclared identifier is reported only once /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/Mac/Modules/Nav.c:100: error: for each function it appears in.) /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/Mac/Modules/Nav.c:111: error: 'NavFileOrFolderInfo' undeclared (first use in this function) /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r01.2/work/Python-2.6.2/Mac/Modules/Nav.c:111: error: 'filterMode' undeclared (first use in this function)
Created attachment 203720 [details, diff] ebuild patch
Created attachment 203721 [details, diff] readline fix
Created attachment 203723 [details, diff] build fix (from python svn)
Created attachment 203726 [details] patch update
thanks, a shame I didn't see this one when I created the same patch about an hour ago.
just tried dev-lang/python-2.6.2-r01.3 - still broken then same way on 10.6
ok, I missed the disabling of that one. It's old Carbon stuff that apparently doesn't work on SL any more, whereas it does in 64-bits mode on Leopard.
works now, thx!