Hi All
I am working for porting across unix flavours. A shared library program using dlopen, dlsym etc worked on linux. But when I tried it on hp Unix 64 bit; it did not work.
mytest.pc pro c program whose shared library is required.
prog.c c program in which I am calling function of mytest.pc(using dlopen,dlsym etc)
Following is my build script for the programs.
proc iname=mytest.pc sqlcheck=full code=cpp user=ml/ml@base35db
aCC -g -c mytest.c -o mytest.o +DD64 -D_ARCH_PARISC -D_COMPILER_ACC -D_BITS_64 +Z -I/oracle/precomp/public -I/oracle/rdbms/demo -I/oracle/rdbms/public -L/oracle/lib /oracle/precomp/lib/cobsqlintf.o -lclntsh `cat /oracle/lib/sysliblist` -lm
aCC +DD64 -b -o mytest.sl mytest.o -L/oracle/lib /oracle/precomp/lib/cobsqlintf.o -lclntsh `cat /oracle/lib/sysliblist` -lm
aCC +DD64 -g -o run prog.c lpthread
It compiled correctly but gave segmentation fault. When I tried it with gdb it gave following error :-
Version of shared library /lib/pa20_64/libpthread.1 not understood.
Please help me to solve the problem if possible for anyone.
Thanks in Advance.