ID: 31101
Updated by: [EMAIL PROTECTED]
-Summary: configure does not put Kerberos header location in
Makefile
Reported By: phpbr at ecartz dot com
-Status: Assigned
+Status: Feedback
-Bug Type: Compile Failure
+Bug Type: OpenSSL related
Operating System: *
PHP Version: 4CVS, 5CVS (2004-12-23)
Assigned To: sniper
New Comment:
If you have openssl properly installed (if via some rpm, also the
-devel rpm installed!) you should have it in pkg-config. What do these
commands output for you:
# pkg-config --libs openssl
and
pkg-config --cflags-only-I openssl
Previous Comments:
------------------------------------------------------------------------
[2004-12-23 08:38:28] phpbr at ecartz dot com
Red Hat has suggested configure.in (may need to be
ext/openssl/config0.m4 in your case) script changes for this at
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=82369
Note: if you want to duplicate this, you would first need to compile
OpenSSL with Kerberos support.
In the meantime, for anyone else who might encounter this problem, the
indicated work around seems to be to run
export CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
before running make (at least the first time; if you run make multiple
times, it should still be there; you can check with
echo $CPPFLAGS
; it should return something that contains -I/usr/kerberos/include).
------------------------------------------------------------------------
[2004-12-23 08:37:48] phpbr at ecartz dot com
I took it another step down to
./configure --with-openssl
make clean && make
and still get the same error (even without the --with-kerberos).
I read http://us4.php.net/function.fsockopen to indicate that
--with-openssl is needed for full functionality of fsockopen in PHP
4.3. At least that's what I'm guessing "if you have compiled in
OpenSSL support" means.
It seems to me that the current configure script only checks kerberos
in relation to IMAP (the kerberos checking code is inside the IMAP
checking code). However, OpenSSL also seems to require kerberos, at
least in my install. For this reason, I would like it if the
--with-kerberos added the necessary -I/usr/kerberos/include regardless
of whether --with-imap is included. I am not sure how many others
would be affected by this.
------------------------------------------------------------------------
[2004-12-15 19:41:23] phpbr at ecartz dot com
Description:
------------
I ran configure with --with-kerberos=/usr/kerberos which correctly
added the proper -L switch (see bug 6211) but failed to add
-I/usr/kerberos/include to the INCLUDES assignment. I originally saw
this in 4.3.9 and upgraded to 4.3.10 to see if it was fixed. Note that
this is a different bug from 6211 (albeit similar). Note further that
this would only happen if /usr/kerberos/include is not in the default
include path for the compiler. Not sure how common this is.
Reproduce code:
---------------
./configure --with-kerberos=/usr/kerberos # I had more --with-*, but I
don't think that they matter here
# I will try to verify this later
make
Expected result:
----------------
The configure script should append -I/usr/kerberos/include to the
INCLUDES assignment (around line 85 of my Makefile) when it produces
Makefile, e.g.
INCLUDES = -I$(top_builddir)/Zend -I/usr/kerberos/include
Manually adding -I/usr/kerberos/include to the EXTRA_INCLUDES = line in
Makefile allows the compile to proceed.
Actual result:
--------------
make throws an error about not being able to find krb5.h
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31101&edit=1