Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » Issue with ETSI LibCommon(TITAN - TTCN-3 variant - ETSI LibCommon)
Issue with ETSI LibCommon [message #1771442] Fri, 25 August 2017 06:20 Go to next message
Yann Garcia is currently offline Yann GarciaFriend
Messages: 145
Registered: June 2016
Senior Member
Dear All,

I just build a new version of TITAN based on the github repositiry and I got a strange issue while building the ETSI LibCommon.
For instance, in the module LibCommon_DataStrings.ttcn, I got the error
../ttcn/LibCommon_DataStrings.ttcn:29:5: note: In type definition `Bit1':
../ttcn/LibCommon_DataStrings.ttcn:29:43: error: No encoding rules defined for type `bitstring'

The Bit1 is declared as:
type bitstring Bit1 length(1) with {variant "FIELDLENGTH(1)" }; //with {encode "length(1)"};

Do you have any hit to fix it?

Many thanks in advance for your support,

Yann

[Updated on: Fri, 25 August 2017 06:21]

Report message to a moderator

Re: Issue with ETSI LibCommon [message #1771458 is a reply to message #1771442] Fri, 25 August 2017 09:19 Go to previous messageGo to next message
Gyorgy Rethy is currently offline Gyorgy RethyFriend
Messages: 31
Registered: April 2015
Member
Hi Yann,
It compiles with the release /6 R2A for me, so I think this behaviour shall be related to the ongoing implementation of the new standard feature of multiple encoding of a type.
In earlier Titan versions, if Titan recognized by the syntax that a variant attribute belongs to a given encoding, assigned this encoding to the type implicitly. This will not work with multiple encodings, the encode specification shall be explicit.
I cannot ask our developer right now what is the current status, but I propose to add
with { encode "RAW"}
after the closing bracket of the module.

Just a hint: Titan RAW codec, if no FIELDLENGTH is attached to a fix-length restricted type, will use the type's length restriction. So, it should be enough simply comment out "with {encode "length(1)"};" :-)
Re: Issue with ETSI LibCommon [message #1771459 is a reply to message #1771442] Fri, 25 August 2017 09:19 Go to previous messageGo to next message
Gyorgy Rethy is currently offline Gyorgy RethyFriend
Messages: 31
Registered: April 2015
Member
<browser was too slow, posted the same answer 3 times :-( ; superfluous instances are deleted>

[Updated on: Fri, 25 August 2017 09:24]

Report message to a moderator

Re: Issue with ETSI LibCommon [message #1771460 is a reply to message #1771442] Fri, 25 August 2017 09:19 Go to previous messageGo to next message
Gyorgy Rethy is currently offline Gyorgy RethyFriend
Messages: 31
Registered: April 2015
Member
<browser was too slow, posted the same answer 3 times :-( ; superfluous instances are deleted>

[Updated on: Fri, 25 August 2017 09:24]

Report message to a moderator

Re: Issue with ETSI LibCommon [message #1771466 is a reply to message #1771460] Fri, 25 August 2017 10:28 Go to previous messageGo to next message
Yann Garcia is currently offline Yann GarciaFriend
Messages: 145
Registered: June 2016
Senior Member
Hello Gyorgy,

Thanks a lot.
I'm going to come back to release /6 R2A

Have a nice WE,

Yann
Re: Issue with ETSI LibCommon [message #1771470 is a reply to message #1771466] Fri, 25 August 2017 11:27 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Yann,

you can try the new compiler option:

-e: enforce legacy handling of 'encode' and 'variant' attributes


BR

Elemer
Re: Issue with ETSI LibCommon [message #1771474 is a reply to message #1771470] Fri, 25 August 2017 11:37 Go to previous message
Yann Garcia is currently offline Yann GarciaFriend
Messages: 145
Registered: June 2016
Senior Member
Hello Elemer,

OK, I'll try it.

Thanks a lot

Yann
Previous Topic:How to fork a Titan process
Next Topic:Chat with STOMP over WebSocket in Titan part 1
Goto Forum:
  


Current Time: Wed Apr 24 22:41:38 GMT 2024

Powered by FUDForum. Page generated in 0.03442 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top