php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74763 igbinary v2.0.1 fails with php-7.1.6
Submitted: 2017-06-15 15:24 UTC Modified: 2017-10-20 03:25 UTC
From: grossolini@php.net Assigned: tandre (profile)
Status: Closed Package: igbinary (PECL)
PHP Version: 7.1.6 OS: Debian GNU/Linux 8.8 (jessie)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: grossolini@php.net
New email:
PHP Version: OS:

 

 [2017-06-15 15:24 UTC] grossolini@php.net
Description:
------------
Using either gcc version 4.9.2 (Debian 4.9.2-10) or gcc version 6.1.0 (GCC).

Build fails with the following error:
main/internal_functions.c:107:2: error: ‘phpext_igbinary_ptr’ undeclared here (not in a function)

All the sources are stored under /usr/local/src

Test script:
---------------
Here is my build script (I tried slimming it down, but then the build worked):
cd /usr/local/src/php-7.1.6
rm -R ext/igbinary 2>/dev/null ; mkdir ext/igbinary ; cp -R ../igbinary-2.0.1/* ext/igbinary/
rm -R ext/redis 2>/dev/null ; mkdir ext/redis ; cp -R ../redis-3.1.2/* ext/redis/
cd /usr/local/src/php-7.1.6
rm configure ; ./buildconf --force ; make clean
./configure --prefix=/usr/local/php71 --disable-all --enable-igbinary --enable-redis --disable-redis-session --enable-redis-igbinary
make


Expected result:
----------------
Build complete.
Don't forget to run 'make test'.

Actual result:
--------------
/usr/local/src/php-7.1.6/Zend/zend_execute.c: In function ‘zend_check_arg_type’:
/usr/local/src/php-7.1.6/Zend/zend_execute.c:958:3: warning: ‘ce’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   zend_verify_arg_error(zf, cur_arg_info, arg_num, ce, arg);
   ^
/usr/local/src/php-7.1.6/Zend/zend_execute.c:947:20: note: ‘ce’ was declared here
  zend_class_entry *ce;
                    ^
/bin/bash /usr/local/src/php-7.1.6/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Imain/ -I/usr/local/src/php-7.1.6/main/ -DPHP_ATOM_INC -I/usr/local/src/php-7.1.6/include -I/usr/local/src/php-7.1.6/main -I/usr/local/src/php-7.1.6 -I/usr/local/src/php-7.1.6/ext/date/lib -I/usr/local/src/php-7.1.6/ext -I/usr/local/php71/include/php/ext/date/lib -I/usr/local/src/php-7.1.6/TSRM -I/usr/local/src/php-7.1.6/Zend  -Wall  -g -O2 -fvisibility=hidden -DZEND_SIGNALS   -c main/internal_functions_cli.c -o main/internal_functions_cli.lo
main/internal_functions_cli.c:42:2: error: ‘phpext_igbinary_ptr’ undeclared here (not in a function)
  phpext_igbinary_ptr,
  ^
Makefile:781: recipe for target 'main/internal_functions_cli.lo' failed
make: *** [main/internal_functions_cli.lo] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-09-23 23:52 UTC] tandre@php.net
This should be fixed in the 2.0.3+ releases, which are currently available on github but not yet on pecl.

See https://github.com/igbinary/igbinary/pull/125 ("Fixes main/internal_functions_cli.c ... error: ‘phpext_igbinary_ptr’")

https://github.com/igbinary/igbinary/compare/2.0.2...2.0.3
 [2017-10-20 03:25 UTC] tandre@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: tandre
 [2017-10-20 03:25 UTC] tandre@php.net
This should be fixed in the 2.0.3+ releases, and I haven't heard anything new. Closing this.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 12:01:29 2025 UTC