From: simnet at vsfs dot org Operating system: Ubuntu Linux 12.04 PHP version: 5.5.9 Package: PECL Bug Type: Bug Bug description:Patch to compile krb5 module --with-krb5kadm
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 bug report at https://bugs.php.net/bug.php?id=66782&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66782&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66782&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66782&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66782&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66782&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66782&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66782&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66782&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66782&r=support Expected behavior: https://bugs.php.net/fix.php?id=66782&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66782&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66782&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66782&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66782&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66782&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66782&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66782&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66782&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66782&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66782&r=mysqlcfg -- PECL development discussion Mailing List (http://pecl.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php