Oracle and ROOT

Hi,

I compiled root (v5.34.04) with oracle support and wanted to use the root features with oracle. I am using scientific linux 6.3 (64 bit) with the kernel 2.6.32-279.19.1.el6.x86_64 .For compiling with root I followed the following steps:

Installed the oracle instant client + SDK for Linux ( oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64.rpm + instantclient-sdk-linux.x64-11.2.0.3.0.zip ) version 11.2.0.3 from the oracle website
Build root using the following configuration : ./configure --enable-oracle --enable-gdml --with-oracle-libdir=/usr/lib/oracle/11.2/client64/lib --with-oracle-incdir=/usr/include/oracle/11.2/client64

This is the output of the dynamic dependencies of the libOracle.so
ldd libOracle.so
linux-vdso.so.1 => (0x00007fffe5dff000)
libNet.so => /home/arnab/products/root_v5.34.04/lib/libNet.so (0x00007f4bdf2a6000)
libocci.so.11.1 => /usr/lib/oracle/11.2/client64/lib/libocci.so.11.1 (0x00007f4bdf04e000)
libCore.so => /home/arnab/products/root_v5.34.04/lib/libCore.so (0x00007f4bde693000)
libCint.so => /home/arnab/products/root_v5.34.04/lib/libCint.so (0x00007f4bddd12000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f4bdd9e7000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f4bdd7d1000)
libc.so.6 => /lib64/libc.so.6 (0x00007f4bdd43e000)
libRIO.so => /home/arnab/products/root_v5.34.04/lib/libRIO.so (0x00007f4bdd030000)
libMathCore.so => /home/arnab/products/root_v5.34.04/lib/libMathCore.so (0x00007f4bdcbf1000)
libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x00007f4bdc857000)
libssl.so.10 => /usr/lib64/libssl.so.10 (0x00007f4bdc5fb000)
libm.so.6 => /lib64/libm.so.6 (0x00007f4bdc377000)
libz.so.1 => /lib64/libz.so.1 (0x00007f4bdc161000)
libpcre.so.0 => /lib64/libpcre.so.0 (0x00007f4bdbf34000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f4bdbd30000)
/lib64/ld-linux-x86-64.so.2 (0x0000003f10e00000)
libThread.so => /home/arnab/products/root_v5.34.04/lib/libThread.so (0x00007f4bdbadc000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f4bdb89a000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f4bdb5bb000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f4bdb3b7000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f4bdb18a000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4bdaf6d000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f4bdad61000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f4bdab5e000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f4bda944000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f4bda724000)

When I try to call using the TSQLServer class like

TSQLServer *server = TSQLServer::Connect(“oracle://localhost:1521/xe”, “test”, “test_pass”);
I get the following error

root.exe: symbol lookup error: /usr/lib/oracle/11.2/client64/lib/libocci.so.11.1: undefined symbol: OCIEnvCreate
what is wrong here ?How to solve this?

Thanks
Arnab