php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23180 Make fails not finding a krb5.h
Submitted: 2003-04-12 13:17 UTC Modified: 2003-09-18 03:29 UTC
Votes:3
Avg. Score:3.7 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: alietss at yahoo dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.2-RC OS: Linux RedHat 9.0
Private report: No CVE-ID: None
 [2003-04-12 13:17 UTC] alietss at yahoo dot com
Hi boys:
I'm building rpms for RedHat 9.0 of php-4.3.2 latest stables sources, httpd-2.0.45, but my make is failing not finding the krb5.h wich is in /usr/kerberos/include, the strange is that in the past this was working for me.... This is the error output, and my configure line...

In file included from /usr/include/openssl/ssl.h:179,
                 from /usr/src/redhat/BUILD/php-4.3.2/main/php_network.h:78,
                 from /usr/src/redhat/BUILD/php-4.3.2/ext/standard/fsock.h:38,
                 from /usr/src/redhat/BUILD/php-4.3.2/ext/standard/php_standard.
h:44,
                 from /usr/src/redhat/BUILD/php-4.3.2/ext/zlib/zlib.c:48:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory

here my configure line...
%configure \
	--prefix=%{_prefix} \
	--cache-file=../config.cache \
	--with-config-file-path=%{_sysconfdir} \
	--with-config-file-scan-dir=%{_sysconfdir}/php.d \
	--enable-force-cgi-redirect \
	--disable-debug \
	--enable-pic \
	--disable-rpath \
	--enable-inline-optimization \
	--with-bz2 \
	--with-db4 \
	--with-curl \
	--with-dom=%{_prefix} \
	--with-exec-dir=%{_bindir} \
	--with-freetype-dir=%{_prefix} \
	--with-png-dir=%{_prefix} \
	--with-gd \
	--enable-gd-native-ttf \
	--with-ttf \
	--with-gdbm \
	--with-gettext \
	--with-pdflib=shared \
	--with-tiff-dir=%{_prefix} \
	--with-ncurses \
	--with-gmp \
	--with-iconv \
	--enable-xslt=shared \
	--with-jpeg-dir=%{_prefix} \
	--with-openssl \
	--with-png \
	--with-pspell \
	--with-regex \
	--with-xml \
	--with-expat-dir=%{_prefix} \
	--with-zlib \
	--with-layout=GNU \
	--enable-bcmath \
	--enable-exif \
	--enable-ftp \
	--enable-magic-quotes \
	--enable-safe-mode \
	--enable-sockets \
	--enable-sysvsem \
	--enable-sysvshm \
	--enable-discard-path \
	--enable-track-vars \
	--enable-trans-sid \
	--enable-yp \
	--enable-wddx \
	--without-oci8 \
	--with-pear=/usr/share/pear \
	--with-imap=shared \
	--with-imap-ssl \
	--with-kerberos=/usr/kerberos \
	--with-ldap=shared \
	--with-mcal=shared,%{_prefix} \
	--with-mcrypt=shared,%{_prefix} \
	--with-mhash=shared,%{_prefix} \
	--with-mssql=shared,%{_prefix} \
	--with-mysql=shared,%{_prefix} \
%if %{oracle}
	--with-oci8=shared \
%endif
	--with-pgsql=shared \
	--with-snmp=shared,%{_prefix} \
	--with-snmp=shared \
	--with-xslt-sablot=shared,%{_prefix} \
	--with-sablot-js=shared,%{_prefix} \
	--enable-ucd-snmp-hack \
	--with-unixODBC=shared \
	--enable-memory-limit \
	--enable-bcmath \
	--enable-shmop \
	--enable-calendar \
	--enable-dbx \
	--enable-dio \
	--enable-mcal \

                             I hope it helps, Aliet

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-28 10:28 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Some configure stuff is fixed now.
Also, what Openssl version is this?? Did you install it from
RPM or compile yourself? If RPM, did you install the development RPM too? (openssl-dev or something like that)

 [2003-04-28 12:37 UTC] alietss at yahoo dot com
Hi Snipper:
Hey I tested with latest snapshot and the error persists in the make....
Here my openssl and rpms related on RedHat 9.0
openssl-0.9.7a-5
openssl-devel-0.9.7a-5
openssl-perl-0.9.7a-5
krb5-libs-1.2.7-14
pam_krb5-1.60-1
krb5-server-1.2.7-14
krb5-workstation-1.2.7-14
krb5-devel-1.2.7-14
                            Regards
 [2003-04-28 18:05 UTC] sniper@php.net
This is some RH 9.0 bug with their openssl packages. 
Not PHP problem.

 [2003-04-29 08:16 UTC] hewei at ied dot org dot cn
can
export CPPFLAGS=-I/usr/kerberos/include
before ./configure
as a walkaround.

How about adding a 'with-kerberos-dir=DIR' option?
 [2003-04-29 16:59 UTC] alietss at yahoo dot com
Hi Guys:
Wow at last, I built it, all you have to do to workaround this on RedHat 9.0, if you're gonna build it on console type the command  export CPPFLAGS=-I/usr/kerberos/include, and with a spec file to build a RPMS add before the configure this CPPFLAGS="-I/usr/kerberos/include"; export CPPFLAGS. With this you are going to build it ok, Ah important don't build php with his mysql builtin support, this will fail on Redhat 9.0, rather build it with your extern mysql headers, ex --with-mysql=/usr.
Thank's hewei, it works
 [2003-09-18 01:20 UTC] phpb-23180 at crystalflame dot net
I can duplicate this bug on RedHat 9.0, with the following command line:

./configure --prefix=/usr/local/apache --with-apxs2=/usr/local/apache/bin/apxs --with-openssl=/usr

This command line results in build failures, due to the process not including /usr/kerberos/include in the proceedings.  However, the following change doesn't work either,

./configure ... --with-kerberos=/usr/kerberos

So on RedHat, it might be valuable to instruct autoconf to actually include the files that apparently don't depend on kerberos everywhere and probe to include that -- failing with a suggestion to use a (fixed) --with-kerberos= line if it can't detect it.
 [2003-09-18 03:29 UTC] sniper@php.net
I had the same problem, but fixed it by installing compatible versions of imap-devel and krb5-devel rpms. 

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Aug 19 13:01:29 2024 UTC