php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67113 FTBFS with PHP 5.6.0
Submitted: 2014-04-23 08:02 UTC Modified: 2014-12-30 10:42 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:0 (0.0%)
From: ondrej@php.net Assigned: johannes (profile)
Status: No Feedback Package: mysqlnd_ms (PECL)
PHP Version: 5.6.0beta1 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
47 - 35 = ?
Subscribe to this entry?

 
 [2014-04-23 08:02 UTC] ondrej@php.net
Description:
------------
The mysqlnd_ms package fails to build with PHP 5.6, the compile error is below.

Affects 1.5.2 and 1.6.0.

Expected result:
----------------
Compiled .so

Actual result:
--------------
libtool: compile:  cc -I. -I/tmp/buildd/php-mysqlnd-ms/php-mysqlnd-ms-1.6.0/mysqlnd_ms-1.6.0 -DPHP_ATOM_INC -I/tmp/buildd/php-mysqlnd-ms/php-mysqlnd-ms-1.6.0/obj-x86_64-linux-gnu/include -I/tmp/buildd/php-mysqlnd-ms/php-mysqlnd-ms-1.6.0/obj-x86_64-linux-gnu/main -I/tmp/buildd/php-mysqlnd-ms/php-mysqlnd-ms-1.6.0/mysqlnd_ms-1.6.0 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/libxml2 -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -c /tmp/buildd/php-mysqlnd-ms/php-mysqlnd-ms-1.6.0/mysqlnd_ms-1.6.0/php_mysqlnd_ms.c  -fPIC -DPIC -o .libs/php_mysqlnd_ms.o
/tmp/buildd/php-mysqlnd-ms/php-mysqlnd-ms-1.6.0/mysqlnd_ms-1.6.0/php_mysqlnd_ms.c: In function 'zif_mysqlnd_ms_get_last_gtid':
/tmp/buildd/php-mysqlnd-ms/php-mysqlnd-ms-1.6.0/mysqlnd_ms-1.6.0/php_mysqlnd_ms.c:416:3: error: too few arguments to function 'ms_orig_mysqlnd_conn_methods->store_result'
   if (!(res = MS_CALL_ORIGINAL_CONN_DATA_METHOD(store_result)(conn TSRMLS_CC))) {
   ^
/tmp/buildd/php-mysqlnd-ms/php-mysqlnd-ms-1.6.0/mysqlnd_ms-1.6.0/php_mysqlnd_ms.c: In function 'mysqlnd_ms_dump_fabric_hosts_cb':
/tmp/buildd/php-mysqlnd-ms/php-mysqlnd-ms-1.6.0/mysqlnd_ms-1.6.0/php_mysqlnd_ms.c:804:2: warning: passing argument 4 of 'add_assoc_string_ex' discards 'const' qualifier from pointer target type [enabled by default]
  add_assoc_string(item, "hostname", hostname, 1);
  ^
In file included from /usr/include/php5/main/php.h:40:0,
                 from /tmp/buildd/php-mysqlnd-ms/php-mysqlnd-ms-1.6.0/mysqlnd_ms-1.6.0/php_mysqlnd_ms.c:26:
/usr/include/php5/Zend/zend_API.h:384:14: note: expected 'char *' but argument is of type 'const char *'
 ZEND_API int add_assoc_string_ex(zval *arg, const char *key, uint key_len, char *str, int duplicate);
              ^
make[1]: *** [php_mysqlnd_ms.lo] Error 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-06 23:45 UTC] tyrael@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: johannes
 [2014-05-06 23:45 UTC] tyrael@php.net
johannes did some recent work on it (http://svn.php.net/viewvc?view=revision&revision=333349), could you check out if the current svn trunk(http://svn.php.net/viewvc/pecl/mysqlnd_ms/trunk/
) solves the build issue?
 [2014-12-30 10:42 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2015-03-09 17:28 UTC] alanivey at gmail dot com
This is not testing in production, but this patch might work for 1.5.2 on PHP 5.6.x: https://github.com/Homebrew/homebrew-php/blob/840a1467a2e25adc62eee86efd7231cba95f12cc/Formula/php56-mysqlnd_ms.rb#L33-124
 [2015-08-06 14:38 UTC] roi dot zearreta at ext dot mpsa dot com
Same problem here. Compiling mysqlnd 1.5.2 and 1.6.0 fails with PHP 5.6.x.

Even after patching with linked "homebrew-php" patch, it apparently builds OK, but trying to test the build, it raises:

PHP Warning:  PHP Startup: Unable to load dynamic library '../mysqlnd_ms-1.5.2/modules/mysqlnd_ms.so' - ../mysqlnd_ms-1.5.2/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0

My PHP version is 5.6.8. My GCC is 4.4.7. My libc is 2.11.3.

Is the development of mysqlnd_ms abandoned? Any fix to get it working on PHP 5.6?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 06:01:28 2024 UTC