sci-geosciences/qgis-1.7.0 is obsolete and won't compile on Gentoo without a lot of patches. Please remove it from the portage tree (the current version is 2.4). Reproducible: Always
It is. Not in tree anymore. Amy