[omniORB] The STL errors when I build omniEvent ...

Sai-Lai Lo S.Lo@uk.research.att.com
14 Sep 1999 09:58:03 +0100


You seem to have either an incomplete STL installation or some very old
version. Standard C++ or the STL library from SGI all have list and set
headers. You may want to look into your STL installation.

For other build problems please ask Paul.Nader@alcatel.com.au for
advice. He is the author of the event service.

Sai-Lai


>>>>> steven#staff  writes:

> After I add the -I/.../.../... for STL in the dir.mk
> It still can't find the <list> and <set> like before.
> Then I change the include file in the CosEvent_i.h:
> #include <list> ---> #include <list.h>
> #include <set> ---> #include <set.h>
> Then the include files could be found.
> But the new error message become :
> ....
> + rm -f libomniEvents.a
> + ar cq libomniEvents.a CosEvent_i.o
> + ranlib libomniEvents.a
> CC -c -O2 -fsimple  -D__OMNIORB2__ -I../../../stub -DUsePthread -D_REENTRANT
>  -mt
>  -D__STL_NO_NAMESPACES -I/jpc/tim/stl  -I.  -I../../../include -D__sparc__ -
> D__s
> unos__ -D__OSVERSION__=5 -o eventd.o eventd.cc
> "eventd.cc", line 89: Error: The function signal must have a prototype.
> 1 Error(s) detected.
> make: *** [eventd.o] Error 1

> Then I remark the two lines below in the CosEvent_i.h:
> // #ifdef __linux__
> #include <signal.h>
> file:// #endif

> This "signal" problem seem solved. But I am not sure it is a right way to
> slove this problem.
> And I re-make it . The new problem become:
> ....
> + rm -f eventd
> + CC -o eventd -O2 -fsimple -R
> ../../../lib/sun4_sosV_5.6 -L../../../lib/sun4_so
> sV_5.6 eventd.o ../../../stub/NamingSK.o ../../../stub/CosLifeCycleSK.o
> ../../..
> /stub/CosEventCommSK.o ../../../stub/CosEventChannelAdminSK.o
> ../../../stub/Even
> tChannelAdminSK.o ../../../stub/NamingDynSK.o
> ../../../stub/CosLifeCycleDynSK.o
> ../../../stub/CosEventCommDynSK.o ../../../stub/CosEventChannelAdminDynSK.o
> ../.
> ./../stub/EventChannelAdminDynSK.o -lomniORB2 -lomniDynamic2 -lomnithread -l
> pthr
> ead -lposix4 -mt -lsocket -lnsl -ltcpwrapGK libomniEvents.a
> ld: fatal: symbol `operator new(unsigned int, void*)' is multiply defined:
>         (file eventd.o and file libomniEvents.a(CosEvent_i.o));
> ld: fatal: File processing errors. No output written to eventd
> make: *** [eventd] Error 1

> This time I have no any idea.
> What's wrong ?
> Any one can help me ?
> Thank you very much.
> Thank you.


-- 
Sai-Lai Lo                                   S.Lo@uk.research.att.com
AT&T Laboratories Cambridge           WWW:   http://www.uk.research.att.com 
24a Trumpington Street                Tel:   +44 1223 343000
Cambridge CB2 1QA                     Fax:   +44 1223 313542
ENGLAND