ID: 40703 User updated by: sietse at wizdom dot nu Reported By: sietse at wizdom dot nu Status: Open Bug Type: XMLRPC-EPI related Operating System: All PHP Version: 5.2.1 New Comment:
MySQl Bug #26818 Previous Comments: ------------------------------------------------------------------------ [2007-03-03 09:18:23] sietse at wizdom dot nu Description: ------------ Hi, I was compiling php 5.2.1 against mysql 5.2.3 with embedded mysqli support. I came across a conflict when linking libphp5.so. Seems that both MySQL's NDB (include/base64.h) and PHP's XMLRPC (ext/xmlrpc/libxmlrpc/base64.h) both define internal base64_encode() and base64_decode() functions. I think gcc4.x will be able to fix this, as you have the ability to set visibility of internal functions. But good practice is always to name your internal functions as explicitely and descriptively as possible. I have opened the same bug @ MySQL. They should name there internal functions more explicitely too. To quickly patch, add: #define base64_encode base64_encode_bla #define base64_decode base64_decode_bla to either MySQL's include/base64.h OR PHP's ext/xmlrpc/libxmlrpc/base64.h Reproduce code: --------------- Compile php5.2.1 with mysqli-embedded support against Mysql 5.2.3 with ndb plugin. Expected result: ---------------- succesful compile and linking Actual result: -------------- linker error message, conflicting symbols. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40703&edit=1
