When heimdal satisfies the virtual/krb5 dependency, dev-lang/php-5* fails to build with the following error; checking for IMAP support... yes, shared checking for IMAP Kerberos support... /usr checking for IMAP SSL support... yes checking for pam_start in -lpam... yes checking for crypt in -lcrypt... yes checking whether build with IMAP works... no configure: error: build test failed. Please check the config.log for details. Presumably this is due to having kerberos and imap use flags enabled. Looking at the config.log file, the error is as follows; configure:59598: checking whether build with IMAP works configure:59641: gcc -o conftest -mcpu=ultrasparc -mtune=ultrasparc -O2 -pipe -L/usr/lib -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib conftest.c -lc-client -lcrypt -lpam -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -ldl -lt1 -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -ldb-4.0 -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm >&5 /usr/lib/gcc/sparc-unknown-linux-gnu/3.4.4/../../../../sparc-unknown-linux-gnu/bin/ld: cannot find -lgssapi_krb5 collect2: ld returned 1 exit status configure:59644: $? = 1 configure: program exited with status 1 The problem here is that heimdal doesn't provide a libgssapi_krb5.so library, nor a libk5crypto.so library, so this test will fail on both of those counts. I haven't looked into this much, but my guess is that either the autoconf stuff needs to be updated to account for heimdal or the virtual/krb5 dependency needs to be changed to mit-krb5 (which does work in this situation)
There's also another problem w/ heimdal (Bug 103459); kerberos herd, some ideas here? Looks like changing the deps to mit-krb5 would solve both, if another solution cannot be find.
Uhm OK, seems like dupe of Bug 46768, did the patch got lost?
This is fixed in the new dev-lang/php revisions. Best regards, CHTEKK.
So the problem is half-fixed. PHP is no longer looking for -lgssapi_krb5. However as mentioned in the initial comments, it is still looking for a libk5crypto.so which heimdal does not provide.
The requirement of libk5crypto.so has been deleted now, if you use Heimdal. I was now able to compile and successfully run dev-lang/php on a Heimdal system, so this should be finally fixed. Best regards, CHTEKK.