Problems with kerberos on CentOS 5.x
| From: | Marten Lehmann | Date: | Thu, 05 Mar 2009 18:55:34 +0000 |
| Subject: | Problems with kerberos on CentOS 5.x | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-19631@lists.php.net to get a copy of this message | ||
Hello,
I'm trying to build php 5.2.9 on 64 bit CentOS 5.x with
--with-imap
--with-imap-ssl
--with-kerberos
This worked fine on CentOS 4, but on CentOS 5 I always get:
configure:
[...]
checking for IMAP support... yes
checking for IMAP Kerberos support... yes
checking for IMAP SSL support... yes
[...]
make:
[...]
/bin/sh /usr/src/redhat/BUILD/php-5.2.9/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/imap/ -I/usr/src/redhat/BUILD/php-5.2.9/ext/imap/ -DPHP_ATOM_INC -I/usr/src/redhat/BUILD/php-5.2.9/include -I/usr/src/redhat/BUILD/php-5.2.9/main -I/usr/src/redhat/BUILD/php-5.2.9 -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/src/redhat/BUILD/php-5.2.9/ext/date/lib -I/usr/include/freetype2 -I/usr/include/ImageMagick -I/vrmd/webserver/imap/include -I/usr/src/redhat/BUILD/php-5.2.9/ext/mbstring/oniguruma -I/usr/src/redhat/BUILD/php-5.2.9/ext/mbstring/libmbfl -I/usr/src/redhat/BUILD/php-5.2.9/ext/mbstring/libmbfl/mbfl -I/vrmd/webserver/mhash/include -I/usr/include/mysql -I/usr/include/pspell -I/usr/src/redhat/BUILD/php-5.2.9/TSRM
-I/usr/src/redhat/BUILD/php-5.2.9/Zend -I/usr/include -I/usr/include/gssrpc -I/usr/include/gssapi -I/usr/include/gssglue -I/usr/include/gssglue/gssapi -c /usr/src/redhat/BUILD/php-5.2.9/ext/imap/php_imap.c -o ext/imap/php_imap.lo /usr/src/redhat/BUILD/php-5.2.9/ext/imap/php_imap.c: In function 'zm_startup_imap': /usr/src/redhat/BUILD/php-5.2.9/ext/imap/php_imap.c:477: error: 'auth_gss' undeclared (first use in this function) /usr/src/redhat/BUILD/php-5.2.9/ext/imap/php_imap.c:477: error: (Each undeclared identifier is reported only once /usr/src/redhat/BUILD/php-5.2.9/ext/imap/php_imap.c:477: error: for each function it appears in.)make: *** [ext/imap/php_imap.lo] Error 1 I tracked it down to this part in php_imap.c: #if HAVE_IMAP_KRB && defined(HAVE_IMAP_AUTH_GSS)
auth_link(&auth_gss); /* link in the gss authenticator */#endif For some reason this constant is defined in main/php_config.h (created by configure), but it seems, that the required header files aren't included. I passed several paths of gss includes to configure, but it didn't help: CFLAGS="-I/usr/include/gssrpc -I/usr/include/gssapi -I/usr/include/gssglue -I/usr/include/gssglue/gssapi" ./configure [...] Building php without --with-kerberos works fine. libgssapi-devel is installed, openssl-devel as well. Any ideas? Kind regards Marten