Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264543 - [patch] dev-python/python-ldap fails to build with GCC 4.4
Summary: [patch] dev-python/python-ldap fails to build with GCC 4.4
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
Depends on:
Blocks: gcc-4.4
  Show dependency tree
Reported: 2009-04-01 20:10 UTC by Daniel J.
Modified: 2009-05-10 16:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

Patch to eliminate empty #elif's (python-ldap-2.3.5-gcc44-elif.patch,287 bytes, patch)
2009-04-01 20:11 UTC, Daniel J.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 <>
+  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.