php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24606 Compile Error- Unable to install OpenLink IODBC Support
Submitted: 2003-07-11 10:10 UTC Modified: 2003-07-11 11:29 UTC
From: wolf at nbm dot com Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 4.3.2 OS: Red Hat Linux 8.0
Private report: No CVE-ID: None
 [2003-07-11 10:10 UTC] wolf at nbm dot com
Description:
------------
Installed latest 5.0 OpenLink client and verified it is working correctly. 

OpenLink installed in /usr/local/openlink

Tried to Compile PHP with the following options:
--enable-dbase --with-mysql=/usr/local/mysql 
--with-zlib --enable-ftp --with-mcrypt=/usr/local/lib 
--enable-trans-sid --with-imap=/usr/local/imap 
--with-imap-ssl --with-kerberos 
--with-apache=../apache_1.3.27 
--with-iodbc=/usr/local/openlink


Got this error on make:
In file included from /usr/install/php-4.3.2/ext/odbc/php_odbc.c:37:
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:94:18: isql.h: No such file or directory
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:95:21: isqlext.h: No such file or directory
In file included from /usr/install/php-4.3.2/ext/odbc/php_odbc.c:37:
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:208: parse error before "HENV"
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:208: warning: no semicolon at end of struct or union
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:209: warning: data definition has no type or storage class
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:211: `SQL_MAX_MESSAGE_LENGTH' undeclared here (not in a function)
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:214: parse error before '}' token
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:214: warning: data definition has no type or storage class
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:220: parse error before "SDWORD"
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:220: warning: no semicolon at end of struct or union
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:221: warning: data definition has no type or storage class
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:224: parse error before "HSTMT"
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:224: warning: no semicolon at end of struct or union
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:226: parse error before '*' token
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:226: warning: data definition has no type or storage class
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:227: parse error before "numcols"
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:227: warning: data definition has no type or storage class
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:228: parse error before "numparams"
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:228: warning: data definition has no type or storage class
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:235: parse error before '*' token
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:235: warning: data definition has no type or storage class
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:236: parse error before '}' token
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:236: warning: data definition has no type or storage class
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:252: `SQL_MAX_MESSAGE_LENGTH' undeclared here (not in a function)
/usr/install/php-4.3.2/ext/odbc/php_odbc_includes.h:255: confused by earlier errors, bailing out
make: *** [ext/odbc/php_odbc.lo] Error 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-11 10:22 UTC] kalowsky@php.net
and what does the dir struct under /usr/local/openlink look like?
 [2003-07-11 10:35 UTC] wolf at nbm dot com
openlink
openlink/bin
openlink/bin/w3config
openlink/bin/w3config/html 
   (omitted html subdirectories for HTML admin interface)
openlink/bin/w3config/include
openlink/lib
 [2003-07-11 10:49 UTC] kalowsky@php.net
Well that would explain it.  Do you know what the w3config dir is, and if it's standard in all 5.0 releases?
 [2003-07-11 11:04 UTC] wolf at nbm dot com
The w3config directory is just for an HTML admin interface. To the best of my knowledge it is common to both this and the previous version of OpenLink. OpenLink runs a custom HTML daemon so a Web browser can be used to configure it. They do the same thing on the the server side.

Also, in case it helps, here are the contents of the /lib directory:

-rwxr-xr-x    1 root     root          732 Apr  1 14:29 libiodbc.la
lrwxrwxrwx    1 root     root           17 Jul 10 11:54 libiodbc.so -> libiodbc.so.2.1.7
lrwxrwxrwx    1 root     root           17 Jul 10 11:54 libiodbc.so.2 -> libiodbc.so.2.1.7
-rwxr-xr-x    1 root     root       235964 Apr  1 14:29 libiodbc.so.2.1.7
lrwxrwxrwx    1 root     root           17 Jul 10 11:54 libodbc.so -> libiodbc.so.2.1.7
-rwxr-xr-x    1 root     root          719 Apr  1 14:29 oplodbc.la
-rwxr-xr-x    1 root     root       304328 Apr  1 14:29 oplodbc.so
-rwxr-xr-x    1 root     root          726 Apr  1 14:29 oplodbcu.la
-rwxr-xr-x    1 root     root       324456 Apr  1 14:29 oplodbcu.so
 [2003-07-11 11:14 UTC] kalowsky@php.net
Can you also share with me the contents of w3config/include?

BTW where did you grab this install?  The iODBC site still only lists 3.0.6 as the latest version.  
 [2003-07-11 11:23 UTC] wolf at nbm dot com
openlink/bin/w3config/include:
total 120
-rw-r--r--    1 root     root         2285 Apr  1 14:29 auth.tcl
-rw-r--r--    1 root     root         5896 Apr  1 14:29 common.tcl
-rw-r--r--    1 root     root        11509 Apr  1 14:29 drivers.ini
-rw-r--r--    1 root     root         3344 Apr  1 14:29 dsntest.tcl
-rw-r--r--    1 root     root         5370 Apr  1 14:29 forms.tcl
-rw-r--r--    1 root     root          781 Apr  1 14:29 globals.tcl
-rw-r--r--    1 root     root         2309 Jul 10 11:54 menu.ini
-rw-r--r--    1 root     root         2010 Apr  1 14:29 mrdefh.tcl
-rw-r--r--    1 root     root         2303 Apr  1 14:29 navigator.tcl
-rw-r--r--    1 root     root        15003 Apr  1 14:29 odbcdsn.tcl
-rw-r--r--    1 root     root         3352 Apr  1 14:29 rulebook.tcl
-rw-r--r--    1 root     root        18479 Apr  1 14:29 template.ini
-rw-r--r--    1 root     root         1053 Apr  1 14:29 txact.tcl
-rw-r--r--    1 root     root         7200 Apr  1 14:29 udbcdsn.tcl
-rw-r--r--    1 root     root        13340 Apr  1 14:29 wizard.tcl

These are just for the HTML interface...

What iODBC site? The documentation says to provide the path to the OpenLink install directory, which I assumed ment the OpenLink ODBC Client install directory (as I indicated in my original message). Perhaps I just have the wrong install?
 [2003-07-11 11:27 UTC] kalowsky@php.net
http://www.iodbc.org

That directory listed does not have the C files.  As such I'm pretty convinced that what you have downloaded is not the iODBC driver manager (which is what is supported by PHP).  You might want to goto iODBC and download the driver manager to give that a try.  I'm going to mark this as BOGUS, although you might wish to open up a documentation bug requesting clarification.
 [2003-07-11 11:29 UTC] wolf at nbm dot com
Thanks. The iODBC PHP documentation isn't very clear on this... I will go to www.iodbc.org and follow the instructions there. Sorry for the waste of time.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 04:01:29 2024 UTC