Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle using PHP oci8 HELP!!

Status
Not open for further replies.

cgswong

MIS
Nov 27, 2000
202
US
Hi,

I'm running Red Hat 8 with Apache 2 and Oracle9i R2 client installed. I need to connect to some remote Oracle databases so I am trying to install PHP 4.3.1 with the "--with-oci8[=DIR]" option. The "./configure" went through okay but the "make" afterwards gives numerous errors relating to oci8. Below is a sample:

/opt/php-4.3.1/ext/oci8/oci8.c:5289: `OCI_TYPECODE_TABLE' undeclared (first use in this function)
/opt/php-4.3.1/ext/oci8/oci8.c:5290: `OCI_TYPECODE_VARRAY' undeclared (first use in this function)
/opt/php-4.3.1/ext/oci8/oci8.c:5297: request for member `in_call' in something not a structure or union
/opt/php-4.3.1/ext/oci8/oci8.c:5297: request for member `in_call' in something not a structure or union
/opt/php-4.3.1/ext/oci8/oci8.c:5297: parse error before ')' token
/opt/php-4.3.1/ext/oci8/oci8.c:5297: request for member `in_call' in something not a structure or union
/opt/php-4.3.1/ext/oci8/oci8.c:5310: request for member `in_call' in something not a structure or union
/opt/php-4.3.1/ext/oci8/oci8.c:5310: request for member `in_call' in something not a structure or union
/opt/php-4.3.1/ext/oci8/oci8.c:5310: parse error before ')' token
/opt/php-4.3.1/ext/oci8/oci8.c:5310: request for member `in_call' in something not a structure or union
/opt/php-4.3.1/ext/oci8/oci8.c:5323: request for member `in_call' in something not a structure or union
/opt/php-4.3.1/ext/oci8/oci8.c:5323: request for member `in_call' in something not a structure or union
/opt/php-4.3.1/ext/oci8/oci8.c:5323: request for member `pEnv' in something not a structure or union
/opt/php-4.3.1/ext/oci8/oci8.c:5323: request for member `elem_ref' in something not a structure or union
/opt/php-4.3.1/ext/oci8/oci8.c:5323: `OCI_DURATION_SESSION' undeclared (first use in this function)
/opt/php-4.3.1/ext/oci8/oci8.c:5323: `OCI_TYPEGET_HEADER' undeclared (first use in this function)

The full thing is WAY TOO LONG. The full options for the "./configure" I can post if anyone wants. I have a deadline of this week PLEASE HELP ME!!

Thanks.

The ONE ( HP-UX + Solaris + AIX + Tru64 = Unix)
 
HI,

You use oracle 9, but yet you compile php with oracle 8? I wonder if that matter. Usually people use oracle 8 with php.

regards,
feroz
 
Well there's no option to configure PHP with Oracle9i but you're point is taken. Perhaps installing Oracle8/8i would make the install succeed but it's Oracle9i that I need to work with.

Thanks.

The ONE ( HP-UX + Solaris + AIX + Tru64 = Unix)
 
HI,

I suggest you try with php developer on using oracle 9 with php.

When you run ./configure with options, I wonder if you be able to run make after that and ignore the error mesage. Have you try that? Sometimes you can just ignore the error.

regards,
feroz
 
wongyc2k,

Did you ever find a solution to this problem in your original post?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top