Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98836 - PHP 4.4.0 fails to build with USE="kerberos ssl"
Summary: PHP 4.4.0 fails to build with USE="kerberos ssl"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 98842 98950 98983 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-12 18:07 UTC by Dave
Modified: 2005-07-14 09:21 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log showing failed configure test (config.log,48.19 KB, text/x-log)
2005-07-12 18:09 UTC, Dave
Details
Output of emerge -v info (emerge_info.txt,5.16 KB, application/octet-stream)
2005-07-12 19:21 UTC, Dave
Details
Output of emerge -pv virtual/krb5 (emerge_virtualkrb5,223 bytes, application/octet-stream)
2005-07-12 19:22 UTC, Dave
Details
Output of emerge -v info (emerge_info.txt,5.16 KB, text/plain)
2005-07-12 19:25 UTC, Dave
Details
Output of emerge -pv virtual/krb5 (emerge_virtualkrb5.txt,223 bytes, text/plain)
2005-07-12 19:25 UTC, Dave
Details
Output of locate libgssapi (locate_libgssapi.txt,216 bytes, text/plain)
2005-07-12 19:26 UTC, Dave
Details
Output of locate libkrb5 (locate_libkrb5.txt,153 bytes, text/plain)
2005-07-12 19:26 UTC, Dave
Details
Output of locate libk5crypto (locate_libk5crypto.txt,78 bytes, text/plain)
2005-07-12 19:27 UTC, Dave
Details
Output of locate libcom_err (locate_libcom_err.txt,108 bytes, text/plain)
2005-07-12 19:27 UTC, Dave
Details
patch (php-kerberos.patch,614 bytes, patch)
2005-07-14 09:15 UTC, basic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dave 2005-07-12 18:07:56 UTC
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"
Comment 1 Dave 2005-07-12 18:09:23 UTC
Created attachment 63280 [details]
config.log showing failed configure test
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-07-12 19:05:19 UTC
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
Comment 3 Dave 2005-07-12 19:21:53 UTC
Created attachment 63282 [details]
Output of emerge -v info
Comment 4 Dave 2005-07-12 19:22:18 UTC
Created attachment 63283 [details]
Output of emerge -pv virtual/krb5
Comment 5 Dave 2005-07-12 19:25:10 UTC
Created attachment 63284 [details]
Output of emerge -v info
Comment 6 Dave 2005-07-12 19:25:29 UTC
Created attachment 63285 [details]
Output of emerge -pv virtual/krb5
Comment 7 Dave 2005-07-12 19:26:17 UTC
Created attachment 63286 [details]
Output of locate libgssapi
Comment 8 Dave 2005-07-12 19:26:45 UTC
Created attachment 63287 [details]
Output of locate libkrb5
Comment 9 Dave 2005-07-12 19:27:10 UTC
Created attachment 63288 [details]
Output of locate libk5crypto
Comment 10 Dave 2005-07-12 19:27:28 UTC
Created attachment 63289 [details]
Output of locate libcom_err
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-07-12 23:31:50 UTC
umm, where did libgssapi.so go?
Comment 12 Sebastian Bergmann (RETIRED) gentoo-dev 2005-07-13 03:36:40 UTC
*** Bug 98842 has been marked as a duplicate of this bug. ***
Comment 13 Sebastian Bergmann (RETIRED) gentoo-dev 2005-07-13 03:50:05 UTC
Better summary.
Comment 14 Seemant Kulleen (RETIRED) gentoo-dev 2005-07-13 05:07:11 UTC
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

Comment 15 Robert Wolf 2005-07-13 05:28:30 UTC
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
Comment 16 Eric Brown 2005-07-13 06:54:02 UTC
I have the same problem.  My solution: remove the kerberos USE flag (I wasn't
using it anyway), rebuild
Comment 17 Sebastian Bergmann (RETIRED) gentoo-dev 2005-07-13 22:24:38 UTC
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
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2005-07-14 01:29:42 UTC
*** Bug 98950 has been marked as a duplicate of this bug. ***
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2005-07-14 03:37:22 UTC
*** Bug 98983 has been marked as a duplicate of this bug. ***
Comment 20 basic 2005-07-14 05:23:20 UTC
I think this bug is caused by the fix for bug 46768
Comment 21 Robert Wolf 2005-07-14 05:40:14 UTC
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.
Comment 22 basic 2005-07-14 07:51:24 UTC
(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. 
Comment 23 basic 2005-07-14 09:00:36 UTC
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.
Comment 24 basic 2005-07-14 09:11:00 UTC
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...
Comment 25 basic 2005-07-14 09:15:18 UTC
Created attachment 63404 [details, diff]
patch

here's a patch to php-sapi.eclass changing
 `use_with kerberos kerberos /usr`
 to
 `use_with kerberos`
Comment 26 Sebastian Bergmann (RETIRED) gentoo-dev 2005-07-14 09:21:31 UTC
I applied the patch from comment #25. Thank you, basic.