Joe Bullington
Joe Bullington wrote:
Greetings,
I am trying to compile php 4.3.1 on Red Hat Linux 8 with apache (2.0.40-11.9 RPM) and IBM DB2 support. DB2 Connect is installed and working. The config works fine (./configure --with-apxs2=/usr/sbin/apxs --with-ibm-db2=/home/db2inst1/sqllib --with-config-file-path=/etc), but when I run 'make' it produces the entries below. AFAIK it appears to be a problem with the odbc file, but I'm not sure what to do with it. Any suggestions welcome.
Joe Bullington Tailored Business Systems
/bin/sh libtool --silent --mode=compile gcc -I/home/db2inst1/sqllib/include -Iext/odbc/ -I/usr/local/src/php-4.3.1/ext/odbc/ -DPHP_ATOM_INC -I/usr/local/src/php-4.3.1/include -I/usr/local/src/php-4.3.1/main -I/usr/local/src/php-4.3.1 -I/usr/include/httpd -I/usr/local/src/php-4.3.1/Zend -I/usr/local/src/php-4.3.1/ext/xml/expat -I/usr/local/src/php-4.3.1/TSRM -g -O2 -prefer-pic -c /usr/local/src/php-4.3.1/ext/odbc/php_odbc.c -o ext/odbc/php_odbc.lo
In file included from /usr/local/src/php-4.3.1/ext/odbc/php_odbc.c:37:
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:176:21: sqlcli1.h: No such file or directory
In file included from /usr/local/src/php-4.3.1/ext/odbc/php_odbc.c:37:
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:208: parse error before "SQLHANDLE"
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:208: warning: no semicolon at end of struct or union
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:209: warning: data definition has no type or storage class
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:211: `SQL_MAX_MESSAGE_LENGTH' undeclared here (not in a function)
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:214: parse error before '}' token
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:214: warning: data definition has no type or storage class
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:220: parse error before "SDWORD"
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:220: warning: no semicolon at end of struct or union
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:221: warning: data definition has no type or storage class
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:224: parse error before "SQLHANDLE"
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:224: warning: no semicolon at end of struct or union
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:226: parse error before '*' token
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:226: warning: data definition has no type or storage class
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:227: parse error before "numcols"
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:227: warning: data definition has no type or storage class
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:228: parse error before "numparams"
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:228: warning: data definition has no type or storage class
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:235: parse error before '*' token
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:235: warning: data definition has no type or storage class
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:236: parse error before '}' token
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:236: warning: data definition has no type or storage class
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:252: `SQL_MAX_MESSAGE_LENGTH' undeclared here (not in a function)
/usr/local/src/php-4.3.1/ext/odbc/php_odbc_includes.h:255: confused by earlier errors, bailing out
make: *** [ext/odbc/php_odbc.lo] Error 1