Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 264543

Summary: [patch] dev-python/python-ldap fails to build with GCC 4.4
Product: Gentoo Linux Reporter: Daniel J. <sleeperseven>
Component: [OLD] GCC PortingAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: dabbott, esigra
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 249226    
Attachments: Patch to eliminate empty #elif's

Description Daniel J. 2009-04-01 20:10:32 UTC
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
Comment 1 Daniel J. 2009-04-01 20:11:08 UTC
Created attachment 187016 [details, diff]
Patch to eliminate empty #elif's
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2009-04-15 01:40:52 UTC
in gcc-porting overlay
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-05-10 16:14:58 UTC
+  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.