ctypes in portage is currently 0.9.2. There is an upstream-release 0.9.6. Both fail to compile with gcc4.
Created attachment 69396 [details, diff] Patch to make it build agains gcc4 I saw a message on ctypes mailinglist saying something like this is the right thing to do with ctypes-0.9.6, and it also told this is fixed in cvs. I have not the time to find ctypes primary vs (seems not to be the sourceforge one) so I can't check agains it. The patch works here, but I have not made and ebouild for it.
0.9.6 with patch added.