php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20786 Missing Sqlcli and parse error
Submitted: 2002-12-03 06:18 UTC Modified: 2003-01-02 18:41 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: czir50 at yahoo dot com Assigned:
Status: No Feedback Package: ODBC related
PHP Version: 4.2.2 OS: RH 8.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: czir50 at yahoo dot com
New email:
PHP Version: OS:

 

 [2002-12-03 06:18 UTC] czir50 at yahoo dot com
I'm trying to install PHP with IBM DB2. when i compile php the error will come up I also tried using the latest cvs and older versions same error comes up with the latest and more error in the older version:
help!!!



make[2]: Entering directory `/php-4.1.1/Zend'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/php-4.1.1/Zend'
make[1]: Leaving directory `/php-4.1.1/Zend'
Making install in main
make[1]: Entering directory `/php-4.1.1/main'
make[2]: Entering directory `/php-4.1.1/main'
/bin/sh /php-4.1.1/libtool --silent --mode=compile /php-4.1.1/meta_ccld  -I. -I/php-4.1.1/main -I/php-4.1.1/main -I/php-4.1.1 -I/usr/local/apache//include -I/php-4.1.1/Zend -I/php-4.1.1/ext/mysql/libmysql -I/usr/IBMdb2/V7.1//include -I/php-4.1.1/ext/xml/expat  -D_REENTRANT -I/php-4.1.1/TSRM -DTHREAD=1 -O2 -I /openssl-0.9.6g/include -pthread -DZTS -prefer-pic  -c main.c
/bin/sh /php-4.1.1/libtool --silent --mode=compile /php-4.1.1/meta_ccld  -I. -I/php-4.1.1/main -I/php-4.1.1/main -I/php-4.1.1 -I/usr/local/apache//include -I/php-4.1.1/Zend -I/php-4.1.1/ext/mysql/libmysql -I/usr/IBMdb2/V7.1//include -I/php-4.1.1/ext/xml/expat  -D_REENTRANT -I/php-4.1.1/TSRM -DTHREAD=1 -O2 -I /openssl-0.9.6g/include -pthread -DZTS -prefer-pic  -c internal_functions.c
In file included from internal_functions.c:33:
/php-4.1.1/ext/odbc/php_odbc.h:178:21: sqlcli1.h: No such file or directory
In file included from internal_functions.c:33:
/php-4.1.1/ext/odbc/php_odbc.h:270: parse error before "SQLHANDLE"
/php-4.1.1/ext/odbc/php_odbc.h:270: warning: no semicolon at end of struct or union
/php-4.1.1/ext/odbc/php_odbc.h:271: warning: data definition has no type or storage class
/php-4.1.1/ext/odbc/php_odbc.h:273: `SQL_MAX_MESSAGE_LENGTH' undeclared here (not in a function)
/php-4.1.1/ext/odbc/php_odbc.h:276: parse error before '}' token
/php-4.1.1/ext/odbc/php_odbc.h:276: warning: data definition has no type or storage class
/php-4.1.1/ext/odbc/php_odbc.h:282: parse error before "SDWORD"
/php-4.1.1/ext/odbc/php_odbc.h:282: warning: no semicolon at end of struct or union
/php-4.1.1/ext/odbc/php_odbc.h:283: warning: data definition has no type or storage class
/php-4.1.1/ext/odbc/php_odbc.h:286: parse error before "SQLHANDLE"
/php-4.1.1/ext/odbc/php_odbc.h:286: warning: no semicolon at end of struct or union
/php-4.1.1/ext/odbc/php_odbc.h:288: parse error before '*' token
/php-4.1.1/ext/odbc/php_odbc.h:288: warning: data definition has no type or storage class
/php-4.1.1/ext/odbc/php_odbc.h:289: parse error before "numcols"
/php-4.1.1/ext/odbc/php_odbc.h:289: warning: data definition has no type or storage class
/php-4.1.1/ext/odbc/php_odbc.h:290: parse error before "numparams"
/php-4.1.1/ext/odbc/php_odbc.h:290: warning: data definition has no type or storage class
/php-4.1.1/ext/odbc/php_odbc.h:297: parse error before '*' token
/php-4.1.1/ext/odbc/php_odbc.h:297: warning: data definition has no type or storage class
/php-4.1.1/ext/odbc/php_odbc.h:298: parse error before '}' token
/php-4.1.1/ext/odbc/php_odbc.h:298: warning: data definition has no type or storage class
/php-4.1.1/ext/odbc/php_odbc.h:314: `SQL_MAX_MESSAGE_LENGTH' undeclared here (not in a function)
/php-4.1.1/ext/odbc/php_odbc.h:319: parse error before "odbc_result"
/php-4.1.1/ext/odbc/php_odbc.h:320: parse error before '*' token
/php-4.1.1/ext/odbc/php_odbc.h:320: warning: data definition has no type or storage class
/php-4.1.1/ext/odbc/php_odbc.h:322: parse error before "HDBC"
/php-4.1.1/ext/odbc/php_odbc.h:323: parse error before '*' token
/php-4.1.1/ext/odbc/php_odbc.h:323: warning: data definition has no type or storage class
/php-4.1.1/ext/odbc/php_odbc.h:325: parse error before '*' token
/php-4.1.1/ext/odbc/php_odbc.h:329: parse error before '*' token
/php-4.1.1/ext/odbc/php_odbc.h:273: storage size of `lasterrormsg' isn't known
make[2]: *** [internal_functions.lo] Error 1
make[2]: Leaving directory `/php-4.1.1/main'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/php-4.1.1/main'
make: *** [install-recursive] Error 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-03 06:22 UTC] derick@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
 [2002-12-03 06:29 UTC] msopacua@php.net
User reported he also tried the latest CVS.

Please provide the error messages, for the latest CVS snapshot, so we can check the proper linenumbers etc.

Secondly - do you have the headers for IBM-DB2 installed?

Thirdly - please provide the output of config.nice in the source tree for the latest CVS and upgrade the Version to the snapshot timestamp.
 [2002-12-03 06:34 UTC] sniper@php.net
I can not reproduce this with latest CVS and DB2 7.1.
Most likely an user error (something is missing).

 [2002-12-03 07:44 UTC] kalowsky@php.net
Most importantly, what is your config line, and where is your DB2 installed.  
 [2003-01-02 18:41 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2005-03-30 22:06 UTC] robernet at gmail dot com
Check that you have set a correct directory pointing to DB2 libs like this:
./configure --with-ibm-db2=/home/db2inst1/sqllib
and compile again
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 15:01:28 2024 UTC