Edit report at https://bugs.php.net/bug.php?id=66782&edit=1

 ID:                 66782
 User updated by:    simnet at vsfs dot org
 Reported by:        simnet at vsfs dot org
 Summary:            [KRB5] Patch to compile krb5 module --with-krb5kadm
-Status:             Feedback
+Status:             Assigned
 Type:               Bug
 Package:            PECL
 Operating System:   Ubuntu Linux 12.04
 PHP Version:        5.5.9
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Looks good in theory and from what I can recall. As you can see from the age of 
the ticket, it's been many years since I've needed to use this plugin. If it 
works for you, go ahead and close the ticket.


Previous Comments:
------------------------------------------------------------------------
[2021-08-16 15:22:19] c...@php.net

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>

------------------------------------------------------------------------
[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

-- 
PECL development discussion Mailing List (https://pecl.php.net/)
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to