Error Udate rti me connext 2.2.3 from 2.2.2.1

3 posts / 0 new
Last post
Offline
Last seen: 9 years 11 months ago
Joined: 08/28/2013
Posts: 66
Error Udate rti me connext 2.2.3 from 2.2.2.1

Hi,

I m trying to use new micro edition of connext (2.2.3) but i have some linking problem with OSAPI_xxx.

multiple definition of `global constructors keyed to 65535_0_OSAPI_gv_TraceFunction'

d:/windriver/gnu/4.3.3-vxworks-6.9/lib/gcc/../../include/c++/4.3/exception:119: multiple definition of `OSAPI_gv_TraceFunction'

d:/windriver/gnu/4.3.3-vxworks-6.9/lib/gcc/../../include/c++/4.3/exception:119: multiple definition of `OSAPI_gv_LogFunction'
I don t have the problem with version 2.2.2.1.

In source of rti, in file osapi_log.h we have

OSAPIDllVariable OSAPI_LogDisplay_T OSAPI_gv_LogDisplayFunction;

In fact, the problem comes from include of file generated from IDL.

I am blocked.

Regards,

Rodolf

Offline
Last seen: 5 years 11 months ago
Joined: 01/17/2013
Posts: 22

Hi Rodolf,

The problem is missing extern in the header file. To work around this problem, change the following: 


osapi/osapi_log.h, line 569:

OSAPIDllVariable extern OSAPI_TraceHandler_T OSAPI_gv_TraceFunction;

osapi/osapi_log.h, line 624

OSAPIDllVariable extern OSAPI_LogHandler_T OSAPI_gv_LogFunction;

osapi/osapi_log.h, line 625

OSAPIDllVariable extern void* OSAPI_gv_LogFunctionParam;

osapi/osapi_log.h, line 627

OSAPIDllVariable extern OSAPI_LogDisplay_T OSAPI_gv_LogDisplayFunction;

osapi/osapi_log.h, line 628

OSAPIDllVariable extern void* OSAPI_gv_LogDisplayFunctionParam;

We have fixed this for the next release.

 

Regards,

Edward

Offline
Last seen: 9 years 11 months ago
Joined: 08/28/2013
Posts: 66

Thanks a lot Edward.
I got my vxworks image.

Just my test fails (publish -subscribe). I take a look.

Regards,

Rodolf