Friday, 15 April 2011

php - Dependent module libdb2.a(shr.o) could not be loaded -



php - Dependent module libdb2.a(shr.o) could not be loaded -

i have been trying connect db2 php script.

when include right ibm_db2.so files in php.ini , restart apache next this, not load modules.

also in apache error log see messages like:

php warning: php startup: unable load dynamic library '/opt/freeware/lib/php/modules/ibm_db2_5.2.1.so' -/t0509-022 cannot load module '/opt/freeware/lib/php/modules/ibm_db2_5.2.1.so' \n\t0509-150 dependent module libdb2.a(shr.o) not loaded. \n\t0509-022

any help problem much appreciated.

thank you.

can paste output of:

dump -h /opt/freeware/lib/php/modules/ibm_db2_5.2.1.so

you see lines like:

index path base of operations fellow member 0 /usr/lib:/lib:/usr/lpp/xlc/lib 1 ...

the 0th entry used file called libdb2.a fellow member of shr.o. if libpath not set. if libpath set, components in libpath used. loaded not finding file.

or... can find can not load it. if can find , in place loader should see, extract piece:

ar x libdb2.a shr.o

then do:

dump -h shr.o

rinse , repeat... i.e. find depends upon , see if dependencies exist. there chance shr.o not same bitsize. i.e. have 64 bit application , shr.o 32 bit object file. surprise me possible (if recall correctly). check bit size do:

file shr.o

and have "64 bit" in description if 64 bit binary , not have if 32 bit binary.

good luck

php apache db2 ibm aix

No comments:

Post a Comment