The asterisk ebuilds try to disable h323 support, but *’s configure script none-the-less tries to find ptlib. If it is installed, configure fails when it tries to determine whether the installed version is new enough. Something (perhaps the gentoo-patchset?) breaks the syntax and causes a syntax error. Adding --without-pwlib to the econf call will prevent the ptlib check entirely. (Tested with 11; the fix should be made to all of the versions in portage.) configure looks for ptlib ONLY for the benefit of *’s h323 module, which Gentoo explicitly disables anyway, so adding the without is the proper fix. [side note: since the h323 module is elided, perhaps the etc/asterisk/h323.conf and etc/asterisk/ooh323.conf config files ought not to be installed?]
1) Please post your `emerge --info' output in a comment. 2) Please attach the entire build log to this bug report.