php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69093 Compile failure against PHP 5.6
Submitted: 2015-02-20 15:49 UTC Modified: 2017-10-24 04:27 UTC
Votes:17
Avg. Score:4.2 ± 1.0
Reproduced:17 of 17 (100.0%)
Same Version:12 (70.6%)
Same OS:8 (47.1%)
From: vink at interstroom dot nl Assigned:
Status: Suspended Package: mysqlnd_ms (PECL)
PHP Version: 5.6.6 OS: Debian GNU/Linux 7.8
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-02-20 15:49 UTC] vink at interstroom dot nl
Description:
------------
Compiling this module gives an error:

/tmp/pear/temp/mysqlnd_ms/php_mysqlnd_ms.c: In function ‘zval_to_mysqlnd_inherited’:
/tmp/pear/temp/mysqlnd_ms/php_mysqlnd_ms.c:316:2: error: too few arguments to function ‘zval_to_mysqlnd’
In file included from /tmp/pear/temp/mysqlnd_ms/mysqlnd_ms.h:50:0,
                 from /tmp/pear/temp/mysqlnd_ms/php_mysqlnd_ms.c:34:

This error is present in both versions 1.5.2 and 1.6.0. 

Actual result:
--------------
pecl install --force  mysqlnd_ms-1.6.0
downloading mysqlnd_ms-1.6.0.tgz ...
Starting to download mysqlnd_ms-1.6.0.tgz (410,453 bytes)
....................................................................................done: 410,453 bytes
warning : bad md5sum for file /tmp/pear/temp/mysqlnd_ms/package.xml
38 source files, building
running: phpize
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
building in /tmp/pear/temp/pear-build-rootMmnG2A/mysqlnd_ms-1.6.0
running: /tmp/pear/temp/mysqlnd_ms/configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable mysqlnd_ms support... yes, shared
checking whether to enable table filter in mysqlnd_ms... no
checking whether to query caching through mysqlnd_qc in mysqlnd_ms... no
checking libxml2 install dir... no
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... yes
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/bash /tmp/pear/temp/pear-build-rootMmnG2A/mysqlnd_ms-1.6.0/libtool --mode=compile cc  -I. -I/tmp/pear/temp/mysqlnd_ms -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootMmnG2A/mysqlnd_ms-1.6.0/include -I/tmp/pear/temp/pear-build-rootMmnG2A/mysqlnd_ms-1.6.0/main -I/tmp/pear/temp/mysqlnd_ms -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/libxml2  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/mysqlnd_ms/php_mysqlnd_ms.c -o php_mysqlnd_ms.lo
mkdir .libs
 cc -I. -I/tmp/pear/temp/mysqlnd_ms -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootMmnG2A/mysqlnd_ms-1.6.0/include -I/tmp/pear/temp/pear-build-rootMmnG2A/mysqlnd_ms-1.6.0/main -I/tmp/pear/temp/mysqlnd_ms -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/libxml2 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/mysqlnd_ms/php_mysqlnd_ms.c  -fPIC -DPIC -o .libs/php_mysqlnd_ms.o
/tmp/pear/temp/mysqlnd_ms/php_mysqlnd_ms.c: In function ‘zval_to_mysqlnd_inherited’:
/tmp/pear/temp/mysqlnd_ms/php_mysqlnd_ms.c:316:2: error: too few arguments to function ‘zval_to_mysqlnd’
In file included from /tmp/pear/temp/mysqlnd_ms/mysqlnd_ms.h:50:0,
                 from /tmp/pear/temp/mysqlnd_ms/php_mysqlnd_ms.c:34:
/usr/local/include/php/ext/mysqlnd/mysqlnd_reverse_api.h:37:18: note: declared here
/tmp/pear/temp/mysqlnd_ms/php_mysqlnd_ms.c: In function ‘zif_mysqlnd_ms_get_last_gtid’:
/tmp/pear/temp/mysqlnd_ms/php_mysqlnd_ms.c:416:3: error: too few arguments to function ‘ms_orig_mysqlnd_conn_methods->store_result’
/tmp/pear/temp/mysqlnd_ms/php_mysqlnd_ms.c: In function ‘mysqlnd_ms_fabric_select_servers’:
/tmp/pear/temp/mysqlnd_ms/php_mysqlnd_ms.c:679:60: error: macro "mysqlnd_init" requires 2 arguments, but only 1 given
/tmp/pear/temp/mysqlnd_ms/php_mysqlnd_ms.c:679:19: error: ‘mysqlnd_init’ undeclared (first use in this function)
/tmp/pear/temp/mysqlnd_ms/php_mysqlnd_ms.c:679:19: note: each undeclared identifier is reported only once for each function it appears in
/tmp/pear/temp/mysqlnd_ms/php_mysqlnd_ms.c: In function ‘mysqlnd_ms_dump_fabric_hosts_cb’:
/tmp/pear/temp/mysqlnd_ms/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]
In file included from /usr/local/include/php/main/php.h:39:0,
                 from /tmp/pear/temp/mysqlnd_ms/php_mysqlnd_ms.c:26:
/usr/local/include/php/Zend/zend_API.h:384:14: note: expected ‘char *’ but argument is of type ‘const char *’
make: *** [php_mysqlnd_ms.lo] Error 1
ERROR: `make' failed


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-03-06 12:17 UTC] tyrael@php.net
I've already fixed this in the repo, but no release was made since then:
https://bugs.php.net/bug.php?id=68519
You can package/install from the fixed source until we get a release with the fix.
 [2016-07-07 06:02 UTC] st41ker at yandex dot ru
Hello,

this problem exists almost a year. Plugin fails to compile with recent PHP 5.6.22 also.

What should be done to fix this?
 [2017-10-24 04:27 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-10-24 04:27 UTC] kalle@php.net
I'm gonna suspend this report as the mysqlnd_ms had not a release since 2013 or active commit activity since then, if activity comes back to this package, it should be re-opened
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 22:01:28 2019 UTC