php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76903 Failures during make - lvalue required as decrement operand
Submitted: 2018-09-19 14:36 UTC Modified: 2018-12-11 00:34 UTC
Votes:5
Avg. Score:4.8 ± 0.4
Reproduced:5 of 5 (100.0%)
Same Version:3 (60.0%)
Same OS:1 (20.0%)
From: scott dot mosbrucker at doosan dot com Assigned: sixd (profile)
Status: Closed Package: OCI8 related
PHP Version: 7.3.0RC1 OS: RHEL 7.5
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: scott dot mosbrucker at doosan dot com
New email:
PHP Version: OS:

 

 [2018-09-19 14:36 UTC] scott dot mosbrucker at doosan dot com
Description:
------------
While executing - pecl install oci8, the configure completes but errors during the make section.

# pecl install oci8
Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client [autodetect] : instantclient,/usr/lib/oracle/11.1/client64/lib

...
running: make
/bin/sh /tmp/pear/temp/pear-build-rootj6FNIS/oci8-2.1.8/libtool --mode=compile cc  -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootj6FNIS/oci8-2.1.8/include -I/tmp/pear/temp/pear-build-rootj6FNIS/oci8-2.1.8/main -I/tmp/pear/temp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/11.1/client64  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/oci8/oci8.c -o oci8.lo
mkdir .libs
 cc -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootj6FNIS/oci8-2.1.8/include -I/tmp/pear/temp/pear-build-rootj6FNIS/oci8-2.1.8/main -I/tmp/pear/temp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/11.1/client64 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8.c  -fPIC -DPIC -o .libs/oci8.o
/tmp/pear/temp/oci8/oci8.c: In function ‘php_oci_column_hash_dtor’:
/tmp/pear/temp/oci8/oci8.c:1459:31: error: lvalue required as decrement operand
    GC_REFCOUNT(column->descid)--;
                               ^
/tmp/pear/temp/oci8/oci8.c: In function ‘php_oci_do_connect_ex’:
/tmp/pear/temp/oci8/oci8.c:1881:10: error: lvalue required as increment operand
          ++GC_REFCOUNT(connection->id);
          ^
/tmp/pear/temp/oci8/oci8.c:1891:10: error: lvalue required as increment operand
          ++GC_REFCOUNT(connection->id);
          ^
/tmp/pear/temp/oci8/oci8.c:1902:6: error: lvalue required as increment operand
      ++GC_REFCOUNT(connection->id);
      ^
/tmp/pear/temp/oci8/oci8.c:2054:4: error: lvalue required as increment operand
    ++GC_REFCOUNT(connection->id);
    ^
/tmp/pear/temp/oci8/oci8.c: In function ‘php_oci_column_to_zval’:
/tmp/pear/temp/oci8/oci8.c:2451:3: error: lvalue required as increment operand
   ++GC_REFCOUNT(column->stmtid);
   ^
/tmp/pear/temp/oci8/oci8.c:2495:4: error: lvalue required as increment operand
    ++GC_REFCOUNT(column->descid);
    ^
make: *** [oci8.lo] Error 1
ERROR: `make' failed


# php -v
PHP 7.3.0RC1 (cli) (built: Sep 17 2018 09:24:10) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.0RC1, Copyright (c) 1999-2018, by Zend Technologies
    with Xdebug v2.7.0alpha2-dev, Copyright (c) 2002-2018, by Derick Rethans



Expected result:
----------------
make completion without errors.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-09-20 08:44 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2018-10-30 15:10 UTC] sixd@php.net
-Assigned To: +Assigned To: sixd
 [2018-12-11 00:34 UTC] sixd@php.net
-Status: Verified +Status: Closed
 [2018-12-11 00:34 UTC] sixd@php.net
I just released PECL OCI8 2.2.0 that will install on PHP 7.0 - 7.3.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 06 17:01:27 2024 UTC