|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-10-02 15:49 UTC] brent dot halsey at huntington dot com
Description: ------------ This is identical to Bug #6483 When I run configure with IBM_DB2 I get an error at my make step. However- my pdo_odbc extension is working just fine and allows me to connect to my DB2 database. Reproduce code: --------------- './configure' '--with-mysql=/srv/mysql/mysql-standard-5.0.24a-linux-i686-glibc23' '--with-apxs2=/srv/apache-2058/apache/bin/apxs' '--with-ibm-db2=/opt/IBM/db2/V8.1' '--with-pdo-odbc=ibm-db2,/home/db2inst1/sqllib' etmdweb1:/srv/db2Patch/adcl # db2level DB21085I Instance "db2inst1" uses "32" bits and DB2 code release "SQL08020" with level identifier "03010106". Informational tokens are "DB2 v8.1.0.64", "s040812", "MI00086", and FixPak "7". Product is installed at "/opt/IBM/db2/V8.1". Expected result: ---------------- I expect it to make and make install successfully and allow me to call the DB2 CLI directly from my PHP source code. Actual result: -------------- etmdweb1:/srv/php/php-5.1.4/ext/ibm_db2 # make /bin/sh /srv/php/php-5.1.4/ext/ibm_db2/libtool --mode=compile gcc -I. -I/srv/php/php-5.1.4/ext/ibm_db2 -DPHP_ATOM_INC -I/srv/php/php-5.1.4/ext/ibm_db2/include -I/srv/php/php-5.1.4/ext/ibm_db2/main -I/srv/php/php-5.1.4/ext/ibm_db2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/opt/IBM/db2/V8.1/include -DHAVE_CONFIG_H -g -O2 -c /srv/php/php-5.1.4/ext/ibm_db2/ibm_db2.c -o ibm_db2.lo mkdir .libs gcc -I. -I/srv/php/php-5.1.4/ext/ibm_db2 -DPHP_ATOM_INC -I/srv/php/php-5.1.4/ext/ibm_db2/include -I/srv/php/php-5.1.4/ext/ibm_db2/main -I/srv/php/php-5.1.4/ext/ibm_db2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/opt/IBM/db2/V8.1/include -DHAVE_CONFIG_H -g -O2 -c /srv/php/php-5.1.4/ext/ibm_db2/ibm_db2.c -fPIC -DPIC -o .libs/ibm_db2.o /srv/php/php-5.1.4/ext/ibm_db2/ibm_db2.c: In function `_php_db2_connect_helper': /srv/php/php-5.1.4/ext/ibm_db2/ibm_db2.c:972: error: `SQL_ATTR_PING_DB' undeclared (first use in this function) /srv/php/php-5.1.4/ext/ibm_db2/ibm_db2.c:972: error: (Each undeclared identifier is reported only once /srv/php/php-5.1.4/ext/ibm_db2/ibm_db2.c:972: error: for each function it appears in.) /srv/php/php-5.1.4/ext/ibm_db2/ibm_db2.c: In function `zif_db2_server_info': /srv/php/php-5.1.4/ext/ibm_db2/ibm_db2.c:3795: error: `SQL_DATABASE_CODEPAGE' undeclared (first use in this function) /srv/php/php-5.1.4/ext/ibm_db2/ibm_db2.c: In function `zif_db2_client_info': /srv/php/php-5.1.4/ext/ibm_db2/ibm_db2.c:4218: error: `SQL_APPLICATION_CODEPAGE' undeclared (first use in this function) /srv/php/php-5.1.4/ext/ibm_db2/ibm_db2.c:4229: error: `SQL_CONNECT_CODEPAGE' undeclared (first use in this function) make: *** [ibm_db2.lo] Error 1 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 17:00:01 2025 UTC |
Ok- it did make it much further along in the make step this time, but died with what appears to be the same error. I ran the command you mentioned and got this: etmdweb1:/srv/php/php-5.1.4 # ./configure --help |grep IBM --with-IBM_DB2=DIR Include IBM DB2 Univeral Database and Cloudscape support. headers and libraries, defaults to /opt/IBM/db2/V8.1 --with-ibm-db2=DIR Include IBM DB2 support. DIR is the DB2 base The other strange thing is that I couldn't find that file you mentioned, db2cli1.h or db2clil.h - either way, I couldn't seem to find it. Do you think the --with-ibm-db2 command does anything here too? Thanks for all of the support!