Building net-nds/openldap with GCC 4.4, the following error occurs many times:
var/tmp/portage/net-nds/openldap-2.3.43-41/work/openldap-2.3.43/include/ldap_pvt_thread.h:66:7: error: missing binary operator before token "("
This has been fixed upstream as of openldap-2.4.13. The highest version in portage is 2.4.11, and all of the 2.4 series are hardmasked at this time.
I am attaching a patch adapted from the Debian bugreport linked above.
Created attachment 187194 [details, diff]
Patch from Debian to enable GCC 4.4 compilation
in gcc-porting overlay (thanks again)
+ 08 May 2009; Peter Alfredsen <firstname.lastname@example.org>
+ +files/openldap-2.3.XY-gcc44.patch, openldap-2.3.39-r2.ebuild,
+ openldap-2.3.40-r1.ebuild, openldap-2.3.41.ebuild,
+ openldap-2.3.41-r1.ebuild, openldap-2.3.43.ebuild,
+ Fix build with gcc-4.4, bug 264761. Thanks to Daniel J.
+ <email@example.com> for the patch. Versions still affected:
+ openldap-2.4.7, 2.4.10, 2.4.11*, but PMASKED. Use 2.4.16 if you have to.