By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,122 Members | 1,689 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,122 IT Pros & Developers. It's quick & easy.

Experience with PHP & Oracle 9.2.0/OCI8

P: n/a
Hello,

I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9
system. The link succeeds but everytime I try to run php, I get a SEGV from
inside the libcnltsh.so library.

354 [18:31] roberto@ausone:Build/php-4.3.2> ldd /opt/php4/bin/php
libsablot.so.0 => /usr/local/lib/libsablot.so.0
libstdc++.so.5 => /usr/local/lib/libstdc++.so.5
libm.so.1 => /usr/lib/libm.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libexpat.so.0 => /usr/local/lib/libexpat.so.0
libpdf.so.1 => /usr/local/lib/libpdf.so.1
libz.so.1 => /usr/lib/libz.so.1
libtiff.so => /usr/local/lib/libtiff.so
libpng12.so.0 => /usr/local/lib/libpng12.so.0
libjpeg.so.62 => /usr/local/lib/libjpeg.so.62
libmysqlclient.so.10 =>
/usr/local/mysql/lib/mysql/libmysqlclient.so.10
libcrypt_i.so.1 => /usr/lib/libcrypt_i.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libldap.so.2 => /usr/local/lib/libldap.so.2
liblber.so.2 => /usr/local/lib/liblber.so.2
libdl.so.1 => /usr/lib/libdl.so.1
libxslt.so.1 => /usr/local/lib/libxslt.so.1
libbz2.so.1 => /usr/lib/libbz2.so.1
libssl.so.0.9.7 => /usr/local/ssl/lib/libssl.so.0.9.7
libcrypto.so.0.9.7 => /usr/local/ssl/lib/libcrypto.so.0.9.7
libresolv.so.2 => /usr/lib/libresolv.so.2
libxml2.so.2 => /usr/local/lib/libxml2.so.2
libiconv.so.2 => /usr/local/lib/libiconv.so.2
libgen.so.1 => /usr/lib/libgen.so.1
libclntsh.so.9.0 =>
/opt/oracle/product/9.2.0/lib32/libclntsh.so.9.0
libc.so.1 => /usr/lib/libc.so.1
libmp.so.2 => /usr/lib/libmp.so.2
libwtc9.so => /opt/oracle/product/9.2.0/lib32/libwtc9.so
libsched.so.1 => /usr/lib/libsched.so.1
libaio.so.1 => /usr/lib/libaio.so.1
librt.so.1 => /usr/lib/librt.so.1
libmd5.so.1 => /usr/lib/libmd5.so.1
/usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
/usr/platform/SUNW,Sun-Fire-280R/lib/libmd5_psr.so.1

(yes I do have a lot of extentions).

Has anybody an idea why?

Stacktrace:

Program received signal SIGSEGV, Segmentation fault.
0xfe1bfc8c in sskgmstat ()
from /opt/oracle/product/9.2.0/lib32/libclntsh.so.9.0
(gdb) where
#0 0xfe1bfc8c in sskgmstat ()
from /opt/oracle/product/9.2.0/lib32/libclntsh.so.9.0
#1 0xfe1bc328 in skgmidrealm ()
from /opt/oracle/product/9.2.0/lib32/libclntsh.so.9.0
#2 0xfe1bbdc8 in skgmlocate ()
from /opt/oracle/product/9.2.0/lib32/libclntsh.so.9.0
#3 0xfe1bb3ac in skgmcrone ()
from /opt/oracle/product/9.2.0/lib32/libclntsh.so.9.0
#4 0xfe1bae98 in skgmcrmany ()
from /opt/oracle/product/9.2.0/lib32/libclntsh.so.9.0
#5 0xfe1b81e0 in skgmcreate ()
from /opt/oracle/product/9.2.0/lib32/libclntsh.so.9.0
#6 0xfde721bc in kgupmcreate_sga ()
from /opt/oracle/product/9.2.0/lib32/libclntsh.so.9.0
#7 0xfde6f9a4 in kgup_startup ()
from /opt/oracle/product/9.2.0/lib32/libclntsh.so.9.0
#8 0xfdda7a54 in kpushInit ()
from /opt/oracle/product/9.2.0/lib32/libclntsh.so.9.0
#9 0xfe1a624c in kpummpin ()
from /opt/oracle/product/9.2.0/lib32/libclntsh.so.9.0
#10 0xfdd9e8ec in kpupin ()
from /opt/oracle/product/9.2.0/lib32/libclntsh.so.9.0
#11 0xfdd556b4 in OCIInitialize ()
from /opt/oracle/product/9.2.0/lib32/libclntsh.so.9.0
#12 0x000782c0 in utf8Strchr(char const*, char const*) ()
at /export/home/roberto/Build/php-4.3.2/ext/oci8/oci8.c:487
#13 0x0015e8cc in zend_startup_module (module=0x1e57a4)
at /export/home/roberto/Build/php-4.3.2/Zend/zend_API.c:1005
#14 0x00131a2c in php_startup_extensions (ptr=0x1f087c, count=2033840)
at /export/home/roberto/Build/php-4.3.2/main/main.c:1033
#15 0x00173b64 in php_startup_internal_extensions ()
at main/internal_functions.c:99
--
Ollivier ROBERT -=- Eurocontrol EEC/AMI -=- ro*****@eurocontrol.fr
Usenet Canal Historique FreeBSD: The Power to Serve!
Jul 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.