Hi All
when i am calling libencode.so from function using external library(libtest.so) i am getting below error in db2diag.log means ,its n't able to get the proper GCC library from DB2 Datatbase.
---------------------------------------------
2011-02-25-12.33.48.663266+300 E1493A1058 LEVEL: Error (OS)
PID : 33095922 TID : 1 PROC : db2fmp (8901) 0
INSTANCE: db2test NODE : 000
EDUID : 1 EDUNAME: db2fmp (8901) 0
FUNCTION: DB2 UDB, oper system services, sqloAIXLoadModuleTryShr, probe:130
CALLED : OS, -, dlopen
OSERR : ENOENT (2) "A file or directory in the path name does not exist."
MESSAGE : Attempt to load specified library failed.
DATA #1 : Library name or path, 37 bytes
/home/db2test/Ranjit/lib/libtest.so
DATA #2 : shared library load flags, PD_TYPE_LOAD_FLAGS, 4 bytes
2
DATA #3 : String, 416 bytes
0509-022 Cannot load module /home/db2test/Ranjit/lib/libtest.so.
0509-150 Dependent module libgcc_s.a(shr.o) could not be loaded.
0509-022 Cannot load module libgcc_s.a(shr.o).
0509-026 System error: A file or directory in the path name does not exist.
0509-022 Cannot load module /home/db2test/Ranjit/lib/libtest.so.
0509-150 Dependent module /home/db2test/Ranjit/lib/libtest.so could not be loaded.
2011-02-25-12.33.48.664507+300 E2552A957 LEVEL: Error (OS)
PID : 33095922 TID : 1 PROC : db2fmp (8901) 0
INSTANCE: db2test NODE : 000
EDUID : 1 EDUNAME: db2fmp (8901) 0
FUNCTION: DB2 UDB, oper system services, sqloAIXLoadModuleTryShr, probe:140
----------------------------------------------
Please help me which environment path needs to set in DB2 for LIBRARY linking.
[db2test@blrtmp04 db2dump]$ ldd /home/db2test/Ranjit/lib/libtest.so
/home/db2test/Ranjit/lib/libtest.so needs:
/usr/lib/libc.a(shr_64.o)
/home/db2test/OPENSSL/lib//libcrypto.a(libcrypto64.so.0.9.8)
/home/db2test/GCCTools/gcc-4.5.1/lib/gcc/powerpc-ibm-aix6.1.0.0/4.5.1/pthread//libgcc_s.a(shr.o)
/unix
/usr/lib/libcrypt.a(shr_64.o)
/usr/lib/libpthreads.a(shr_xpg5_64.o)
/usr/lib/libc.a(shr.o)
/usr/lib/libpthreads.a(shr_xpg5.o)
/usr/lib/libcrypt.a(shr.o)
/usr/lib/libpthreads.a(shr_comm.o)
Please help me in this.
Regards,
ranjit