[omniORB] link error

Cai Yu caiyu@126.com
Tue, 01 Dec 1998 18:35:12 +0100


Yeah , you are correct . I can run the examples now .

Regards/Cai

Sai-Lai Lo wrote:
> 
> Actually, it looks more like you are using the pre-built libraries which
> can only be used with SUN's C++ compiler. If you have to use gcc, you have
> to rebuild the whole distribution.
> 
> Regards,
> 
> Sai-Lai
> 
> >>>>> Doug Anderson writes:
> 
> > Looks like you need to add -lexc after your -lpthread on the link line.
> > Cheers,
> > Doug
> 
> > -----Original Message-----
> > From: Cai Yu <caiyu@126.com>
> > To: omniorb-list <omniorb-list@orl.co.uk>
> > Date: Tuesday, December 01, 1998 5:39 AM
> > Subject: [omniORB] link error
> 
> >> Hi:
> >>
> >> I am new for Omniorb & CORBA , I use omniorb 2.61 on Sun Sparc 5 with
> >> gcc 2.7.2 . and get link error like below . and I can't find any
> >> solution from archie . can you tell me how to solve this problem ?
> >>
> >> I have set the LD_LIBRARY_PATH and started the omniNames
> >>
> >> $gmake
> >> + rm -f diner
> >> + g++ -o diner -fhandle-exceptions -Wall -Wno-unused -R
> >> ../../../lib/sun4_sosV_5.5 -L../../../lib/sun4_sosV_5.5 diner.o
> >> -lomnithread -lpthread -lposix4
> >> Undefined first referenced
> >> symbol      in file
> >> run_undetached__11omni_threadPv     diner.o
> >> __0oJ__RT_USERctPcPv
> >> ../../../lib/sun4_sosV_5.5/libomnithread.so
> >> __0OnwUi
> >> ../../../lib/sun4_sosV_5.5/libomnithread.so
> >> __14omni_conditionP10omni_mutex     diner.o
> >> _ex_throw
> >> ../../../lib/sun4_sosV_5.5/libomnithread.so
> >> _ex_alloc
> >> ../../../lib/sun4_sosV_5.5/libomnithread.so
> >> start__11omni_thread                diner.o
> >> _ex_keylock
> >> ../../../lib/sun4_sosV_5.5/libomnithread.so
> >> _._14omni_condition                 diner.o
> >> _ex_rethrow_q
> >> ../../../lib/sun4_sosV_5.5/libomnithread.so
> >> signal__14omni_condition            diner.o
> >> _._10omni_mutex                     diner.o
> >> __0OdlPv
> >> ../../../lib/sun4_sosV_5.5/libomnithread.so
> >> __10omni_mutex                      diner.o
> >> unlock__10omni_mutex                diner.o
> >> _._11omni_thread                    diner.o
> >> lock__10omni_mutex                  diner.o
> >> sleep__11omni_threadUlUl            diner.o
> >> wait__14omni_condition              diner.o
> >> __11omni_threadPvQ211omni_thread10priority_t diner.o
> >> __Q211omni_thread6init_t            diner.o
> >> ld: fatal: Symbol referencing errors. No output written to diner
> >> make: *** [diner] Error 1
> >>
> >>
> >> Regards/Cai
> 
> --
> Dr. Sai-Lai Lo                          |       Research Scientist
>                                         |
> E-mail:         S.Lo@orl.co.uk          |       Olivetti & Oracle Research Lab
>                                         |       24a Trumpington Street
> Tel:            +44 223 343000          |       Cambridge CB2 1QA
> Fax:            +44 223 313542          |       ENGLAND