Re: PDO_odbc: 'make' problems (solved)

From: Date: Wed, 24 Nov 2004 11:10:59 +0000
Subject: Re: PDO_odbc: 'make' problems (solved)
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-1657@lists.php.net to get a copy of this message
My fault ! Should have specified ./configure --with-pdo-odbc=unixODBC,/usr (I'm using SuSE Linux 9.0). --Daniel Daniel Garcia wrote:
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


« previous php.pecl.dev (#1657) next »