php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66782 [KRB5] Patch to compile krb5 module --with-krb5kadm
Submitted: 2014-02-26 18:13 UTC Modified: 2017-10-24 08:56 UTC
Votes:2
Avg. Score:3.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: simnet at vsfs dot org Assigned:
Status: Open Package: PECL (PECL)
PHP Version: 5.5.9 OS: Ubuntu Linux 12.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-02-26 18:13 UTC] 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.

Patches

krb5kadm.patch (last revision 2014-02-26 18:13 UTC by simnet at vsfs dot org)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-24 08:56 UTC] kalle@php.net
-Summary: Patch to compile krb5 module --with-krb5kadm +Summary: [KRB5] Patch to compile krb5 module --with-krb5kadm
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 03:01:25 2019 UTC