I can work with Progress db from PHP on Linux.
Software versions:
SuSE Linux 7.1
PHP 4.0.4 or 4.1.2
Progress 9.1C09.
PHP I compiled as standalone version:
CUSTOM_ODBC_LIBS="-L/opt/progress/dlc/odbc/lib -lodbc"
CFLAGS="-I/opt/progress/dlc/odbc/include -L/opt/progress/dlc/odbc/lib"
export CUSTOM_ODBC_LIBS CFLAGS
./configure --with-custom-odbc=/opt/progress/dlc/odbc --without-mysql
make
Every output of PHP-4.0.4 failured: <table><tr><th>CustNum</th><th>Name</th></tr>
<tr><td>1</td><td>Lift Tours</td></tr>
<tr><td>2</td><td>Urpon Frisbee</td></tr>
<tr><td>3</td><td>Hoops </td></tr>
<tr><td>4</td><td>Go Fishing Ltd</td></tr>
</table>
Segmentation fault
PHP-4.1.2 I cannot compile:
make
.....
/bin/sh /usr/src/packages/SOURCES/php-4.1.2/libtool --silent --mode=link
gcc -I. -I/usr/src/packages/SOURCES/php-4.1.2/ -I/usr/src/packages/SOURCES/p
hp-4.1.2/main -I/usr/src/packages/SOURCES/php-4.1.2 -I/usr/src/packages/SOUR
CES/php-4.1.2/Zend -I/opt/progress/dlc/odbc/include -I/usr/src/packages/SOUR
CES/php-4.1.2/ext/xml/expat -I/usr/src/packages/SOURCES/php-4.1.2/TSRM -I/o
pt/progress/dlc/odbc/include -L/opt/progress/dlc/odbc/lib -o
php -export-dynamic stub.lo libphp4.la
./.libs/libphp4.a(php_odbc.o): In function _free_odbc_result':
php_odbc.o(.text+0xc2): undefined reference toSQLFreeStmt'
./.libs/libphp4.a(php_odbc.o): In function safe_odbc_disconnect':
php_odbc.o(.text+0xee): undefined reference toSQLDisconnect'
php_odbc.o(.text+0x10f): undefined reference to SQLTransact'
php_odbc.o(.text+0x11e): undefined reference toSQLDisconnect'
./.libs/libphp4.a(php_odbc.o): In function _close_odbc_conn':
php_odbc.o(.text+0x15b): undefined reference toSQLFreeConnect'
php_odbc.o(.text+0x16c): undefined reference to SQLFreeEnv'
./.libs/libphp4.a(php_odbc.o): In function_close_odbc_pconn':
php_odbc.o(.text+0x1bb): undefined reference to SQLFreeConnect'
php_odbc.o(.text+0x1cc): undefined reference toSQLFreeEnv'
./.libs/libphp4.a(php_odbc.o): In function odbc_sql_error':
php_odbc.o(.text+0xb5a): undefined reference toSQLError'
./.libs/libphp4.a(php_odbc.o): In function odbc_bindcols':
php_odbc.o(.text+0xe0b): undefined reference toSQLFreeStmt'
php_odbc.o(.text+0xe8e): undefined reference to SQLColAttributes'
php_odbc.o(.text+0xed9): undefined reference toSQLColAttributes'
php_odbc.o(.text+0xf60): undefined reference to SQLColAttributes'
php_odbc.o(.text+0xffb): undefined reference toSQLBindCol'
./.libs/libphp4.a(php_odbc.o): In function odbc_transact':
php_odbc.o(.text+0x10ad): undefined reference toSQLTransact'
./.libs/libphp4.a(php_odbc.o): In function odbc_column_lengths':
php_odbc.o(.text+0x1338): undefined reference toSQLColAttributes'
.....
collect2: ld returned 1 exit status
make[1]:
Error 1
make[1]: Leaving directory `/usr/src/packages/SOURCES/php-4.1.2'
make: *** [all-recursive] Error 1
Thank you for any idea.
Vladimir Prochazka