nstx-1.1_beta6 which is the latest version of nstx and the only one in portage is broken. Debian people has done a good job patching and fixing it. This bug contains the debian patch and a modified gentoo ebuild to patch the source before compiling it.
Created attachment 83300 [details, diff] patch for nstx-1.1_beta6 from debian package
Created attachment 83301 [details] modified version of nstx-1.1_beta6-r1.ebuild to patch the source
in cvs now. please see the ebuild I commited for the preferred method of using debian patches (it makes it much easier to get new versions from them).