ID: 28776 User updated by: jon dot bertsch at ucop dot edu Reported By: jon dot bertsch at ucop dot edu Status: Open Bug Type: *Compile Issues Operating System: SUSE 9.1 PHP Version: 5.0.0RC3 New Comment:
I fixed this by recompiling and specifying the path to unixODBC in the configure script. Shouldn't this be flagged when running configure? Maybe BOGUS, sorry for submiting if it is. Previous Comments: ------------------------------------------------------------------------ [2004-06-14 17:25:40] jon dot bertsch at ucop dot edu Description: ------------ Installed php5RC3 on mac OSX 10.3 no problems, Next attempted to install on SUSE 9.1 and the make failed at ODBC library, see below for messages Reproduce code: --------------- In file included from /usr/local/php5/ext/odbc/php_odbc.c:37: /usr/local/php5/ext/odbc/php_odbc_includes.h:94:18: isql.h: No such file or directory /usr/local/php5/ext/odbc/php_odbc_includes.h:95:21: isqlext.h: No such file or directory In file included from /usr/local/php5/ext/odbc/php_odbc.c:37: /usr/local/php5/ext/odbc/php_odbc_includes.h:208: error: parse error before "HENV" /usr/local/php5/ext/odbc/php_odbc_includes.h:208: warning: no semicolon at end of struct or union /usr/local/php5/ext/odbc/php_odbc_includes.h:209: warning: data definition has no type or storage class /usr/local/php5/ext/odbc/php_odbc_includes.h:211: error: `SQL_MAX_MESSAGE_LENGTH' undeclared here (not in a function) /usr/local/php5/ext/odbc/php_odbc_includes.h:214: error: parse error before '}' token /usr/local/php5/ext/odbc/php_odbc_includes.h:214: warning: data definition has no type or storage class /usr/local/php5/ext/odbc/php_odbc_includes.h:220: error: parse error before "SDWORD" /usr/local/php5/ext/odbc/php_odbc_includes.h:220: warning: no semicolon at end of struct or union /usr/local/php5/ext/odbc/php_odbc_includes.h:221: warning: data definition has no type or storage class /usr/local/php5/ext/odbc/php_odbc_includes.h:224: error: parse error before "HSTMT" ... continues for quite a while and ends with ... /usr/local/php5/ext/odbc/php_odbc.c:3625: error: invalid type argument of `->' /usr/local/php5/ext/odbc/php_odbc.c:3627: error: invalid type argument of `->' /usr/local/php5/ext/odbc/php_odbc.c:3628: error: invalid type argument of `->' /usr/local/php5/ext/odbc/php_odbc.c:3629: warning: passing arg 2 of `zend_register_resource' makes pointer from integer without a cast /usr/local/php5/ext/odbc/php_odbc.c: At top level: /usr/local/php5/ext/odbc/php_odbc_includes.h:211: error: storage size of `lasterrormsg' isn't known make: *** [ext/odbc/php_odbc.lo] Error 1 Expected result: ---------------- Expected sucessful make. On this machine isql is available at /usr/bin/isql, Configure had no problems. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28776&edit=1