php-4.1.1-r2.ebuild fails if USE contains java: checking whether the C++ compiler (c++ -mcpu=i686 -march=i686 -O3 -pipe -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath,/opt/blackdown-jdk-1.3.1/jre/lib/i386/classic -L/opt/blackdown-jdk-1.3.1/jre/lib/i386/classic -Wl,-rpath,/opt/blackdown-jdk-1.3.1/jre/lib/i386/server -L/opt/blackdown-jdk-1.3.1/jre/lib/i386/server -Wl,-rpath,/opt/blackdown-jdk-1.3.1/jre/lib/i386/native_threads -L/opt/blackdown-jdk-1.3.1/jre/lib/i386/native_threads -Wl,-rpath,/opt/blackdown-jdk-1.3.1/jre/lib/i386 -L/opt/blackdown-jdk-1.3.1/jre/lib/i386 -Wl,-rpath,/usr/qt/2/lib -L/usr/qt/2/lib) works... no configure: error: installation or configuration problem: C++ compiler cannot create executables. !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 51, Exitcode 1 !!! (no error message) !!! emerge aborting on /usr/portage/dev-lang/php/php-4.1.1-r2.ebuild .
*** Bug 718 has been marked as a duplicate of this bug. ***
PHP 4.0.6 will have Java support permanently disabled until somebody submits a patch that works. PHP 4.1.1 has Java support that works with Blackdown now.