PDO_odbc: 'make' problems
| From: | Daniel Garcia | Date: | Tue, 23 Nov 2004 15:45:01 +0000 |
| Subject: | PDO_odbc: 'make' problems | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-1656@lists.php.net to get a copy of this message | ||
Hello,
I successfully installed pdo and pdo_mysql with PEAR installer. In order to install pdo_mysql I had to manually copy all the *.h files from PDO-0.1.1.tgz into /usr/local/include/php/ext/pdo/.
But when I try to install PDO_odbc (unixODBC flavour), I get errors when 'make' is executed:
Tunis:/tmp/pdo_odbc/PDO_ODBC-0.1.1 # make
/bin/sh /tmp/pdo_odbc/PDO_ODBC-0.1.1/libtool --mode=compile gcc -I/usr/local/include/php/ext -I/usr/local/include -DPDO_ODBC_TYPE=\"unixODBC\" -I. -I/tmp/pdo_odbc/PDO_ODBC-0.1.1 -DPHP_ATOM_INC -I/tmp/pdo_odbc/PDO_ODBC-0.1.1/include -I/tmp/pdo_odbc/PDO_ODBC-0.1.1/main -I/tmp/pdo_odbc/PDO_ODBC-0.1.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /tmp/pdo_odbc/PDO_ODBC-0.1.1/pdo_odbc.c -o pdo_odbc.lo
mkdir .libs
gcc -I/usr/local/include/php/ext -I/usr/local/include -DPDO_ODBC_TYPE=\"unixODBC\" -I. -I/tmp/pdo_odbc/PDO_ODBC-0.1.1 -DPHP_ATOM_INC -I/tmp/pdo_odbc/PDO_ODBC-0.1.1/include -I/tmp/pdo_odbc/PDO_ODBC-0.1.1/main -I/tmp/pdo_odbc/PDO_ODBC-0.1.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /tmp/pdo_odbc/PDO_ODBC-0.1.1/pdo_odbc.c -fPIC -DPIC -o .libs/pdo_odbc.o
In file included from /tmp/pdo_odbc/PDO_ODBC-0.1.1/pdo_odbc.c:31:
/tmp/pdo_odbc/PDO_ODBC-0.1.1/php_pdo_odbc_int.h:109: error: `SQL_MAX_MESSAGE_LENGTH' undeclared here (not in a function)
/tmp/pdo_odbc/PDO_ODBC-0.1.1/php_pdo_odbc_int.h:110: error: parse error before "SDWORD"
/tmp/pdo_odbc/PDO_ODBC-0.1.1/php_pdo_odbc_int.h:110: warning: no semicolon at end of struct or union
/tmp/pdo_odbc/PDO_ODBC-0.1.1/php_pdo_odbc_int.h:113: error: parse error before '}' token
/tmp/pdo_odbc/PDO_ODBC-0.1.1/php_pdo_odbc_int.h:113: warning: data definition has no type or storage class
/tmp/pdo_odbc/PDO_ODBC-0.1.1/php_pdo_odbc_int.h:116: error: parse error before "HENV"
/tmp/pdo_odbc/PDO_ODBC-0.1.1/php_pdo_odbc_int.h:116: warning: no semicolon at end of struct or union
[.... and more errors]
I get the same results when I execute it manually with:
pear download PDO_odbc
tar xzf PDO-*.tgz
cd PDO-*
PATH=/path/to/php5/bin:$PATH
phpize
./configure --with-pdo-odbc=unixODBC
make
make install
Cheers,
Daniel Garcia