php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32089 Crash during Make with Oracle Instant Client Support
Submitted: 2005-02-23 23:36 UTC Modified: 2005-03-01 02:00 UTC
From: andrew dot nagy at villanova dot edu Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4CVS-2005-02-23 (stable) OS: Fedora Core 3
Private report: No CVE-ID: None
 [2005-02-23 23:36 UTC] andrew dot nagy at villanova dot edu
Description:
------------
I am running FC3 and am trying to compile PHP4 from snaps with Oracle Instant Client support.  I installed all 4 rpms from Oracle's site and the ./configure runs fine.  However during the make process it crashes right around the Oracle section.

[root@localhost php4-STABLE-200502230130]# grep -in 'oracle' config.log  |more
616:configure:60531: checking for Oracle (OCI8) support using ORACLE_HOME installation
617:configure:60577: checking for Oracle (OCI8) support using Oracle Instant Client
618:configure:62528: checking Oracle Instant Client directory
619:configure:62540: checking Oracle Instant Client SDK header directory
620:configure:62696: checking Oracle Instant Client version
633:configure:64631: checking for Oracle-ORACLE support
695:configure:82132: gcc -o conftest -g -O2  -L/usr/lib  -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib -Wl,-rpath,/usr/lib/oracle/10.1.0.3/client/lib -L/u
sr/lib/oracle/10.1.0.3/client/lib conftest.c -lcrypt -lpcre -lgmp -ldb-4.2 -ldb-4.2 -lbz2 -lz -lresolv -lm -ldl -lnsl  -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_
err -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lclntsh -lcrypt 1>&5

I will post the results from the make process later.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-24 21:38 UTC] andrew dot nagy at villanova dot edu
Here is the statement from the make process:

/usr/bin/ld: warning: libnnz10.so, needed by /usr/lib/oracle/10.1.0.3/client/lib/libclntsh.so, not found (try using -rpath or -rpath-link)

And then followed by a bunch of statements such as the following:

/usr/lib/oracle/10.1.0.3/client/lib/libclntsh.so: undefined reference to `nzos_ServiceWriteQueue'

Am I doing something wrong with this?  It seems as if these errors should be checked for in the configuration process right?
 [2005-02-24 21:45 UTC] andrew dot nagy at villanova dot edu
Here is the path structure:

]$ ll /usr/lib/oracle/10.1.0.3/client/lib/
total 89576
-r--r--r--  1 root root  1461081 Dec  2 15:03 classes12.jar
-r--r--r--  1 root root     1353 Dec  2 15:03 glogin.sql
lrwxrwxrwx  1 root root       17 Feb 21 20:06 libclntsh.so -> libclntsh.so.10.1
-rwxr-xr-x  1 root root 13495923 Dec  2 15:03 libclntsh.so.10.1
-r-xr-xr-x  1 root root    28400 Dec  2 15:03 libheteroxa10.so
-r-xr-xr-x  1 root root  2121849 Dec  2 15:03 libnnz10.so
lrwxrwxrwx  1 root root       15 Feb 21 20:06 libocci.so -> libocci.so.10.1
-rwxr-xr-x  1 root root   913575 Dec  2 15:03 libocci.so.10.1
-rwxr-xr-x  1 root root 66159152 Dec  2 15:03 libociei.so
-rwxr-xr-x  1 root root    96517 Dec  2 15:03 libocijdbc10.so
-rwxr-xr-x  1 root root   760686 Dec  2 15:03 libsqlplus.so
-r--r--r--  1 root root    54032 Dec  2 15:03 ocrs12.jar
-r--r--r--  1 root root  1397543 Dec  2 15:03 ojdbc14.jar
-r--r--r--  1 root root  5018319 Dec  2 15:03 orai18n.jar

Could the symbolic link becausing this error?
 [2005-02-24 23:45 UTC] tony2001@php.net
`ldconfig -p | grep libnnz` ?
 [2005-02-25 01:15 UTC] andrew dot nagy at villanova dot edu
not there.
 [2005-02-25 10:50 UTC] tony2001@php.net
Please put your make log somewhere on the net, I'll take a look at it.
But don't post it here, give use just the link.
 [2005-02-25 15:36 UTC] andrew dot nagy at villanova dot edu
http://www.webitecture.org/make.log

This seems much shorter since the first time I ran it.  There was many more compile statments before the error.  Let me know if you want me to start over, or if this is enough.
 [2005-02-25 18:13 UTC] tony2001@php.net
Thanks.
Please post also your config.log and tell us what GCC version do you use.
 [2005-02-25 18:15 UTC] tony2001@php.net
Erm... "post" -> "give us link to". 
 [2005-02-25 19:26 UTC] andrew dot nagy at villanova dot edu
gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)

http://webitecture.org/config.log

Anything else?

Thanks!
 [2005-02-25 22:02 UTC] tony2001@php.net
Well, your config.log doesn't help much as it contains no results at all.
I just want to see why in hell your compiler doesn't use -rpath and what ./configure says about it.
Could you try to figure out what's happening there? 
 [2005-02-28 02:33 UTC] andrew dot nagy at villanova dot edu
I deleted my source and started from scratch with the same release: php4-STABLE-200502230130

Here is the output from the configure and make processes:

http://www.webitecture.org/config.log
http://www.webitecture.org/config_output
http://www.webitecture.org/make_log

Im now way past my sys-admin skills, so Im not sure what else to check for that may be causing this problem.
 [2005-02-28 13:52 UTC] sniper@php.net
..and it worked just fine. Please ask further support questions about installing on php-install@lists.php.net mailing list.

 [2005-02-28 15:30 UTC] andrew dot nagy at villanova dot edu
Oh come on, don't think you are getting away that easy :)

The error is still there.  For some reason when I do:
>$ make > make_log it doesn't include the error in the output file, it echo's it to the screen.

I still got the same error:
/usr/bin/ld: warning: libnnz10.so, needed by /usr/lib/oracle/10.1.0.3/client/lib/libclntsh.so, not found (try using -rpath or -rpath-link)
 [2005-02-28 20:36 UTC] sniper@php.net
But I am.


 [2005-03-01 02:00 UTC] andrew dot nagy at villanova dot edu
So, no solution?

I just setup a new server with a fresh install of FC3 and it worked fine, any ideas as to what may be causing this issue with rpath?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC