Hello,
I'm using XAMPP: v5.6.3
cat /etc/issue
Welcome to SUSE Linux Enterprise Server 11 SP3 (x86_64) - Kernel \r (\l).
Problem:
I'm trying to configure pdo_ibm by following the instructions here: http://www-01.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.swg.im.dbclient.php.doc/doc/t0011926.html?lang=en
/opt/lampp/bin # ./pecl install pdo_ibm
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
pecl.php.net is using a unsupported protocol - This should never happen.
pecl/PDO_IBM requires package "pear/PDO"
No valid packages found
install failed
Then I tried the following:
/opt/lampp/bin # export DB2HOME=/home/svtdbm2/sqllib
/opt/lampp/bin # export LD_LIBRARY_PATH=$DB2HOME/lib64
/opt/lampp/bin # export LIBPATH=$DB2HOME/lib64
/opt/lampp/bin # ./pear install PDO
Warning: PHP Startup: ibm_db2: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0
Warning: PHP Startup: pdo_ibm: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0
No releases available for package "pear.php.net/PDO" - package pecl/PDO can be installed with "pecl install PDO"
install failed
Then I did the following:
svtreg:/opt/lampp/bin # ./pecl install PDO
WARNING: "pecl/PDO" is deprecated in favor of "channel://http://svn.php.net/viewvc/php/php-src/trunk/ext/pdo//ext/PDO"
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading PDO-1.0.3.tgz ...
Starting to download PDO-1.0.3.tgz (52,613 bytes)
.............done: 52,613 bytes
12 source files, building
running: phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
building in /tmp/pear/temp/pear-build-rootHJDIyV/PDO-1.0.3
running: /tmp/pear/temp/PDO/configure
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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... /opt/lampp
............ skipping some stuff here since the output is too long ....
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /tmp/pear/temp/pear-build-rootHJDIyV/PDO-1.0.3/libtool --mode=compile cc -I. -I/tmp/pear/temp/PDO -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootHJDIyV/PDO-1.0.3/include -I/tmp/pear/temp/pear-build-rootHJDIyV/PDO-1.0.3/main -I/tmp/pear/temp/PDO -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/PDO/pdo.c -o pdo.lo
mkdir .libs
cc -I. -I/tmp/pear/temp/PDO -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootHJDIyV/PDO-1.0.3/include -I/tmp/pear/temp/pear-build-rootHJDIyV/PDO-1.0.3/main -I/tmp/pear/temp/PDO -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/PDO/pdo.c -fPIC -DPIC -o .libs/pdo.o
/bin/sh /tmp/pear/temp/pear-build-rootHJDIyV/PDO-1.0.3/libtool --mode=compile cc -I. -I/tmp/pear/temp/PDO -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootHJDIyV/PDO-1.0.3/include -I/tmp/pear/temp/pear-build-rootHJDIyV/PDO-1.0.3/main -I/tmp/pear/temp/PDO -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/PDO/pdo_dbh.c -o pdo_dbh.lo
cc -I. -I/tmp/pear/temp/PDO -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootHJDIyV/PDO-1.0.3/include -I/tmp/pear/temp/pear-build-rootHJDIyV/PDO-1.0.3/main -I/tmp/pear/temp/PDO -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/PDO/pdo_dbh.c -fPIC -DPIC -o .libs/pdo_dbh.o
/tmp/pear/temp/PDO/pdo_dbh.c: In function âpdo_stmt_instantiateâ:
/tmp/pear/temp/PDO/pdo_dbh.c:410: error: âzvalâ has no member named ârefcountâ
/tmp/pear/temp/PDO/pdo_dbh.c:411: error: âzvalâ has no member named âis_refâ
/tmp/pear/temp/PDO/pdo_dbh.c: In function âpdo_stmt_constructâ:
/tmp/pear/temp/PDO/pdo_dbh.c:424: error: too few arguments to function âstd_object_handlers.write_propertyâ
/tmp/pear/temp/PDO/pdo_dbh.c:435: error: âzend_fcall_infoâ has no member named âobject_ppâ
/tmp/pear/temp/PDO/pdo_dbh.c:458: error: âzend_fcall_info_cacheâ has no member named âobject_ppâ
/tmp/pear/temp/PDO/pdo_dbh.c: In function âzim_PDO_setAttributeâ:
/tmp/pear/temp/PDO/pdo_dbh.c:752: error: âzvalâ has no member named ârefcountâ
/tmp/pear/temp/PDO/pdo_dbh.c: In function âzim_PDO_getAttributeâ:
/tmp/pear/temp/PDO/pdo_dbh.c:818: error: âzvalâ has no member named ârefcountâ
/tmp/pear/temp/PDO/pdo_dbh.c: In function âpdo_hash_methodsâ:
/tmp/pear/temp/PDO/pdo_dbh.c:1126: warning: assignment discards qualifiers from pointer target type
/tmp/pear/temp/PDO/pdo_dbh.c:1128: error: âconst struct _zend_arg_infoâ has no member named ârequired_num_argsâ
/tmp/pear/temp/PDO/pdo_dbh.c:1131: error: âconst struct _zend_arg_infoâ has no member named ârequired_num_argsâ
/tmp/pear/temp/PDO/pdo_dbh.c:1133: error: âzend_internal_functionâ has no member named âpass_rest_by_referenceâ
/tmp/pear/temp/PDO/pdo_dbh.c:1134: error: âzend_internal_functionâ has no member named âreturn_referenceâ
/tmp/pear/temp/PDO/pdo_dbh.c:1134: error: âconst struct _zend_arg_infoâ has no member named âreturn_referenceâ
/tmp/pear/temp/PDO/pdo_dbh.c:1139: error: âzend_internal_functionâ has no member named âpass_rest_by_referenceâ
/tmp/pear/temp/PDO/pdo_dbh.c:1140: error: âzend_internal_functionâ has no member named âreturn_referenceâ
/tmp/pear/temp/PDO/pdo_dbh.c: In function âpdo_dbh_initâ:
/tmp/pear/temp/PDO/pdo_dbh.c:1242: warning: assignment from incompatible pointer type
/tmp/pear/temp/PDO/pdo_dbh.c: In function âpdo_dbh_newâ:
/tmp/pear/temp/PDO/pdo_dbh.c:1413: error: âzend_class_entryâ has no member named âdefault_propertiesâ
make: *** [pdo_dbh.lo] Error 1
ERROR: `make' failed
could you please advise how to resolve the above issue? thank you