Config.log attached. Seems to be an issue with incompatibilities in the crypto or gssapi library causing it to not find gssapi. Makes configure fail. Reproducible: Always Steps to Reproduce: 1. # emerge php Actual Results: config.log attached. Output: Configuring extensions checking for OpenSSL support... yes checking for Kerberos support... /usr checking for krb5-config... /usr/bin/krb5-config checking for pkg-config... /usr/bin/pkg-config checking for OpenSSL version... >= 0.9.6 checking for CRYPTO_free in -lcrypto... no configure: error: libcrypto not found! !!! Please attach the config.log to your bug report: !!! /var/tmp/portage/php-4.4.0/work/php-4.4.0/config.log !!! ERROR: dev-php/php-4.4.0 failed. !!! Function econf, Line 485, Exitcode 0 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. Expected Results: Compiled new PHP version. USE="x86 X a52 aac aalib acpi aim alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 cdb cdparanoia cdr cpdflib crypt cups curl dbus divx4linux doc dvd dvdr dvdread eds emboss encode esd ethereal evo examples fam ffmpeg fftw flac flash foomaticdb fortran freetds ftp gd gdbm gif glut gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal icq ieee1394 imagemagick imap imlib ipv6 jabber jack java javascript jpeg junit kde kerberos ladcca ldap libcaca libg++ libwww lm_sensors mad mikmod mime ming mmap mmx mng mono motif mozilla mp3 mpeg msn mssql mysql ncurses nls nptl odbc offensive ogg oggvorbis openal opengl oscar oss pam pcmcia pcre pda pdflib perl php png postgres python qt quicktime radius readline samba sasl sdl session sharedmem sndfile snmp soap sockets sox speex spell sqlite sse ssl svg tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb v4l vcd videos vorbis wifi win32codecs wmf wxwindows xine xml xml2 xmms xosd xpm xprint xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc"
Created attachment 63280 [details] config.log showing failed configure test
please include output of each of the following commands: emerge -v info emerge -pv virtual/krb5 locate libgssapi locate libkrb5 locate libk5crypto locate libcom_err
Created attachment 63282 [details] Output of emerge -v info
Created attachment 63283 [details] Output of emerge -pv virtual/krb5
Created attachment 63284 [details] Output of emerge -v info
Created attachment 63285 [details] Output of emerge -pv virtual/krb5
Created attachment 63286 [details] Output of locate libgssapi
Created attachment 63287 [details] Output of locate libkrb5
Created attachment 63288 [details] Output of locate libk5crypto
Created attachment 63289 [details] Output of locate libcom_err
umm, where did libgssapi.so go?
*** Bug 98842 has been marked as a duplicate of this bug. ***
Better summary.
Robin, there never was a libgssapi.so with mit-krb5, as far as I know -- it's always been libgssapi_krb5.so. from 1.3.6: seemant mit-krb5 # ls ~portage/mit-krb5-1.3.6-r2/image/usr/lib64 libdes425.so libgssrpc.so.3.0 libkadm5srv.so.5 libdes425.so.3 libk5crypto.so libkadm5srv.so.5.1 libdes425.so.3.0 libk5crypto.so.3 libkdb5.so libgssapi_krb5.so libk5crypto.so.3.0 libkdb5.so.4 libgssapi_krb5.so.2 libkadm5clnt.so libkdb5.so.4.0 libgssapi_krb5.so.2.2 libkadm5clnt.so.5 libkrb5.so libgssrpc.so libkadm5clnt.so.5.1 libkrb5.so.3 libgssrpc.so.3 libkadm5srv.so libkrb5.so.3.2 from 1.4.1: seemant mit-krb5 # ls ~portage/mit-krb5-1.4.1-r1/image/usr/lib64 libdes425.so libk5crypto.so libkdb5.so libdes425.so.3 libk5crypto.so.3 libkdb5.so.4 libdes425.so.3.0 libk5crypto.so.3.0 libkdb5.so.4.0 libgssapi_krb5.so libkadm5clnt.so libkrb5.so libgssapi_krb5.so.2 libkadm5clnt.so.5 libkrb5.so.3 libgssapi_krb5.so.2.2 libkadm5clnt.so.5.1 libkrb5.so.3.2 libgssrpc.so libkadm5srv.so libkrb5support.so libgssrpc.so.4 libkadm5srv.so.5 libkrb5support.so.0 libgssrpc.so.4.0 libkadm5srv.so.5.1 libkrb5support.so.0.0
is this usable information for you? (check the name for gssapi lib). Why configure of PHP uses -lgssapi? # krb5-config --libs gssapi -L/usr/lib -Wl,-rpath -Wl,/usr/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5support -lcom_err -lresolv
I have the same problem. My solution: remove the kerberos USE flag (I wasn't using it anyway), rebuild
When I run USE="kerberos ssl" emerge php I get checking for OpenSSL support... yes checking for Kerberos support... /usr checking for krb5-config... /usr/bin/krb5-config checking for pkg-config... /usr/bin/pkg-config checking for OpenSSL version... >= 0.9.6 checking for CRYPTO_free in -lcrypto... no configure: error: libcrypto not found! When I manually configure PHP --with-openssl=/usr --with-kerberos=/usr I get checking for OpenSSL support... yes checking for Kerberos support... /usr checking for krb5-config... /usr/bin/krb5-config checking for pkg-config... /usr/bin/pkg-config checking for OpenSSL version... >= 0.9.6 checking for CRYPTO_free in -lcrypto... yes checking for SSL_CTX_set_ssl_version in -lssl... yes
*** Bug 98950 has been marked as a duplicate of this bug. ***
*** Bug 98983 has been marked as a duplicate of this bug. ***
I think this bug is caused by the fix for bug 46768
basic: it looks you are right. Maybe they (PHP configure creators) should use "krb5-config --libs gssapi" to get the correct kerberos gssapi library name.
(In reply to comment #21) > basic: it looks you are right. Maybe they (PHP configure creators) should use > "krb5-config --libs gssapi" to get the correct kerberos gssapi library name. from reading the configure script they seem to be though... I can't make of how it works since they use m4 divertions in their configure.in, which makes it real hard to figure out when krb5-config is called. But "kr5-config --libs gssapi" is in the configure script.
ok, found the problem. we pass --with-kerberos=/usr to configure, so it doesn't use krb5-config even though it finds it. We should probably pass --with-kerberos without =/usr . But I'm not sure if that will work with previous releases.
ok I just checked php-4.3.11, it has the same thing in its configure script, so --with-kerberos should just work. Makes me wonder why we didn't see this bug before...
Created attachment 63404 [details, diff] patch here's a patch to php-sapi.eclass changing `use_with kerberos kerberos /usr` to `use_with kerberos`
I applied the patch from comment #25. Thank you, basic.