What is this Site!!

All about Real time requirements in Orale Stay Tune!!

Wednesday, November 7, 2007



HP UX 11.0 - Oracle 7.3.4 linking libraries

I have a Corba Service that I have compiled and tested successfully on HP UX 11.0 and with Oracle 8.0.6 in my development environment. But our production boxes have Oracle 7.3.4 (also HP UX 11.0) installed on them. So I complied my server/client using Oracle 7.3.4 -specific libraries
(-L$(ORACLE_HOME)/lib

-lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr

-lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6

-lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lcma -lcl -lm -lcl -lm -lcma)

But now my program dies at the main line and core dumps with a Bus Error.
The backtrace in gdb shows
#0 0xc01339d0 in () from /usr/lib/libc.2
#1 0xc0206cb8 in __thread_atfork () from /usr/lib/libc.2
#2 0xc0204854 in __libc_init () from /usr/lib/libc.2
#3 0xc039fbbc in hp__pre_init_libc () from /usr/lib/libcma.2

DBD

The problem "Libraries need to be re-linked". As the application was developed using higher version of Oracle ..then the lower versions will have these kind of issues.

Also check whether Oracle8 you are using is a 64bit or 32bit...If you have used a 64bit version to develop the apps then I am sure you can't run this in a V7-32bit as the libraries don't match and you need to re-link them....and it's a messy process....but not impossible....be very careful if you wish to re-link the libs....I think the problem lies here.

HTH