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: -
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:
Status: Open Package: ibm_db2 (PECL)
PHP Version: 7.3.0 OS: centos7/redhat7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: anakrantausembilanlapan at gmail dot com
New email:
PHP Version: OS:

 

 [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.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Sep 16 09:01:26 2019 UTC