PHP 4.0 Bug #8658 Updated: Php DSO complains of missing structure member
| From: | tmuller at yahoo dot com | Date: | Fri, 19 Jan 2001 01:34:16 +0000 |
| Subject: | PHP 4.0 Bug #8658 Updated: Php DSO complains of missing structure member | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-44519@lists.php.net to get a copy of this message | ||
ID: 8658
User Update by: tmuller@yahoo.com
Status: Open
Bug Type: Compile Problem
Description: Php DSO complains of missing structure member
Well, another fun solaris include bug....more macros.
It seems after consulting a more knowledgable person, that solaris is #defining open to open64 in
#include <fcntl.h>.
I think this points to a bigger problem. The problem being the use of RESERVED words in a structure
declaration. The word open is such a word (for some OS's and would work quite well on others
if the parameter was called "phpopen" for example.
The best fix would be to re-define these functions to have non-RESERVED word usage, but the quick
hack is to NOT include <fcntl.h> and put the appropriate #defines in the file as well. Email
me if you'd like the hack to get it working.
Previous Comments:
---------------------------------------------------------------------------
[2001-01-11 13:17:57] tmuller@yahoo.com
Solaris 2.6 + Dec 13th recommended
Apache 1.3.14+mod_perl
mod_jserv DSO
php DSO (trying)
After configuring with the following:
./configure
--with-apxs=/usr/local/apache/bin/apxs
--enable-versioning
--with-oci8=/u01/app/oracle/product/8.1.7
--enable-track-vars
--with-mm=/usr/local/mm-1.1.3
I get this after running a make:
make[3]: Entering directory `/camaro/u/newbuild/php-4.0.4/ext/oci8'
/bin/sh /camaro/u/newbuild/php-4.0.4/libtool --silent --mode=compile gcc -I.
-I/camaro/u/newbuild/php-4.0.4/ext/oci8 -I/camaro/u/newbuild/php-4.0.4/main
-I/camaro/u/newbuild/php-4.0.4 -I/usr/local/apache/include -I/camaro/u/newbuild/php-4.0.4/Zend
-I/camaro/u/newbuild/php-4.0.4/ext/mysql/libmysql -I/u01/app/oracle/product/8.1
.7/rdbms/public -I/u01/app/oracle/product/8.1.7/rdbms/demo -I/usr/local/include
-I/camaro/u/newbuild/php-4.0.4/ext/xml/expat/xmltok -I/camaro/u/newbuild/php-4.0.4/e
xt/xml/expat/xmlparse -I/camaro/u/newbuild/php-4.0.4/TSRM -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=260
-DMOD_PERL -DUSE_PERL_SSI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_EXPAT -DXML_BYTE_ORDER=21
-g -O2 -c oci8.c
oci8.c: In function `oci_get_conn':
oci8.c:829: structure has no member named `open64'
oci8.c: In function `oci_get_stmt':
oci8.c:845: structure has no member named `open64'
oci8.c: In function `oci_execute':
oci8.c:1203: structure has no member named `open64'
oci8.c:1204: structure has no member named `open64'
oci8.c:1205: structure has no member named `open64'
oci8.c: In function `_oci_open_session':
oci8.c:1855: structure has no member named `open64'
oci8.c:1968: structure has no member named `open64'
oci8.c: In function `_oci_close_session':
oci8.c:2001: structure has no member named `open64'
oci8.c: In function `_oci_open_server':
oci8.c:2093: structure has no member named `open64'
oci8.c:2137: structure has no member named `open64'
oci8.c: In function `_oci_session_cleanup':
oci8.c:2180: structure has no member named `open64'
oci8.c: In function `_oci_close_server':
oci8.c:2195: structure has no member named `open64'
oci8.c:2196: structure has no member named `open64'
oci8.c:2200: structure has no member named `open64'
oci8.c:2206: structure has no member named `open64'
oci8.c: In function `oci_do_connect':
oci8.c:2357: structure has no member named `open64'
make[3]: *** [oci8.lo] Error 1
make[3]: Leaving directory `/camaro/u/newbuild/php-4.0.4/ext/oci8'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/camaro/u/newbuild/php-4.0.4/ext/oci8'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/camaro/u/newbuild/php-4.0.4/ext'
make: *** [all-recursive] Error 1
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8658