ID: 27339 Updated by: [EMAIL PROTECTED] Reported By: jjavorsky at usske dot sk -Status: Open +Status: Bogus Bug Type: OCI8 related Operating System: solaris8 PHP Version: 4.3.5RC3 New Comment:
See also: http://www.vikconsulting.com/forums/Oracle_Forum/posts/2233.html Previous Comments: ------------------------------------------------------------------------ [2004-02-23 01:43:21] jjavorsky at usske dot sk OCI8_VERSION=10.1 If I add /opt/oracle/client/lib to LD_LIBRARY_PATH nothing happend. I try add /opt/oracle/client/lib32 to LD_LIBRARY_PATH and build was complete.But when I restart Oracle HTTP Server there was error: /opt/oracle/midtier/Apache/Apache/bin/apachectl start: execing httpd Syntax error on line 232 of /opt/oracle/midtier/Apache/Apache/conf/httpd.conf: Cannot load /opt/oracle/midtier/Apache/Apache/libexec/libphp4.so into server: ld.so.1: /opt/oracle/midtier/Apache/Apache/bin/httpd: fatal: /opt/oracle/client//lib/libclntsh.so.10.1: wrong ELF class: ELFCLASS64 ------------------------------------------------------------------------ [2004-02-22 22:37:20] [EMAIL PROTECTED] Give us the output of these commands: # cat Makefile | grep OCI8_VERSION # ls -l /opt/oracle/client/lib You should add /opt/oracle/client/lib into your LD_LIBRARY_PATH, as those are the oracle libraries PHP uses. ------------------------------------------------------------------------ [2004-02-21 11:14:15] jjavorsky at usske dot sk Yes I use the latest snapshot. In that machine I installed only Oracle 10g. My environment variable are: ORACLE_HOME=/opt/oracle/client LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/opt/oracle/midtier/lib PERL5LIB=/opt/oracle/midtier/perl/lib/5.6.1:/opt/oracle/midtier/perl/lib/site_perl/5.6.1 ------------------------------------------------------------------------ [2004-02-21 03:11:30] [EMAIL PROTECTED] Are you sure you don't have some old oracle headers/libs in that machine which get included somehow? Did you use fresh sources? ------------------------------------------------------------------------ [2004-02-21 01:53:38] jjavorsky at usske dot sk Description: ------------ I have Oracle 10g AS 9.0.4 installed at /opt/oracle/midtier and /opt/oracle/infra Oracle Client 10g installed at /opt/oracle/client gcc version 3.2 SunOS ebusiness 5.8 Generic_108528-26 sun4u I use command: ./configure --with-apxs=/opt/oracle/midtier/Apache/Apache/bin/apxs --prefix=/opt/oracle/midtier --with-config-file-path=/opt/oracle/midtier/Apache/Apache/conf --with-oci8=/opt/oracle/client --enable-sigchild Everything good. But when I try make it returns me error. Reproduce code: --------------- Undefined first referenced symbol in file OCINlsCharSetNameToId ext/oci8/oci8.lo OCINlsEnvironmentVariableGet ext/oci8/oci8.lo OCIEnvNlsCreate ext/oci8/oci8.lo ld: fatal: Symbol referencing errors. No output written to sapi/cli/php collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27339&edit=1