Hi Tomás, Thanks for your answer and help; it was fruitful. Your patch works.
In the meantime, I have downloaded the snapshot mico-2011-03-11.tar.bz2 and made a patch for mico-2.3.13 with only the code/files impacted by the use of gcc > 4.4. You can find enclosed the patch. Best regards Bruno Magne -----Message d'origine----- De : Tomás Staig [mailto:tomas.st...@gmail.com] Envoyé : jeudi 26 avril 2012 14:08 À : Bruno MAGNE Objet : Re: [mico-devel] typecode assertion failed on gcc 4.4 El 26-04-2012 6:44, Bruno MAGNE escribió: > Hi Karel, > > It seems that there was no follow-up for this point since 2009. > > Today, we are using mico 2.3.13 on RHEL6 (gcc 4.4.6) and we got the same > error when building the IDLs with the command > > idl -I. -Dxxx --c++-suffix cpp MyModule.idl > > The output was > > [3930027083 - 3077474128] typecode.cc:1877: assertion failed > > > The IDL contains the following declaration: > > typedef struct EventDataStruct { > string value; > string type; > sequence<EventDataStruct> subDataSeq; > } EventData; > > > According to my colleague, the error could be there with the second parameter. > > void NotifyEvent(in unsigned long iEventTypeID, > in sequence<EventData> eventDataSeq, > in string strEventName); > > > Any idea ? > > Best Regards > > Bruno Magne > > -----Message d'origine----- > De : mico-devel-boun...@mico.org [mailto:mico-devel-boun...@mico.org] De la > part de Karel Gardas > Envoyé : mardi 20 octobre 2009 17:17 > À : Gabriel Alejandro Zamora Nelson > Cc : mico-de...@mico.org > Objet : Re: [mico-devel] typecode assertion failed on gcc 4.4 > > > Hello, > > could you be so kind and try to test with GCC 3.x version? Or at most > 4.0.x/4.1.x/4.2.x and let us know if this works for you? I suspect there > is some issue going in between MICO sources and GCC 4.x|x>= 3. > > Cheers, > Karel > > Gabriel Alejandro Zamora Nelson wrote: >> I'm trying to run a component over mico 2.3.13 compiled with gcc versión >> 4.4.1 >> 20090725 (Red Hat 4.4.1-2) (GCC), but i get a error: >> >> [1331846356 - 3074423664] typecode.cc:1877: assertion failed >> >> Some idea? >> >> _______________________________________________ >> Mico-devel mailing list >> mico-de...@mico.org >> http://www.mico.org/mailman/listinfo/mico-devel >> > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > Mico-devel mailing list > Mico-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mico-devel I'm not sure if this is the same problem I had at some point, but there was a change in GCC (from 3.x to 4.x) which doesn't allow to use a value outside the enum in a switch of an specific enum type. So when a value is of kind TK_RECURSIVE it is considered to be the default case instead. This is already fixed in the main branch of Mico, I don't know why no one replied to the thread. We had to apply the following patch. I hope it helps you. --- mico_old/include/mico/tckind.h 2010-11-19 10:54:08.109375000 -0300 +++ mico/include/mico/tckind.h 2010-11-19 10:56:04.515625000 -0300 @@ -63,7 +63,8 @@ tk_value_box, tk_native, tk_abstract_interface, - tk_local_interface + tk_local_interface, + TK_RECURSIVE = 0xffffffff }; typedef TCKind& TCKind_out; --- mico_old/orb/typecode.cc 2010-11-19 10:54:10.125000000 -0300 +++ mico/orb/typecode.cc 2010-11-19 10:55:30.546875000 -0300 @@ -46,8 +46,6 @@ using namespace std; -#define TK_RECURSIVE ((int)0xffffffff) - /********************************************************************/
mico-2.3.13_gcc44.patch
Description: Binary data
PGP.sig
Description: PGP signature
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Mico-devel mailing list Mico-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mico-devel