php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77309 installation error : error make file
Submitted: 2018-12-17 10:25 UTC Modified: 2021-11-21 04:22 UTC
Votes:4
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:3 (75.0%)
From: anakrantausembilanlapan at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: ibm_db2 (PECL)
PHP Version: 7.3.0 OS: centos7/redhat7
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-12-17 10:25 UTC] anakrantausembilanlapan at gmail dot com
Description:
------------
/opt/ibm/db2/dsdriver/include/sqlcli.h:874:0: warning: "ODBCVER" redefined [enabled by default]
 #define ODBCVER 0x0380
 ^
In file included from /usr/include/php/Zend/zend_config.h:1:0,
                 from /usr/include/php/Zend/zend_portability.h:43,
                 from /usr/include/php/Zend/zend_types.h:25,
                 from /usr/include/php/Zend/zend.h:27,
                 from /usr/include/php/main/php.h:33,
                 from /var/tmp/ibm_db2/ibm_db2.c:30:
/usr/include/php/main/../main/php_config.h:2267:0: note: this is the location of the previous definition
 #define ODBCVER 0x0350
 ^
/var/tmp/ibm_db2/ibm_db2.c:130:0: warning: "ZEND_GET_TYPE" redefined [enabled by default]
 #define ZEND_GET_TYPE(data) (data)->u1.v.type
 ^
In file included from /usr/include/php/Zend/zend_compile.h:841:0,
                 from /usr/include/php/Zend/zend_modules.h:24,
                 from /usr/include/php/Zend/zend_API.h:25,
                 from /usr/include/php/main/php.h:37,
                 from /var/tmp/ibm_db2/ibm_db2.c:30:
/usr/include/php/Zend/zend_vm_opcodes.h:270:0: note: this is the location of the previous definition
 #define ZEND_GET_TYPE                        193
 ^
/var/tmp/ibm_db2/ibm_db2.c: In function '_php_db2_assign_options':
/var/tmp/ibm_db2/ibm_db2.c:1379:59: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                                     SQL_ATTR_CURSOR_TYPE, (SQLPOINTER)vParam,
                                                           ^
/var/tmp/ibm_db2/ibm_db2.c:1388:59: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                                     SQL_ATTR_CURSOR_TYPE, (SQLPOINTER)vParam, /* was (SQLPOINTER)&vParam */
                                                           ^
/var/tmp/ibm_db2/ibm_db2.c:1400:59: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                                     SQL_ATTR_CURSOR_TYPE, (SQLPOINTER)vParam,
                                                           ^
/var/tmp/ibm_db2/ibm_db2.c:1408:59: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                                     SQL_ATTR_CURSOR_TYPE, (SQLPOINTER)vParam, /* was (SQLPOINTER)&vParam */
                                                           ^
/var/tmp/ibm_db2/ibm_db2.c:1437:61: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                                 SQL_ATTR_ROWCOUNT_PREFETCH, (SQLPOINTER)vParam,
                                                             ^
/var/tmp/ibm_db2/ibm_db2.c:1446:61: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                                 SQL_ATTR_ROWCOUNT_PREFETCH, (SQLPOINTER)vParam, /* was (SQLPOINTER)&vParam */
                                                             ^
/var/tmp/ibm_db2/ibm_db2.c:1458:61: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                                 SQL_ATTR_ROWCOUNT_PREFETCH, (SQLPOINTER)vParam,
                                                             ^
/var/tmp/ibm_db2/ibm_db2.c:1466:61: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                                 SQL_ATTR_ROWCOUNT_PREFETCH, (SQLPOINTER)vParam, /* was (SQLPOINTER)&vParam */
                                                             ^
/var/tmp/ibm_db2/ibm_db2.c:1575:104: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                     rc = SQLSetConnectAttr((SQLHDBC)((conn_handle*)handle)->hdbc, SQL_ATTR_AUTOCOMMIT, (SQLPOINTER)pvParam, SQL_IS_INTEGER);
                                                                                                        ^
/var/tmp/ibm_db2/ibm_db2.c:1587:104: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                     rc = SQLSetConnectAttr((SQLHDBC)((conn_handle*)handle)->hdbc, SQL_ATTR_AUTOCOMMIT, (SQLPOINTER)pvParam, SQL_IS_INTEGER);
                                                                                                        ^
/var/tmp/ibm_db2/ibm_db2.c:1701:103: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                 rc = SQLSetConnectAttr((SQLHDBC)((conn_handle*)handle)->hdbc, SQL_ATTR_TXN_ISOLATION, (SQLPOINTER)pvParam, SQL_IS_INTEGER);
                                                                                                       ^
/var/tmp/ibm_db2/ibm_db2.c:1725:104: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                 rc = SQLSetConnectAttr((SQLHDBC)((conn_handle*)handle)->hdbc, SQL_ATTR_DBC_SYS_NAMING, (SQLPOINTER)pvParam, SQL_IS_INTEGER);
                                                                                                        ^
/var/tmp/ibm_db2/ibm_db2.c:1799:98: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                 rc = SQLSetConnectAttr((SQLHDBC)((conn_handle*)handle)->hdbc, SQL_ATTR_DATE_FMT, (SQLPOINTER)pvParam, SQL_IS_INTEGER);
                                                                                                  ^
/var/tmp/ibm_db2/ibm_db2.c:1824:98: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                 rc = SQLSetConnectAttr((SQLHDBC)((conn_handle*)handle)->hdbc, SQL_ATTR_DATE_SEP, (SQLPOINTER)pvParam, SQL_IS_INTEGER);
                                                                                                  ^
/var/tmp/ibm_db2/ibm_db2.c:1847:98: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                 rc = SQLSetConnectAttr((SQLHDBC)((conn_handle*)handle)->hdbc, SQL_ATTR_TIME_FMT, (SQLPOINTER)pvParam, SQL_IS_INTEGER);
                                                                                                  ^
/var/tmp/ibm_db2/ibm_db2.c:1870:98: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                 rc = SQLSetConnectAttr((SQLHDBC)((conn_handle*)handle)->hdbc, SQL_ATTR_TIME_SEP, (SQLPOINTER)pvParam, SQL_IS_INTEGER);
                                                                                                  ^
/var/tmp/ibm_db2/ibm_db2.c:1889:101: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                 rc = SQLSetConnectAttr((SQLHDBC)((conn_handle*)handle)->hdbc, SQL_ATTR_DECIMAL_SEP, (SQLPOINTER)pvParam, SQL_IS_INTEGER);
                                                                                                     ^
/var/tmp/ibm_db2/ibm_db2.c:2015:52: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                         SQL_ATTR_DEFERRED_PREPARE, (SQLPOINTER)pvParam,
                                                    ^
/var/tmp/ibm_db2/ibm_db2.c:2025:52: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                         SQL_ATTR_DEFERRED_PREPARE, (SQLPOINTER)pvParam,
                                                    ^
/var/tmp/ibm_db2/ibm_db2.c: In function '_php_db2_connect_helper':
/var/tmp/ibm_db2/ibm_db2.c:2756:78: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         rc = SQLSetConnectAttr((SQLHDBC)conn_res->hdbc, SQL_ATTR_AUTOCOMMIT, (SQLPOINTER)(conn_res->auto_commit), SQL_IS_INTEGER);
                                                                              ^
/var/tmp/ibm_db2/ibm_db2.c:2897:44: error: lvalue required as left operand of assignment
             GC_REFCOUNT(&newPersistentRes) = 1;
                                            ^
/var/tmp/ibm_db2/ibm_db2.c: In function 'zif_db2_autocommit':
/var/tmp/ibm_db2/ibm_db2.c:3115:82: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
             rc = SQLSetConnectAttr((SQLHDBC)conn_res->hdbc, SQL_ATTR_AUTOCOMMIT, (SQLPOINTER)autocommit, SQL_IS_INTEGER);
                                                                                  ^
/var/tmp/ibm_db2/ibm_db2.c: In function 'zif_db2_execute':
/var/tmp/ibm_db2/ibm_db2.c:5106:108: error: 'IS_TYPE_COPYABLE' undeclared (first use in this function)
     if (parameters_array && Z_TYPE_P(parameters_array) == IS_ARRAY && (Z_TYPE_FLAGS_P(parameters_array) & (IS_TYPE_COPYABLE & !IS_TYPE_REFCOUNTED))) {
                                                                                                            ^
/var/tmp/ibm_db2/ibm_db2.c:5106:108: note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/ibm_db2/ibm_db2.c: In function 'zif_db2_execute_many':
/var/tmp/ibm_db2/ibm_db2.c:7820:78: error: 'IS_TYPE_COPYABLE' undeclared (first use in this function)
     if (params && Z_TYPE_P(params) == IS_ARRAY && (Z_TYPE_FLAGS_P(params) & (IS_TYPE_COPYABLE & !IS_TYPE_REFCOUNTED))) {
                                                                              ^
make: *** [ibm_db2.lo] Error 1
ERROR: `make' failed



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-05-08 07:32 UTC] vnkbabu@php.net
Hi,
  Can you please let us know what is the PHP version you are using to compile the ibm_db2 module.
 [2021-11-08 15:45 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-11-08 15:45 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1] and the latest ibm_db2 (2.1.5)?

[1] <https://www.php.net/supported-versions.php>
 [2021-11-21 04:22 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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 09:01:30 2024 UTC