Hello, scim-pinyin needs string.h.
Created attachment 159109 [details] scim-pinyin-0.5.91-r2.ebuild
perhaps, its already fixed in portage tree(scim-pinyin-0.5.91-r2). if you still have problem, please reopen this bug.