Skip to Content.
Sympa Menu

freetds - Errors compiling php4 with freetds and db2

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "hausmann" <rainer.hausmann AT t-systems.de>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: Errors compiling php4 with freetds and db2
  • Date: Tue, 28 Aug 2001 05:37:27 -0400


Hi,
I've been using FreeTDS 0.52 as connection driver between PHP 4.0.6 and MS
SQL 7.0. It works fine.
Now I'm installing IBM's product DB/2 V7.1 and I recompile php4 with
following options.

./configure --with-mysql --with-apache=../apache-1.3 --enable-track-vars
--with-sybase=/usr/local/freetds --with-dbm
-with-ibm-db2=/usr/lib/db2/db2inst1/sqllib

make

While executing "make" I got compile errors !

gcc -I. -I/opt/php-4.0.6/main -I/opt/php-4.0.6/main -I/opt/php-4.0.6
-I/opt/apache-1.3/src/include
-I/opt/apache-1.3/src/os/unix -I/opt/php-4.0.6/Zend
-I/opt/php-4.0.6/ext/mysql/libmysql -I/usr/lib/
b2/db2inst1/sqllib/include -I/usr/local/freetds/include
-I/opt/php-4.0.6/ext/xml/expat/xmltok -I/op
/php-4.0.6/ext/xml/expat/xmlparse -I/opt/php-4.0.6/TSRM -DSUPPORT_UTF8
-DXML_BYTE_ORDER=21 -g -O2
-c internal_functions.c && touch internal_functions.lo
In file included from /usr/lib/db2/db2inst1/sqllib/include/sqlcli1.h:42,
from /opt/php-4.0.6/ext/odbc/php_odbc.h:170,
from internal_functions.c:33:
/usr/lib/db2/db2inst1/sqllib/include/sqlcli.h:718: warning: `ODBCVER'
redefined
/opt/php-4.0.6/ext/odbc/php_odbc.h:27: warning: this is the location of
the previous definition
In file included from /usr/local/freetds/include/sybfront.h:23,
from /opt/php-4.0.6/ext/sybase/php_sybase_db.h:67,
from internal_functions.c:39:
/usr/local/freetds/include/sybdb.h:72: conflicting types for `RETCODE'
/usr/lib/db2/db2inst1/sqllib/include/sqlcli.h:344: previous declaration of
`RETCODE'
make[2]: *** [internal_functions.lo] Error 1
make[2]: Leaving directory `/opt/php-4.0.6/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/php-4.0.6/main'


Could anyone help me ? thanks :)

Rainer



  • Errors compiling php4 with freetds and db2, hausmann, 08/28/2001

Archive powered by MHonArc 2.6.24.

Top of Page