Skip to content

Instantly share code, notes, and snippets.

@asgrim

asgrim/log.txt Secret

Created Sep 28, 2017
Embed
What would you like to do?
> echo "/home/travis/sqllib" | pecl install ibm_db2
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading ibm_db2-2.0.0.tgz ...
Starting to download ibm_db2-2.0.0.tgz (189,933 bytes)
.........................................done: 189,933 bytes
5 source files, building
running: phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
DB2 Installation Directory? : building in /tmp/pear/temp/pear-build-travisuDVRCA/ibm_db2-2.0.0
running: /tmp/pear/temp/ibm_db2/configure --with-php-config=/home/travis/.phpenv/versions/5.6.31/bin/php-config --with-IBM_DB2=/home/travis/sqllib
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /home/travis/.phpenv/versions/5.6.31
checking for PHP includes... -I/home/travis/.phpenv/versions/5.6.31/include/php -I/home/travis/.phpenv/versions/5.6.31/include/php/main -I/home/travis/.phpenv/versions/5.6.31/include/php/TSRM -I/home/travis/.phpenv/versions/5.6.31/include/php/Zend -I/home/travis/.phpenv/versions/5.6.31/include/php/ext -I/home/travis/.phpenv/versions/5.6.31/include/php/ext/date/lib
checking for PHP extension directory... /home/travis/.phpenv/versions/5.6.31/lib/php/extensions/no-debug-zts-20131226
checking for PHP installed headers prefix... /home/travis/.phpenv/versions/5.6.31/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... gawk
checking for IBM_DB2 support... yes, shared
checking PHP... Detected 64-bit PHP
checking IBM_DB_HOME location... not found
checking Looking for DB2 CLI libraries... checking in /home/travis/sqllib...
checking in /home/travis/sqllib/lib64... found
checking for DB2 CLI include files in default path... checking in /home/travis/sqllib... found in /home/travis/sqllib
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/bash /tmp/pear/temp/pear-build-travisuDVRCA/ibm_db2-2.0.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/ibm_db2 -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisuDVRCA/ibm_db2-2.0.0/include -I/tmp/pear/temp/pear-build-travisuDVRCA/ibm_db2-2.0.0/main -I/tmp/pear/temp/ibm_db2 -I/home/travis/.phpenv/versions/5.6.31/include/php -I/home/travis/.phpenv/versions/5.6.31/include/php/main -I/home/travis/.phpenv/versions/5.6.31/include/php/TSRM -I/home/travis/.phpenv/versions/5.6.31/include/php/Zend -I/home/travis/.phpenv/versions/5.6.31/include/php/ext -I/home/travis/.phpenv/versions/5.6.31/include/php/ext/date/lib -I/home/travis/sqllib/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/ibm_db2/ibm_db2.c -o ibm_db2.lo
mkdir .libs
cc -I. -I/tmp/pear/temp/ibm_db2 -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisuDVRCA/ibm_db2-2.0.0/include -I/tmp/pear/temp/pear-build-travisuDVRCA/ibm_db2-2.0.0/main -I/tmp/pear/temp/ibm_db2 -I/home/travis/.phpenv/versions/5.6.31/include/php -I/home/travis/.phpenv/versions/5.6.31/include/php/main -I/home/travis/.phpenv/versions/5.6.31/include/php/TSRM -I/home/travis/.phpenv/versions/5.6.31/include/php/Zend -I/home/travis/.phpenv/versions/5.6.31/include/php/ext -I/home/travis/.phpenv/versions/5.6.31/include/php/ext/date/lib -I/home/travis/sqllib/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/ibm_db2/ibm_db2.c -fPIC -DPIC -o .libs/ibm_db2.o
In file included from /home/travis/sqllib/include/sqlcli1.h:45:0,
from /tmp/pear/temp/ibm_db2/php_ibm_db2.h:37,
from /tmp/pear/temp/ibm_db2/ibm_db2.c:34:
/home/travis/sqllib/include/sqlcli.h:870:0: warning: "ODBCVER" redefined [enabled by default]
#define ODBCVER 0x0380
^
In file included from /home/travis/.phpenv/versions/5.6.31/include/php/TSRM/tsrm_config.h:1:0,
from /home/travis/.phpenv/versions/5.6.31/include/php/TSRM/tsrm_config_common.h:13,
from /home/travis/.phpenv/versions/5.6.31/include/php/Zend/zend_virtual_cwd.h:27,
from /home/travis/.phpenv/versions/5.6.31/include/php/main/php.h:404,
from /tmp/pear/temp/ibm_db2/ibm_db2.c:30:
/home/travis/.phpenv/versions/5.6.31/include/php/main/../main/php_config.h:2186:0: note: this is the location of the previous definition
#define ODBCVER 0x0300
^
In file included from /home/travis/.phpenv/versions/5.6.31/include/php/Zend/zend_alloc.h:27:0,
from /home/travis/.phpenv/versions/5.6.31/include/php/Zend/zend.h:252,
from /home/travis/.phpenv/versions/5.6.31/include/php/main/php.h:35,
from /tmp/pear/temp/ibm_db2/ibm_db2.c:30:
/tmp/pear/temp/ibm_db2/ibm_db2.c: In function ‘_php_db2_hash_find_ind’:
/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)
^
/home/travis/.phpenv/versions/5.6.31/include/php/Zend/zend_globals_macros.h:45:16: note: in expansion of macro ‘TSRMG’
# define EG(v) TSRMG(executor_globals_id, zend_executor_globals *, v)
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:499:10: note: in expansion of macro ‘EG’
if (!EG(active_symbol_table)) {
^
/home/travis/.phpenv/versions/5.6.31/include/php/Zend/../TSRM/TSRM.h:164:57: note: each undeclared identifier is reported only once for each function it appears in
#define TSRMG(id, type, element) (((type) (*((void ***) tsrm_ls))[TSRM_UNSHUFFLE_RSRC_ID(id)])->element)
^
/home/travis/.phpenv/versions/5.6.31/include/php/Zend/zend_globals_macros.h:45:16: note: in expansion of macro ‘TSRMG’
# define EG(v) TSRMG(executor_globals_id, zend_executor_globals *, v)
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:499:10: note: in expansion of macro ‘EG’
if (!EG(active_symbol_table)) {
^
/tmp/pear/temp/ibm_db2/ibm_db2.c: In function ‘_php_db2_set_symbol’:
/home/travis/.phpenv/versions/5.6.31/include/php/Zend/../TSRM/TSRM.h:167:18: error: ‘tsrm_ls’ undeclared (first use in this function)
#define TSRMLS_C tsrm_ls
^
/home/travis/.phpenv/versions/5.6.31/include/php/Zend/../TSRM/TSRM.h:168:21: note: in expansion of macro ‘TSRMLS_C’
#define TSRMLS_CC , TSRMLS_C
^
/home/travis/.phpenv/versions/5.6.31/include/php/Zend/zend_gc.h:160:32: note: in expansion of macro ‘TSRMLS_CC’
gc_remove_zval_from_buffer(z TSRMLS_CC); \
^
/home/travis/.phpenv/versions/5.6.31/include/php/Zend/zend_gc.h:213:6: note: in expansion of macro ‘GC_REMOVE_ZVAL_FROM_BUFFER’
GC_REMOVE_ZVAL_FROM_BUFFER(z); \
^
/home/travis/.phpenv/versions/5.6.31/include/php/Zend/zend_API.h:731:4: note: in expansion of macro ‘FREE_ZVAL’
FREE_ZVAL(var); \
^
/home/travis/.phpenv/versions/5.6.31/include/php/Zend/zend_API.h:714:3: note: in expansion of macro ‘ZEND_SET_SYMBOL_WITH_LENGTH’
ZEND_SET_SYMBOL_WITH_LENGTH(symtable, _name, strlen(_name)+1, var, 1, 0); \
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:542:9: note: in expansion of macro ‘ZEND_SET_SYMBOL’
ZEND_SET_SYMBOL(symbol_table_used, varname, var);
^
/tmp/pear/temp/ibm_db2/ibm_db2.c: In function ‘_php_db2_assign_options’:
/tmp/pear/temp/ibm_db2/ibm_db2.c:1378:59: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
SQL_ATTR_CURSOR_TYPE, (SQLPOINTER)vParam,
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:1387:59: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
SQL_ATTR_CURSOR_TYPE, (SQLPOINTER)vParam, /* was (SQLPOINTER)&vParam */
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:1399:59: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
SQL_ATTR_CURSOR_TYPE, (SQLPOINTER)vParam,
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:1407:59: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
SQL_ATTR_CURSOR_TYPE, (SQLPOINTER)vParam, /* was (SQLPOINTER)&vParam */
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:1436:61: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
SQL_ATTR_ROWCOUNT_PREFETCH, (SQLPOINTER)vParam,
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:1445:61: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
SQL_ATTR_ROWCOUNT_PREFETCH, (SQLPOINTER)vParam, /* was (SQLPOINTER)&vParam */
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:1457:61: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
SQL_ATTR_ROWCOUNT_PREFETCH, (SQLPOINTER)vParam,
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:1465:61: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
SQL_ATTR_ROWCOUNT_PREFETCH, (SQLPOINTER)vParam, /* was (SQLPOINTER)&vParam */
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:1574: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);
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:1586: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);
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:1700: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);
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:1724: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);
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:1798: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);
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:1823: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);
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:1846: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);
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:1869: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);
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:1888: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);
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:2014:52: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
SQL_ATTR_DEFERRED_PREPARE, (SQLPOINTER)pvParam,
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:2024:52: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
SQL_ATTR_DEFERRED_PREPARE, (SQLPOINTER)pvParam,
^
/tmp/pear/temp/ibm_db2/ibm_db2.c: In function ‘_php_db2_connect_helper’:
/tmp/pear/temp/ibm_db2/ibm_db2.c:2748: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);
^
/tmp/pear/temp/ibm_db2/ibm_db2.c: In function ‘zif_db2_autocommit’:
/tmp/pear/temp/ibm_db2/ibm_db2.c:3107: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);
^
/tmp/pear/temp/ibm_db2/ibm_db2.c: In function ‘_php_db2_bind_data’:
/tmp/pear/temp/ibm_db2/ibm_db2.c:4752:13: error: too few arguments to function ‘_php_db2_bind_pad’
if ((rc = (_php_db2_bind_pad(curr, nullterm, isvarying, isbinary, &origlen, bind_data))) == SQL_ERROR) {
^
/tmp/pear/temp/ibm_db2/ibm_db2.c:4479:12: note: declared here
static int _php_db2_bind_pad(param_node *curr, int nullterm, int isvarying, int isbinary, int *poriglen, zval **data TSRMLS_DC)
^
make: *** [ibm_db2.lo] Error 1
ERROR: `make' failed
travis_time:end:0f175768:start=1506589383440573707,finish=1506589387634283201,duration=4193709494

The command "if [[ $REQUIRE_DB = true ]]; then echo "/home/travis/sqllib" | pecl install ibm_db2 ; fi" failed and exited with 1 during .
Your build has been stopped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment