the ebuild for php contains the following section: if [ "`use pdflib`" ] ; then myconf="${myconf} --with-pdflib=/usr" else use gd && myconf="${myconf} --with-gd" fi This makes no sense since pdflib and gd can cohabitate perfectly well in php. bug 2708, which this claims to resolve, is totally unrelated to gd, it was a pdflib and java problem.
should be corrected...