SPARC Solaris 2.4 using 4.0.1 SPARC C++ compiler.
My application comprises of an executable and a number of shared libraries.
One of the shared libraries is an interface to Oracle using OCI calls. This
shared (database) library was built as follows:
ld -G -dy -B symbolic -o my_shared_lib.so mod1.o mod2.o ... Oracle static
libraries ... more libraries..
mod1.o, mod2.o ... were compiled with the -PIC option.
Now, when I run my application, I crash, with a bad opcode, whenever any
Oracle function is accessed from the mod1.o mod2.o ... modules. If I link the
Oracle static libraries with the executable, then everything is fine. However,
that is not what I want.
How can I get the above to work, or is it not possible? Any comments/advice
will be greatfully appreciated.
Thanks in advance,
555 Twin Dolphin Drive #400 Voice: (415)594-8754
Redwood City, CA 94065 Fax: (415)594-8645