views:

27

answers:

0

Hi Everyone?

I have one libA.so. It is used by JNI method.

And I have two different version of Ubuntu. One is Ubuntu 8.04 and the other is Ubuntu 9.10.

libA.so has a dependency. libA.so depends on libB.so and libB.so depends on libC.so.

ie. libA.so -> libB.so -> libC.so (Actually libB.so and libC.so are related with GTK)

The libA.so is compiled in Ubuntu 8.04. And JNI method works fine in Ubuntu 9.10. (very strange)

But It does not work sometimes in Ubuntu 8.04. It returns "undefined symbol GTK_SET_BULA" error.

So I checked it using readelf -a libC.so and I could find the symbol.

I checked it using ldd libA.so and ldd libB.so. The link information is fine also.

I have any idea about this problem. Please let me know your excellent opinion. Thanks.