Hi Friends,
I am sorry, my question is little bigger. In the same way, I am in the need
of your help, Pls help me.
Some functionality of my design is written in SystemC/TLM and I want to use
this in NS2, so while I am trying to create objects and link them I am
getting issue because of conflict between two objects files (One from NS2
another from SystemC envionment) , So I thought to create .so (shared
library) file for TLM environment and use this in NS2 environment.
But my main problem starts with setting of "systemc/TLM " environment
variable, When I do setting as per TLM need and create .so file.
Please see content of .so file
Udit_try-> ldd libmodels.so
linux-gate.so.1 => (0xffffe000)
libdcapi.so =>
/sw/cadence/ius/62isr20080816/lnx86/tools/lib/libdcapi.so (0xf7cfe000)
libdwapi.so =>
/sw/cadence/ius/62isr20080816/lnx86/tools/lib/libdwapi.so (0xf7ca9000)
libsdi2-sst2-gcc_3.2.so =>
/sw/cadence/ius/62isr20080816/lnx86/tools/lib/libsdi2-sst2-gcc_3.2.so(0xf7c7c000)
libscv.so =>
/ext_tools/scv/1.0p2/Linux-i686-syc-2.1-gcc-3.2.3/lib-linux/libscv.so
(0xf79e4000)
libstdc++.so.5 => /ext_tools/gcc/3.2.3/Linux-i686/lib/libstdc++.so.5
(0xf7931000)
libm.so.6 => /lib/tls/libm.so.6 (0xf78da000)
libgcc_s.so.1 => /ext_tools/gcc/3.2.3/Linux-i686/lib/libgcc_s.so.1
(0xf78d2000)
libc.so.6 => /lib/tls/libc.so.6 (0xf77a3000)
libdl.so.2 => /lib/libdl.so.2 (0xf779f000)
/lib/ld-linux.so.2 (0x56555000)
Now I goes to my NS2 environment (In which setting for TLM is not done) and
do
-> ldd libmodels.so
Udit_try>ldd libtlmmodels.so
linux-gate.so.1 => (0xffffe000)
libdcapi.so => not found
libdwapi.so => not found
libsdi2-sst2-gcc_3.2.so => not found
libscv.so => not found
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xf7c99000)
libm.so.6 => /lib/tls/libm.so.6 (0xf7c76000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf7c6c000)
libc.so.6 => /lib/tls/libc.so.6 (0xf7b3d000)
/lib/ld-linux.so.2 (0x56555000)
This means it is not able to get all .so file, which are used to create
"libtlmmodels.so"
So What is right way to avoid this issue ?
I tried to include .so library path in "LD_LIBRARY_PATH" environment
variable, then it is having other .so [e.g libdcapi.so ] file visibility
too.
and when I ran, it is giving me below ERRORS ..
/usr/bin/ld: cannot find -ltlmmodels
collect2: ld returned 1 exit status
I am tired in trying differnt permutation and combination, Please help me,
if possible . I will be very thankfull of you.
Thanks in advance.
Thanks & Regards,
Udit Kumar