Jump to content

php 5.2.1 compile fails with oci8


crisis

Recommended Posts

I'm having a hard time compiling PHP 5.2.1 with oci8.  configure runs fine, but make fails.

 

I have the oracle instant client, and envs set.  Here is some related info:

 

LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.2/client/lib

ORACLE_HOME=/usr/lib/oracle/10.2.0.2/client

NLS_LANG=English_America.WE8ISO8859P1

 

configure:

./configure     \
        --with-apxs2=/usr/local/apache2/bin/apxs \
        --disable-cgi \
        --with-zlib \
        --with-gettext \
        --with-gdbm \
        --with-layout=GNU \
        --disable-ipv6 \
        --with-openssl \
        --with-zlib \
        --with-curl \
        --with-curlwrappers \
        --enable-soap \
        --enable-wddx \
        --with-xsl \
        --with-pear \
        --enable-memory-limit \
        --enable-zend-multibyte \
        --with-ibm-db2=/home/db2inst1/sqllib \
        --with-oci8 \
        --enable-sigchild

 

make fails with:

/root/php-5.2.1/ext/oci8/oci8.c: In function `php_oci_column_to_zval':
/root/php-5.2.1/ext/oci8/oci8.c:1589: error: invalid operands to binary *
/root/php-5.2.1/ext/oci8/oci8.c:1590: error: `ub4' undeclared (first use in this function)
/root/php-5.2.1/ext/oci8/oci8.c:1590: error: syntax error before "lob_length"
/root/php-5.2.1/ext/oci8/oci8.c:1594: error: `column' undeclared (first use in this function)
/root/php-5.2.1/ext/oci8/oci8.c:1595: error: `value' undeclared (first use in this function)
/root/php-5.2.1/ext/oci8/oci8.c:1604: error: `SQLT_RDD' undeclared (first use in this function)
/root/php-5.2.1/ext/oci8/oci8.c:1608: error: syntax error before ')' token
/root/php-5.2.1/ext/oci8/oci8.c:1615: error: request for member `lob_size' in something not a structure or union
/root/php-5.2.1/ext/oci8/oci8.c:1616: error: request for member `lob_current_position' in something not a structure or union
/root/php-5.2.1/ext/oci8/oci8.c:1617: error: request for member `buffering' in something not a structure or union
/root/php-5.2.1/ext/oci8/oci8.c:1620: error: `mode' undeclared (first use in this function)
/root/php-5.2.1/ext/oci8/oci8.c:1623: error: `lob_length' undeclared (first use in this function)
/root/php-5.2.1/ext/oci8/oci8.c: At top level:
/root/php-5.2.1/ext/oci8/oci8.c:1664: error: syntax error before "zval"
/root/php-5.2.1/ext/oci8/oci8.c: In function `php_oci_fetch_row':
/root/php-5.2.1/ext/oci8/oci8.c:1666: error: `z_statement' undeclared (first use in this function)
/root/php-5.2.1/ext/oci8/oci8.c:1666: error: invalid type argument of `unary *'
/root/php-5.2.1/ext/oci8/oci8.c:1667: error: invalid operands to binary *
/root/php-5.2.1/ext/oci8/oci8.c:1668: error: `column' undeclared (first use in this function)
/root/php-5.2.1/ext/oci8/oci8.c:1669: error: `ub4' undeclared (first use in this function)
/root/php-5.2.1/ext/oci8/oci8.c:1669: error: syntax error before "nrows"
/root/php-5.2.1/ext/oci8/oci8.c:1673: error: `expected_args' undeclared (first use in this function)
/root/php-5.2.1/ext/oci8/oci8.c:1676: error: `ht' undeclared (first use in this function)
/root/php-5.2.1/ext/oci8/oci8.c:1681: error: `mode' undeclared (first use in this function)
/root/php-5.2.1/ext/oci8/oci8.c:1713: error: syntax error before ')' token
/root/php-5.2.1/ext/oci8/oci8.c:1713: error: `return_value' undeclared (first use in this function)
/root/php-5.2.1/ext/oci8/oci8.c:1715: error: `nrows' undeclared (first use in this function)
/root/php-5.2.1/ext/oci8/oci8.c:1721: error: request for member `ncolumns' in something not a structure or union
/root/php-5.2.1/ext/oci8/oci8.c:1733: error: `element' undeclared (first use in this function)
/root/php-5.2.1/ext/oci8/oci8.c:1735: error: syntax error before ')' token
/root/php-5.2.1/ext/oci8/oci8.c:1762: error: invalid type argument of `->'
/root/php-5.2.1/ext/oci8/oci8.c:1762: error: `orig_ptr' undeclared (first use in this function)
/root/php-5.2.1/ext/oci8/oci8.c:1762: error: syntax error before ')' token
/root/php-5.2.1/ext/oci8/oci8.c:1762: error: invalid type argument of `unary *'
/root/php-5.2.1/ext/oci8/oci8.c:1762: warning: passing arg 1 of `_zval_copy_ctor' makes pointer from integer without a cast
/root/php-5.2.1/ext/oci8/oci8.c:1762: error: invalid type argument of `->'
/root/php-5.2.1/ext/oci8/oci8.c:1762: error: invalid type argument of `->'
/root/php-5.2.1/ext/oci8/oci8.c:1762: error: invalid type argument of `->'
/root/php-5.2.1/ext/oci8/oci8.c:1762: error: invalid type argument of `->'
/root/php-5.2.1/ext/oci8/oci8.c:1762: warning: passing arg 1 of `_zval_dtor' makes pointer from integer without a cast
/root/php-5.2.1/ext/oci8/oci8.c:1762: error: invalid type argument of `unary *'
/root/php-5.2.1/ext/oci8/oci8.c:1762: warning: passing arg 1 of `_zval_copy_ctor' makes pointer from integer without a cast
/root/php-5.2.1/ext/oci8/oci8.c:1762: error: invalid type argument of `->'
/root/php-5.2.1/ext/oci8/oci8.c:1762: error: invalid type argument of `->'
/root/php-5.2.1/ext/oci8/oci8.c:1764: error: request for member `ncolumns' in something not a structure or union
/root/php-5.2.1/ext/oci8/oci8.c: In function `php_oci_persistent_helper':
/root/php-5.2.1/ext/oci8/oci8.c:1774: error: `connection' undeclared (first use in this function)
/root/php-5.2.1/ext/oci8/oci8.c:1779: error: syntax error before ')' token
/root/php-5.2.1/ext/oci8/oci8.c:1782: error: request for member `in_call' in something not a structure or union
/root/php-5.2.1/ext/oci8/oci8.c:1796: error: request for member `persistent_timeout' in something not a structure or union
/root/php-5.2.1/ext/oci8/oci8.c:1797: error: request for member `persistent_timeout' in something not a structure or union
/root/php-5.2.1/ext/oci8/oci8.c:1800: error: request for member `ping_interval' in something not a structure or union
/root/php-5.2.1/ext/oci8/oci8.c:1801: error: request for member `ping_interval' in something not a structure or union
/root/php-5.2.1/ext/oci8/oci8.c:1808: error: request for member `persistent_timeout' in something not a structure or union
make: *** [ext/oci8/oci8.lo] Error 1

 

 

Any ideas?  Thanks!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.