GCC 4.4 will no longer tolerate #elif's with no conditional clause. python-ldap-2.3.5 contains such an elif. The attached patch fixes this. Alternatively, a simple sed script would also do the trick: sed -i -e 's:^#elif$:#else:g' Modules/errors.c
Created attachment 187016 [details, diff] Patch to eliminate empty #elif's
in gcc-porting overlay
+ 10 May 2009; Samuli Suominen <ssuominen@gentoo.org> + python-ldap-2.3.5.ebuild, +files/python-ldap-2.3.5-gcc44.patch: + Fix compile with GCC 4.4 wrt #264543, thanks to Daniel J.