Bug #73214 [Opn->Csd]: krb5-config usage inadvertently skipped

From: Date: Sat, 26 Nov 2016 23:55:57 +0000
Subject: Bug #73214 [Opn->Csd]: krb5-config usage inadvertently skipped
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205655@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73214&edit=1 ID: 73214 Updated by: stas@php.net Reported by: michael at orlitzky dot com Summary: krb5-config usage inadvertently skipped -Status: Open +Status: Closed Type: Bug Package: *Compile Issues PHP Version: 7.0.11 -Assigned To: +Assigned To: stas Block user comment: N Private report: N New Comment: The fix for this bug has been committed. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2016-09-30 21:29:29] michael at orlitzky dot com Description: ------------ One of our ./configure options is --with-kerberos=<DIR>. The value of <DIR> gets stored in the PHP_KERBEROS variable if a directory is supplied. There is a function in aclocal.m4: AC_DEFUN([PHP_SETUP_KERBEROS],[ ... dnl If krb5-config is found try using it if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then KERBEROS_LIBS=$KRB5_CONFIG --libs gssapi KERBEROS_CFLAGS=$KRB5_CONFIG --cflags gssapi ... The krb5-config program is the preferred way to figure out which libs/flags are needed to build with kerberos support, because it works with both the MIT and Heimdal implementations. However, if you look carefully at the test, it's checking the value of <DIR> against "yes". Naturally that fails; instead it should be test "$PHP_KERBEROS" != "no" Doing so prevents the MIT lib names from getting appended when the Heimdal implementation is used. In other words, krb5-config works, it just isn't getting used. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73214&edit=1

« previous php.bugs (#205655) next »