php cvs and oci8 not working.
| From: | Timothy Wojtaszek | Date: | Sat, 21 Apr 2001 07:30:11 +0000 |
| Subject: | php cvs and oci8 not working. | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-2846@lists.php.net to get a copy of this message | ||
Moving forward in this php experiment I am trying to get oci8 setup but when I run make I first off it doesn't like this:
--- oci8.c @ line: 100
#ifdef ZTS
int oci_globals_id;
#else
PHP_OCI_API php_oci_globals oci_globals;
#endif
-- end
tim@powerpuffer:/opt/Project_Yuuto/php_cvs/php4/ext/oci8$ make
make[1]: Entering directory `/opt/Project_Yuuto/php_cvs/php4/ext/oci8'
/bin/sh /opt/Project_Yuuto/php_cvs/php4/libtool --silent --mode=compile gcc -I.
-I/opt/Project_Yuuto/php_cvs/php4/ext/oci8 -I/opt/Project_Yuuto/php_cvs/php4/ma
in -I/opt/Project_Yuuto/php_cvs/php4 -I/opt/apache/include -I/opt/Project_Yuuto/
php_cvs/php4/Zend -I/opt/u01/app/oracle/product/8.1.7/rdbms/public -I/opt/u01/ap
p/oracle/product/8.1.7/rdbms/demo -I/opt/Project_Yuuto/php_cvs/php4/ext/xml/expa
t/xmltok -I/opt/Project_Yuuto/php_cvs/php4/ext/xml/expat/xmlparse -I/opt/Project
_Yuuto/php_cvs/php4/TSRM -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -I../T
SRM -g -O2 -pthread -c oci8.c && touch oci8.slo
oci8.c: In function `php_if_ocicollappend':
oci8.c:4361: `oci_globals' undeclared (first use in this function)
oci8.c:4361: (Each undeclared identifier is reported only once
oci8.c:4361: for each function it appears in.)
oci8.c: In function `php_if_ocicolldategetelem':
oci8.c:4485: `oci_globals' undeclared (first use in this function)
oci8.c: In function `php_if_ocicolldateassignelem':
oci8.c:4595: `oci_globals' undeclared (first use in this function)
oci8.c: In function `php_if_ocicolldateappendelem':
oci8.c:4689: `oci_globals' undeclared (first use in this function)
oci8.c: In function `php_if_ocicollgetelem':
oci8.c:4741: `oci_globals' undeclared (first use in this function)
oci8.c: In function `php_if_ocicollassign':
oci8.c:4828: `oci_globals' undeclared (first use in this function)
oci8.c: In function `php_if_ocicollassignelem':
oci8.c:4889: `oci_globals' undeclared (first use in this function)
oci8.c: In function `php_if_ocicollsize':
oci8.c:4972: `oci_globals' undeclared (first use in this function)
oci8.c: In function `php_if_ocicollmax':
oci8.c:4994: `oci_globals' undeclared (first use in this function)
oci8.c: In function `php_if_ocicolltrim':
oci8.c:5020: `oci_globals' undeclared (first use in this function)
oci8.c: In function `php_if_ocinewcollection':
oci8.c:5062: `oci_globals' undeclared (first use in this function)
make[1]: *** [oci8.slo] Error 1
make[1]: Leaving directory `/opt/Project_Yuuto/php_cvs/php4/ext/oci8'
make: *** [all-recursive] Error 1
however, I was feeling playful so I just defined both and did away with the #ifdef construct, but then I get :
....
oci8.c:4904: invalid type argument of `->'
oci8.c:4912: invalid type argument of `->'
...
anyway...has anywone been able to get the php4_cvs and oci8 to compile? I have oracle 8.1.7, apache2, Debian 2.2
-tim