Re: RE: [PHP-DB] help with compiling ODBC into PHP4

From: Date: Mon, 02 Apr 2001 22:56:13 +0000
Subject: Re: RE: [PHP-DB] help with compiling ODBC into PHP4
References: 1  Groups: php.db php.general 
Request: Send a blank email to php-general+get-46698@lists.php.net to get a copy of this message
Daevid, You shouldn't need iodbc.h, just odbc.h - until I can compare what is each SDK distribution, just create a symbolic link of iodbc.h pointing to odbc.h udbcext.h is in our iODBC SDK - you should have that. Here is the linux glibc2.1.1 version: http://www.openlinksw.com/software/open40/l3kozzzz.taz (also available from iODBC.org). If you need other platforms, go to: http://www.iodbc.org/opliodbc.htm (iODBC) or http://www.openlinksw.com/main/softdld.htm (OpenLink) Best regards, Andrew --------------------------------------- Andrew Hill - OpenLink Software Director Technology Evangelism eBusiness Infrastructure Technology http://www.openlinksw.com On 4/2/01 6:39 PM, "Daevid Vincent" <DayWalker@TheMatrix.com> wrote: > Okay, don't ask me how, but for whatever reason, this "partially worked": > > "./configure --with-openlink=/usr/local/openlink/odbcsdk --with-mysql=/usr/l > ocal --with-apache=../apache" > > however, now I get a different error: > > In file included from internal_functions.c:38: > /usr/src/WT_Apache_Setup/php/ext/odbc/php_odbc.h:125: iodbc.h: No such file > or directory > In file included from internal_functions.c:38: > /usr/src/WT_Apache_Setup/php/ext/odbc/php_odbc.h:128: udbcext.h: No such > file or directory > make[2]: *** [internal_functions.lo] Error 1 > make[2]: Leaving directory `/data/usr/src/WT_Apache_Setup/php-4.0.4/main' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/data/usr/src/WT_Apache_Setup/php-4.0.4/main' > make: *** [all-recursive] Error 1 > > I've done a 'locate iodbc.h' and don't have one. > > [root=pts/1]3:34pm@content:{/usr/src/WT_Apache_Setup/php}> locate udbcext.h > /usr/local/openlink/odbcsdk/include/udbcext.h > /usr/local/openlink/udbcsdk/include/udbc/udbcext.h > > does however exist despite that error message. > > just for fun I tried: > > "./configure --with-openlink=/usr/local/openlink --with-mysql=/usr/local --w > ith-apache=../apache" (notice the 'odbcsdk' is not in the path) > > and get a simmilar error: > > In file included from internal_functions.c:38: > /usr/src/WT_Apache_Setup/php/ext/odbc/php_odbc.h:125: iodbc.h: No such file > or directory > In file included from /usr/src/WT_Apache_Setup/php/ext/odbc/php_odbc.h:128, > from internal_functions.c:38: > /usr/local/openlink/odbcsdk/include/udbcext.h:47: warning: > `SQL_LEN_DATA_AT_EXEC' redefined > /usr/local/openlink/odbcsdk/include/sqlext.h:250: warning: this is the > location of the previous definition > make[2]: *** [internal_functions.lo] Error 1 > make[2]: Leaving directory `/data/usr/src/WT_Apache_Setup/php-4.0.4/main' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/data/usr/src/WT_Apache_Setup/php-4.0.4/main' > make: *** [all-recursive] Error 1 > > thank you for your continued help. > >> -----Original Message----- >> From: Daevid Vincent [mailto:DayWalker@thematrix.com] >> Sent: Saturday, March 31, 2001 12:56 PM >> To: Andrew Hill; php-db@lists.php.net; PHP General >> Subject: RE: [PHP-DB] RE: [PHP] RE: what exactly are /path/to/blah >> lookingfor? .h? .so? .a? what?! >> >> >> I get the "No such file or directory" right after the "license >> box" shows up >> in the PHP4 compile. Like this (no matter what directory I've >> tried in that >> big old list so far): >> >> ./WTConfigure: --with-openlink=/usr/local/openlink/lib: No such file or >> directory >> >> "./WTConfigure" is just a shell script with make clean, all my --options, >> make, make install, since I have to compile in mysql, and some >> other stuff. >> >>> -----Original Message----- >>> From: Andrew Hill [mailto:ahill@openlinksw.com] >>> Sent: Friday, March 30, 2001 4:00 PM >>> To: Daevid Vincent; php-db@lists.php.net; PHP General >>> Subject: Re: [PHP-DB] RE: [PHP] RE: what exactly are /path/to/blah >>> lookingfor? .h? .so? .a? what?! >>> >>> >>> Daevid, >>> >>> just --with-iodbc or --with-openlink is fine. >>> >>> you should be using either: >>> >>> --with-iodbc=/usr/local/openlink/odbcsdk \ >>> or >>> --with-openlink=/usr/local/openlink/lib \ >>> >>> depending on which you use and where you installed the sdk. >>> what error are you getting? >>> >>> Best regards, >>> Andrew >>> >>> >>> On 3/30/01 6:54 PM, "Daevid Vincent" <DayWalker@TheMatrix.com> wrote: >>> >>>> thanks for replying Andrew, but that's not working for me either. >>>> >>>> Also, do I need both "--with-iodbc" and "--with-openlink" or do >>> I just need >>>> one of them? >>>> >>>> These are the instructions I've been following: >>>> http://www.iodbc.org/odbc-phpHOWTO.html >>>> >>>> so now I've tried: >>>> >>>> #--with-iodbc=/usr/local/openlink/odbcsdk/lib \ >>>> #--with-iodbc=/usr/local/openlink/odbcsdk \ >>>> #--with-iodbc=/usr/local/openlink/lib \ >>>> #--with-iodbc=/usr/local/bin \ >>>> #--with-iodbc=/usr/local \ >>>> #--with-iodbc=/usr/local/include \ >>>> #--with-iodbc=../libiodbc \ >>>> #--with-openlink=/usr/local/openlink/odbcsdk/lib \ >>>> #--with-openlink=/usr/local/openlink/odbcsdk \ >>>> #--with-openlink=/usr/local/openlink \ >>>> #--with-openlink=/usr/local/openlink/lib \ >>>> >>>> here is my dir structure: >>>> the files are there, why won't PHP see them? In fact I have the >>>> "libiodbc.so" library in TWO places I see: "openlink/lib/" and >>>> "openlink/odbcsdk/lib/" >>>> >>>> [root=pts/1]3:45pm@content:{/usr/local/openlink}> ll -r >>>> /usr/local/openlink/* >>>> -rw-rw-rw- 1 nobody html 0 Mar 29 20:20 >>>> /usr/local/openlink/oplrqb.ini >>>> -rwxr-xr-x 1 nobody html 707 Mar 30 15:16 >>>> /usr/local/openlink/openlink.sh* >>>> -rwxr-xr-x 1 nobody html 619 Mar 30 15:16 >>>> /usr/local/openlink/openlink.csh* >>>> -rw-rw-rw- 1 nobody html 180 Mar 29 20:21 >>>> /usr/local/openlink/odbcinst.ini >>>> -rw-rw-rw- 1 nobody html 541 Mar 30 13:51 >>>> /usr/local/openlink/odbc.ini >>>> -rw-rw-rw- 1 nobody html 196347 Mar 29 17:54 >>>> /usr/local/openlink/l2oczzzz.taz >>>> -rw-rw-rw- 1 nobody html 364085 Mar 30 15:16 >>>> /usr/local/openlink/l2kuzzzz.taz >>>> -rw-rw-rw- 1 nobody html 512218 Mar 30 15:16 >>>> /usr/local/openlink/l2kozzzz.taz >>>> -rwxrwxrwx 1 nobody html 16137 Mar 30 15:16 >>>> /usr/local/openlink/install.sh* >>>> >>>> /usr/local/openlink/udbcsdk: >>>> total 16 >>>> drwxr-xr-x 2 nobody html 4096 Mar 7 14:44 lib/ >>>> drwxr-xr-x 3 nobody html 4096 Mar 7 14:44 include/ >>>> drwxr-xr-x 2 nobody html 4096 Mar 7 14:44 examples/ >>>> drwxr-xr-x 2 nobody html 4096 Mar 7 14:44 doc/ >>>> >>>> /usr/local/openlink/lib: >>>> total 400 >>>> -rw-r--r-- 1 nobody html 272057 Mar 7 14:43 >> oplodbc.so.1.0.0 >>>> lrwxrwxrwx 1 nobody html 16 Mar 30 15:16 >> oplodbc.so.1 -> >>>> oplodbc.so.1.0.0 >>>> lrwxrwxrwx 1 nobody html 16 Mar 30 15:16 oplodbc.so -> >>>> oplodbc.so.1.0.0 >>>> -rw-r--r-- 1 nobody html 678 Mar 7 14:43 oplodbc.la >>>> lrwxrwxrwx 1 nobody html 17 Mar 30 15:16 libodbc.so -> >>>> libiodbc.so.2.1.2* >>>> -rwxr-xr-x 1 nobody html 117877 Mar 7 14:43 >>> libiodbc.so.2.1.2* >>>> lrwxrwxrwx 1 nobody html 17 Mar 30 15:16 >> libiodbc.so.2 -> >>>> libiodbc.so.2.1.2* >>>> lrwxrwxrwx 1 nobody html 17 Mar 30 15:16 libiodbc.so -> >>>> libiodbc.so.2.1.2* >>>> -rwxr-xr-x 1 nobody html 669 Mar 7 14:43 libiodbc.la* >>>> >>>> /usr/local/openlink/bin: >>>> total 140 >>>> -rw------- 1 nobody html 29 Mar 30 15:16 oplrqb.ini >>>> -rwxr-xr-x 1 nobody html 92225 Mar 7 14:43 odbctest* >>>> -rw-r--r-- 1 nobody html 170 Mar 7 14:43 >>> odbcinst.ini.sample >>>> -rw-r--r-- 1 nobody html 170 Mar 7 14:43 odbcinst.ini >>>> -rw-r--r-- 1 nobody html 473 Mar 7 14:43 >> odbc.ini.sample >>>> -rw-r--r-- 1 nobody html 473 Mar 7 14:43 odbc.ini >>>> -rwxr--r-- 1 nobody html 23260 Mar 7 14:43 inifile* >>>> >>>> /usr/local/openlink/odbcsdk: >>>> total 20 >>>> drwxr-xr-x 2 nobody html 4096 Mar 30 15:16 lib/ >>>> drwxr-xr-x 2 nobody html 4096 Mar 30 15:16 include/ >>>> drwxr-xr-x 2 nobody html 4096 Mar 30 15:16 examples/ >>>> drwxr-xr-x 2 nobody html 4096 Mar 30 15:16 driver/ >>>> drwxr-xr-x 2 nobody html 4096 Mar 30 15:16 doc/ >>>> >>>> and then here is the odbcsdk directory tree: >>>> >>>> [root=pts/1]3:51pm@content:{/usr/local/openlink}> ll -r odbcsdk/* >>>> odbcsdk/lib: >>>> total 976 >>>> -rw-r--r-- 1 nobody html 272057 Mar 7 14:42 >> oplodbc.so.1.0.0 >>>> lrwxrwxrwx 1 nobody html 16 Mar 30 15:16 >> oplodbc.so.1 -> >>>> oplodbc.so.1.0.0 >>>> lrwxrwxrwx 1 nobody html 16 Mar 30 15:16 oplodbc.so -> >>>> oplodbc.so.1.0.0 >>>> -rw-r--r-- 1 nobody html 678 Mar 7 14:42 oplodbc.la >>>> -rw-r--r-- 1 nobody html 431992 Mar 7 14:42 oplodbc.a >>>> -rwxr-xr-x 1 nobody html 117877 Mar 7 14:42 >>> libiodbc.so.2.1.2* >>>> lrwxrwxrwx 1 nobody html 17 Mar 30 15:16 >> libiodbc.so.2 -> >>>> libiodbc.so.2.1.2* >>>> lrwxrwxrwx 1 nobody html 17 Mar 30 15:16 libiodbc.so -> >>>> libiodbc.so.2.1.2* >>>> -rwxr-xr-x 1 nobody html 669 Mar 7 14:42 libiodbc.la* >>>> -rw-r--r-- 1 nobody html 143692 Mar 7 14:42 libiodbc.a >>>> >>>> odbcsdk/include: >>>> total 136 >>>> -rw-r--r-- 1 nobody html 11973 Mar 7 14:42 udbcext.h >>>> -rw-r--r-- 1 nobody html 6362 Mar 7 14:42 sqltypes.h >>>> -rw-r--r-- 1 nobody html 67955 Mar 7 14:42 sqlext.h >>>> -rw-r--r-- 1 nobody html 28728 Mar 7 14:42 sql.h >>>> -rw-r--r-- 1 nobody html 1161 Mar 7 14:42 isqltypes.h >>>> -rw-r--r-- 1 nobody html 1158 Mar 7 14:42 isqlext.h >>>> -rw-r--r-- 1 nobody html 1140 Mar 7 14:42 isql.h >>>> >>>> odbcsdk/examples: >>>> total 112 >>>> -rw-r--r-- 1 nobody html 10321 Mar 7 14:42 odbctest.c >>>> -rwxr-xr-x 1 nobody html 92225 Mar 7 14:42 odbctest* >>>> -rw-r--r-- 1 nobody html 3460 Mar 7 14:42 Makefile >>>> >>>> odbcsdk/driver: >>>> total 124 >>>> -rw-r--r-- 1 nobody html 119187 Mar 7 14:42 odbc_src.taz >>>> >>>> odbcsdk/doc: >>>> total 16 >>>> -rw-r--r-- 1 nobody html 773 Mar 7 14:42 odbcinst.ini >>>> -rw-r--r-- 1 nobody html 1010 Mar 7 14:42 odbc.ini >>>> -rw-r--r-- 1 nobody html 5127 Mar 7 14:42 odbc.doc >>>> >>>> >>>>> -----Original Message----- >>>>> From: Andrew Hill [mailto:ahill@openlinksw.com] >>>>> Sent: Friday, March 30, 2001 2:57 PM >>>>> To: Daevid Vincent; php-db@lists.php.net; PHP General >>>>> Subject: [PHP] RE: what exactly are /path/to/blah looking >> for? .h? .so? >>>>> .a? what?! >>>>> >>>>> >>>>> Daevid, >>>>> >>>>> It's the path/to/odbcsdk >>>>> It's looking for libiodbc.so >>>>> >>>>> :) >>>>> >>>>> Best regards, >>>>> Andrew >>>> >>> >> >> >> -- >> PHP Database Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net >> For additional commands, e-mail: php-db-help@lists.php.net >> To contact the list administrators, e-mail: php-list-admin@lists.php.net >> >

« previous php.general (#46698) next »