Oracle and ROOT


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- + ) version 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
ldd => (0x00007fffe5dff000) => /home/arnab/products/root_v5.34.04/lib/ (0x00007f4bdf2a6000) => /usr/lib/oracle/11.2/client64/lib/ (0x00007f4bdf04e000) => /home/arnab/products/root_v5.34.04/lib/ (0x00007f4bde693000) => /home/arnab/products/root_v5.34.04/lib/ (0x00007f4bddd12000) => /usr/lib64/ (0x00007f4bdd9e7000) => /lib64/ (0x00007f4bdd7d1000) => /lib64/ (0x00007f4bdd43e000) => /home/arnab/products/root_v5.34.04/lib/ (0x00007f4bdd030000) => /home/arnab/products/root_v5.34.04/lib/ (0x00007f4bdcbf1000) => /usr/lib64/ (0x00007f4bdc857000) => /usr/lib64/ (0x00007f4bdc5fb000) => /lib64/ (0x00007f4bdc377000) => /lib64/ (0x00007f4bdc161000) => /lib64/ (0x00007f4bdbf34000) => /lib64/ (0x00007f4bdbd30000)
/lib64/ (0x0000003f10e00000) => /home/arnab/products/root_v5.34.04/lib/ (0x00007f4bdbadc000) => /lib64/ (0x00007f4bdb89a000) => /lib64/ (0x00007f4bdb5bb000) => /lib64/ (0x00007f4bdb3b7000) => /lib64/ (0x00007f4bdb18a000) => /lib64/ (0x00007f4bdaf6d000) => /lib64/ (0x00007f4bdad61000) => /lib64/ (0x00007f4bdab5e000) => /lib64/ (0x00007f4bda944000) => /lib64/ (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/ undefined symbol: OCIEnvCreate
what is wrong here ?How to solve this?