php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75274 Compilation fails on PHP 5.6 with 2.0.0 of ibm_db2
Submitted: 2017-09-28 11:26 UTC Modified: 2017-10-17 16:55 UTC
From: james at asgrim dot com Assigned: vnkbabu (profile)
Status: Closed Package: ibm_db2 (PECL)
PHP Version: 5.6.31 OS: Ubuntu 14.04.5 LTS
Private report: No CVE-ID: None
 [2017-09-28 11:26 UTC] james at asgrim dot com
Description:
------------
Trying to install ibm_db2 on PHP 5.6 fails as of 2.0.0.

Using `pecl install ibm_db2`

Build log here: https://gist.github.com/asgrim/fa5b98190daccfc9fe0413e02909487b

I believe the commit that broke was: http://git.php.net/?p=pecl/database/ibm_db2.git;a=commit;h=df913feb4dff56366ac4656b0bb6b39200794bde




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-09-28 11:31 UTC] james at asgrim dot com
Further platform info:

$ php --version
PHP 5.6.31 (cli) (built: Jul 22 2017 11:52:17) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans

If it helps, we're using a Travis box on Trusty distro. I've pinned our build to 1.9.9 for now as a workaround.
 [2017-09-29 12:54 UTC] vnkbabu@php.net
It looks like this error is initiated because of some zend issue. We are contacting zend community to get clarification on this issue.

/home/travis/.phpenv/versions/5.6.31/include/php/Zend/../TSRM/TSRM.h:164:57: error: ‘tsrm_ls’ undeclared (first use in this function)

 #define TSRMG(id, type, element) (((type) (*((void ***) tsrm_ls))[TSRM_UNSHUFFLE_RSRC_ID(id)])->element)

PS: I tried compiling in my linux machine it compiled properly.
 [2017-10-13 13:31 UTC] vnkbabu@php.net
We have released a new version which fixed the compilation issue.
 [2017-10-16 14:44 UTC] james at asgrim dot com
Can confirm that 2.0.1 compiles as expected. Thanks for the quick fix!
 [2017-10-17 16:55 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: vnkbabu
 [2017-10-17 16:55 UTC] cmb@php.net
Venkatesh, you can configure with --enable-maintainer-zts on Linux to catch
those issues.

Anyhow, closing since the bug has been fixed.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 22:01:29 2019 UTC