Gentoo's Bugzilla –
Attachment 309301 Details for
Bug 412389app-i18n/sunpinyin-2.0.3-r1 with gcc-4.7 - src/lexicon/genPYT.cpp: In function ‘int main(int, char**)’: 117:50: error: ‘getopt’ was not declared in this scope 120:28: error: ‘optarg’ was not declared in this scope