1752720 Members
5589 Online
108789 Solutions
New Discussion юеВ

Re: HPWS + PDO_OCI

 
Nils Erdmann
New Member

HPWS + PDO_OCI

Hi,

I have some problems including the Oracle PDO extension to the HPWS. While compiling, I get the error message that the file "zend_exceptions.h" was not found (and it's not there ;D ).

Version information:
HP-UX B.11.23 U ia64
HPWS B.2.0.58.01

What I've done before this error:

1. download the package from pecl.php.net
2. unpack and phpize
3. export ORACLE_HOME=/opt/oracle10g/10.2.0/
4. ./configure --with-php-config=/opt/hpws/apache/php/bin/php-config

Here the complete output of make (maybe it helps)

/bin/sh /opt/hpws/apache/php/bin/PDO_OCI-1.0/libtool --mode=compile cc -I/opt/hpws/apache/php/include/php/ext -I. -I/opt/hpws/apache/php/bin/PDO_OCI-1.0 -DPHP_ATOM_INC -I/opt/hpws/apache/php/bin/PDO_OCI-1.0/include -I/opt/hpws/apache/php/bin/PDO_OCI-1.0/main -I/opt/hpws/apache/php/bin/PDO_OCI-1.0 -I/opt/hpws/apache/php/include/php -I/opt/hpws/apache/php/include/php/main -I/opt/hpws/apache/php/include/php/TSRM -I/opt/hpws/apache/php/include/php/Zend -I/opt/hpws/apache/php/include/php/ext -I/opt/hpws/apache/php/include/php/ext/date/lib -I/opt/oracle10g/10.2.0//rdbms/public -I/opt/oracle10g/10.2.0//rdbms/demo -I/opt/oracle10g/10.2.0//plsql/public -DHAVE_CONFIG_H -c /opt/hpws/apache/php/bin/PDO_OCI-1.0/oci_driver.c -o oci_driver.lo
libtool: compile: cc -I/opt/hpws/apache/php/include/php/ext -I. -I/opt/hpws/apache/php/bin/PDO_OCI-1.0 -DPHP_ATOM_INC -I/opt/hpws/apache/php/bin/PDO_OCI-1.0/include -I/opt/hpws/apache/php/bin/PDO_OCI-1.0/main -I/opt/hpws/apache/php/bin/PDO_OCI-1.0 -I/opt/hpws/apache/php/include/php -I/opt/hpws/apache/php/include/php/main -I/opt/hpws/apache/php/include/php/TSRM -I/opt/hpws/apache/php/include/php/Zend -I/opt/hpws/apache/php/include/php/ext -I/opt/hpws/apache/php/include/php/ext/date/lib -I/opt/oracle10g/10.2.0//rdbms/public -I/opt/oracle10g/10.2.0//rdbms/demo -I/opt/oracle10g/10.2.0//plsql/public -DHAVE_CONFIG_H -c /opt/hpws/apache/php/bin/PDO_OCI-1.0/oci_driver.c -DPIC -o .libs/oci_driver.o
Warning 129: "/opt/hpws/apache/php/include/php/Zend/zend.h", line 111 # Redefinition of macro
'DL_LOAD' differs from previous definition at
["/opt/hpws/apache/php/include/php/Zend/zend.h", line 105].
# define DL_LOAD(libname) dlopen(libname, RTLD_LAZY | RTLD_GLOBAL)
^^^^^^^
Error 112: "/opt/hpws/apache/php/bin/PDO_OCI-1.0/oci_driver.c", line 32 # Include file
"Zend/zend_exceptions.h" not found.
#include "Zend/zend_exceptions.h"
^^^^^^^^^^^^^^^^^^^^^^^^
Warning 942: "/opt/hpws/apache/php/bin/PDO_OCI-1.0/oci_driver.c", line 442 # Types 'const
unsigned char *' and 'char *' are not assignment-compatible.
H->charset = OCINlsCharSetNameToId(pdo_oci_Env, vars[0].optval);
^^^^^^^^^^^^^^
*** Error exit code 1

Stop.

I hope somebody can help me
Nils
5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: HPWS + PDO_OCI

>I get the error message that the file "zend_exceptions.h" was not found (and it's not there).

Have you tried using find(1) to search the whole /opt/hpws tree?

Have you looked at the source in oci_driver.c to see if there are some #if that would skip that #include?
Nils Erdmann
New Member

Re: HPWS + PDO_OCI

Hi,

The includes is not surrounded by an if condition or something like this.

I tried to fix the problem by copying the file from php source package. This solves this problem, but creates many other probs.

Here they are:

ld: Unsatisfied symbol "php_file_le_pstream" in file .libs/oci_statement.o
ld: Unsatisfied symbol "php_info_print_table_header" in file .libs/pdo_oci.o
ld: Unsatisfied symbol "_ecalloc" in file .libs/oci_driver.o
ld: Unsatisfied symbol "_emalloc" in file .libs/oci_driver.o
ld: Unsatisfied symbol "_erealloc" in file .libs/oci_statement.o
ld: Unsatisfied symbol "_zend_bailout" in file .libs/oci_driver.o
ld: Unsatisfied symbol "php_pdo_parse_data_source" in file .libs/oci_driver.o
ld: Unsatisfied symbol "php_pdo_stmt_delref" in file .libs/oci_statement.o
ld: Unsatisfied symbol "spprintf" in file .libs/oci_driver.o
ld: Unsatisfied symbol "php_error_docref0" in file .libs/oci_driver.o
ld: Unsatisfied symbol "php_info_print_table_end" in file .libs/pdo_oci.o
ld: Unsatisfied symbol "_estrndup" in file .libs/oci_statement.o
ld: Unsatisfied symbol "php_info_print_table_start" in file .libs/pdo_oci.o
ld: Unsatisfied symbol "ts_resource_ex" in file .libs/oci_statement.o
ld: Unsatisfied symbol "php_pdo_unregister_driver" in file .libs/pdo_oci.o
ld: Unsatisfied symbol "php_file_le_stream" in file .libs/oci_statement.o
ld: Unsatisfied symbol "zend_throw_exception_ex" in file .libs/oci_driver.o
ld: Unsatisfied symbol "php_pdo_register_driver" in file .libs/pdo_oci.o
ld: Unsatisfied symbol "_php_stream_read" in file .libs/oci_statement.o
ld: Unsatisfied symbol "php_pdo_stmt_addref" in file .libs/oci_statement.o
ld: Unsatisfied symbol "zend_hash_index_find" in file .libs/oci_driver.o
ld: Unsatisfied symbol "_zval_copy_ctor_func" in file .libs/oci_driver.o
ld: Unsatisfied symbol "convert_to_long" in file .libs/oci_driver.o
ld: Unsatisfied symbol "zend_hash_destroy" in file .libs/oci_statement.o
ld: Unsatisfied symbol "php_pdo_get_exception" in file .libs/oci_driver.o
ld: (Warning) Unsatisfied symbol "main" in file /usr/lib/hpux32/libc.so
ld: Unsatisfied symbol "zend_fetch_resource" in file .libs/oci_statement.o
ld: Unsatisfied symbol "pdo_parse_params" in file .libs/oci_driver.o
ld: Unsatisfied symbol "add_next_index_string" in file .libs/oci_driver.o
ld: Unsatisfied symbol "add_next_index_long" in file .libs/oci_driver.o
ld: Unsatisfied symbol "_estrdup" in file .libs/oci_driver.o
ld: Unsatisfied symbol "_convert_to_string" in file .libs/oci_statement.o
ld: Unsatisfied symbol "_php_stream_alloc" in file .libs/oci_statement.o
ld: Unsatisfied symbol "_efree" in file .libs/oci_driver.o
ld: Unsatisfied symbol "_zval_dtor_func" in file .libs/oci_statement.o

Some other good ideas ?

Nils
Dennis Handly
Acclaimed Contributor

Re: HPWS + PDO_OCI

ld: Unsatisfied symbol "php_file_le_pstream"
ld: (Warning) Unsatisfied symbol "main"
>Some other good ideas?

Are you trying to create a shlib? If so, you need to add "-b" to the link line.

Nils Erdmann
New Member

Re: HPWS + PDO_OCI

Hi,

Oh, forgot to say... yes it should be a shared lib.

Futhermore I found a line directly before the error:

(Bundled) cc: warning 922: "-b" is unsupported in the bundled compiler, ignored.

If this is what you mean, you have a solution for this?

Nils
Dennis Handly
Acclaimed Contributor

Re: HPWS + PDO_OCI

>I found a line directly before the error:
(Bundled) cc: warning 922: "-b" is unsupported in the bundled compiler, ignored.

This is telling you that you are not suppose to use the bundled C compiler to do software development. You must purchase the HP C/aC++ compiler.

>If this is what you mean, you have a solution for this?

Now that you say it, yes. ;-)
Yes, pay for the real compiler or convert that link line to use ld(1) directly.