trouble linking OCI 7.3.2.2 with orbix 2.0.1MT
Date: 1996/10/02
Message-ID: <hiv4tkchoou.fsf_at_scruz.net>#1/1
has anyone figured out how to link a server built with orbix on solaris 2.5 with oracle OCI libs? I built a little program, with out oracle to make the oci stuff was working. I then built a little stub server to make sure the orbix stuff was working correctly. I can not seem to combine the two. I keep getting a core dump in impl_is ready? This is before any oracle functions have been called? The only thing I can figure is it has something to do with the link line? (many oracle is ugly)
I could not figure out the link line, so basically I just copied the link line from the sample OCI program
anyone know what the libsunmath_mt.a is? my oci program did not need it, but when I linked orbix in with oci the link editor became unhappy. I found two version of this lib
/opt/SUNWspro/SC3.0.1/lib/libp/libsunmath_mt.a /opt/SUNWspro/SC3.0.1/lib/libsunmath_mt.a
if I used the one in libp I get a unresolved symbol _mcount?
thanks in advance
Andy (I am using the sparc works c++ compiler)
p.s please respond via email
detected a multithreaded program
(l_at_1) terminated by signal SEGV (Segmentation Fault)
Current function is main
53 CORBA::Orbix.impl_is_ready( argv[0], 0 );
(dbx) where
[1] _lwp_kill(0x0, 0xb, 0x0, 0x0, 0xff00, 0xff), at 0xef63890c
[2] __libthread_segvhdlr(0xb, 0xeffff430, 0xeffff270, 0xeffff1b0, 0xff00, 0xef5f829c), at 0xef5e3030
- called from signal handler with signal 11 (SIGSEGV) ------
- hidden frames, use 'where -h' to see them all ---- [4] CORBA::EnvExcRaiser::maybeRaise(0xeffff650, 0x2, 0xef694f88, 0xef694f88, 0x8, 0x2), at 0xb5844 [5] CORBA::EnvExcRaiser::~EnvExcRaiser(0xeffff650, 0x2, 0x2e02e8, 0x2fc4d8, 0x81010100, 0xff0000), at 0xb5920 [6] CORBA::BOA::impl_is_ready(0x2e02e4, 0xeffff8ac, 0x0, 0x2e02b4, 0x2d756e69, 0x2d696e73), at 0x8c5d8 =>[7] main(argc = 2, argv = 0xeffff76c, envp = 0xeffff778), line 53 in "main.cc" (dbx) list 53 CORBA::Orbix.impl_is_ready( argv[0], 0 ); 54 Install( factory ); 55 } else if ( uninstallFlag ) { 56 CORBA::Orbix.impl_is_ready( argv[0], 0 ); 57 UnInstall(); 58 } else { 59 // normal start up 60 //putenv( "ORACLE_HOME=/opt/oracle/app/oracle/product/7.3.2" ); 61 //putenv( "ORACLE_SID=OR73" ); 62 //putenv( "TWO_TASK=OR73" ); (dbx)
cd ~/Orbix/server/
make
CC -I/opt/Orbix_2.0.1MT/corba2/include -mt -D_REENTRANT -g -I../idlsrc
-I/opt/Orbix_2.0.1MT/NS_1_0beta/corba2/include
-I/opt/oracle/app/oracle/product/7.3.2/rdbms/demo -I../utils -o main.o
../utils/Obj/nameUtil.o ../utils/Obj/printUtil.o ../idlsrc/SalesS.o
-L/opt/Orbix_2.0.1MT/corba2/lib
-L/opt/Orbix_2.0.1MT/NS_1_0beta/corba2/lib
-L/opt/oracle/app/oracle/product/7.3.2/lib
-L/opt/oracle/app/oracle/product/7.3.2/rdmbs/lib -L../utils -lNS
-Bstatic -lorbixmt -Bdynamic -lnsl -lsocket
-L/opt/SUNWspro/SC3.0.1/lib -L/opt/SUNWspro/SC3.0.1/lib/libp
/opt/oracle/app/oracle/product/7.3.2/lib/libclient.a -lsqlnet -lncr
-lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient
-lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3
-lnlsrtl3 -lsocket -lnsl -lm -ldl -lm -lcore3 -lsocket -lnsl -lm -ldl
-R /opt/SUNWcluster/lib -Y
P,.:/opt/SUNWdoe/lib:/opt/SUNWspro/lib:/usr/dt/lib:/opt/SUNWmotif/lib:/opt/SUNWcluster/lib:/usr/ccs/lib:/usr/lib
-Qy -lc /opt/oracle/app/oracle/product/7.3.2/lib/crtn.o CC: Warning:
Option -Qy passed to ld, if ld is invoked, ignored otherwise CC:
Warning: Option -Qy passed to ld, if ld is invoked, ignored otherwise
Compilation finished at Wed Oct 2 13:29:53
Andrew E. Davidson
email: aed_at_scruz.net
voice: (408) 338 - 0888 Received on Wed Oct 02 1996 - 00:00:00 CEST