php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27339 make error OCINlsCharSetNameToId ...
Submitted: 2004-02-21 01:53 UTC Modified: 2004-02-23 13:13 UTC
From: jjavorsky at usske dot sk Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.3.5RC3 OS: solaris8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jjavorsky at usske dot sk
New email:
PHP Version: OS:

 

 [2004-02-21 01:53 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-21 03:11 UTC] sniper@php.net
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 11:14 UTC] 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-22 22:37 UTC] sniper@php.net
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-23 01:43 UTC] 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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 15:01:27 2024 UTC