#20715 [Fbk->Opn]: IBM-DB2 don't compile

From: Date: Wed, 05 Mar 2003 11:41:44 +0000
Subject: #20715 [Fbk->Opn]: IBM-DB2 don't compile
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-34864@lists.php.net to get a copy of this message
ID: 20715 User updated by: bruno at cameleons dot net Reported By: bruno at cameleons dot net -Status: Feedback +Status: Open Bug Type: ODBC related Operating System: Linux 2.4.19 PHP Version: 4.3.1 New Comment: Hi, I've the same problem with unixODBC. I've tried unixODBC shared with php 4.2.3: it works fine. I've compiled unixODBC static with php 4.3.1: it works fine I've compiled IBM DB2 static with php 4.3.1: it works fine. It seems to be a problem with odbc shared. Bruno Previous Comments: ------------------------------------------------------------------------ [2003-03-04 11:43:04] kalowsky@php.net The point of ODBC is that it is cross DB compatible. It uses the same API that DB2 does, only IBM recommends using unixODBC to interface with DB2 rather than their own interface (which is still ODBC). As for speed questions, this is typically irrelevent as you're still using an ODBC-ODBC bridge which can be tuned slightly depending upon your preferences. ------------------------------------------------------------------------ [2003-03-04 10:40:09] bruno at cameleons dot net Ok, but is unixODBC faster or slower than DBConnect? The syntaxe is compatible between UnixODBC and DB2connect? I have 300 scripts PHP using odbc functions. ------------------------------------------------------------------------ [2003-03-04 10:30:33] kalowsky@php.net please try my request ------------------------------------------------------------------------ [2003-03-04 10:24:33] bruno at cameleons dot net I've tried php4-STABLE-200303041230.tar.gz. The command env return any CFLAGS and I enter this configure: ./configure --with-ibm-db2=shared,/usr/IBMdb2/V7.1 --disable-all Bruno ------------------------------------------------------------------------ [2003-03-04 10:19:28] kalowsky@php.net Try building unixODBC on your machine, and using that as the interface to DB2. It is currently the recommended means to connect to DB2 by IBM. Updating version as well. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/20715 -- Edit this bug report at http://bugs.php.net/?id=20715&edit=1

« previous php.bugs (#34864) next »