#40703 [Opn->Csd]: PHP 5.2.1 - MySQL 5.2.3 - Internal Function Conflict in base64.h
| From: | iliaa@php.net | Date: | Sun, 04 Mar 2007 18:24:59 +0000 |
| Subject: | #40703 [Opn->Csd]: PHP 5.2.1 - MySQL 5.2.3 - Internal Function Conflict in base64.h | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109874@lists.php.net to get a copy of this message | ||
ID: 40703
Updated by: iliaa@php.net
Reported By: sietse at wizdom dot nu
-Status: Open
+Status: Closed
Bug Type: XMLRPC-EPI related
Operating System: All
PHP Version: 5.2.1
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2007-03-03 12:12:56] sietse at wizdom dot nu
MySQl Bug #26818
------------------------------------------------------------------------
[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