Bug #66782 [Opn->Fbk]: [KRB5] Patch to compile krb5 module --with-krb5kadm
| From: | cmb@php.net | Date: | Mon, 16 Aug 2021 15:22:19 +0000 |
| Subject: | Bug #66782 [Opn->Fbk]: [KRB5] Patch to compile krb5 module --with-krb5kadm | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-17423@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66782&edit=1
ID: 66782
Updated by: cmb@php.net
Reported by: simnet at vsfs dot org
Summary: [KRB5] Patch to compile krb5 module --with-krb5kadm
-Status: Open
+Status: Feedback
Type: Bug
Package: PECL
Operating System: Ubuntu Linux 12.04
PHP Version: 5.5.9
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
The respective code has been improved[1] long ago; does that work
for you, too?
[1] <https://github.com/php/pecl-authentication-krb5/commit/53c6ca0412a334c8d0853bb6e31389f98f0815a4>
Previous Comments:
------------------------------------------------------------------------
[2014-02-26 18:13:00] simnet at vsfs dot org
Description:
------------
The root problem is both MIT Kerberos and Zend define a constant named SUCCESS in an enum when
compiling --with-krb5kadm. This results in a collision when compiling.
Test script:
---------------
php_krb5_kadm.h has a broken workaround for this, but still results in following compiler error:
$ phpize
$ ./configure --with-krb5kadm
$ make
/usr/include/gssrpc/rpc_msg.h:66:2: error: redeclaration of enumerator 'SUCCESS'
/usr/include/php5/Zend/zend.h:282:3: note: previous definition of 'SUCCESS' was here
Expected result:
----------------
krb5 compiles OK.
Actual result:
--------------
krb5 doesn't compile. Using the attached file, I was able to compile and deploy the krb5
module. My only concern is whether my patch is too universal and may fail a regression test I'm
not thinking of. I will test some code with this module and post to this bug if something breaks.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66782&edit=1