php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28776 Make fails when installing ODBC libraries
Submitted: 2004-06-14 17:25 UTC Modified: 2004-12-21 03:59 UTC
Votes:5
Avg. Score:3.6 ± 1.2
Reproduced:5 of 5 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (20.0%)
From: jon dot bertsch at ucop dot edu Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.0.0RC3 OS: SUSE 9.1
Private report: No CVE-ID: None
 [2004-06-14 17:25 UTC] 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.


Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-14 19:29 UTC] jon dot bertsch at ucop dot edu
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.
 [2004-10-11 18:51 UTC] jthiatt at yahoo dot com
I'm getting the same error. I'm using SUSE 9.1 and PHP 5.0.2.  Here are my configure options

--with-apache=../apache --enable-trans-sid --with-zlib-dir=/usr/include --with-mm --enable-exit --with-mysql=/usr/local/mysql --with-ibm-db2=/usr/IBMdb2/V7.1 --with-ldap --with-mcrypt --with-imap --with-gd=/usr/ --with-png-dir=/usr/ --with-jpeg-dir=/usr/ --with-xml --with-openssl --enable-gd-native-tt

I even added the path to unixODBC to the configure options, still no luck.
 [2004-12-21 03:59 UTC] sniper@php.net
Bogus as you could fix it. (and missing information, etc.)
To other people having similar problems: Open new bug report.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 15 19:01:28 2024 UTC