Skip to main content



      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 02:20 Go to next message
Eclipse UserFriend
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 02:21] by Moderator

Re: Issue with ETSI LibCommon [message #1771458 is a reply to message #1771442] Fri, 25 August 2017 05:19 Go to previous messageGo to next message
Eclipse UserFriend
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 05:19 Go to previous messageGo to next message
Eclipse UserFriend
<browser was too slow, posted the same answer 3 times :-( ; superfluous instances are deleted>

[Updated on: Fri, 25 August 2017 05:24] by Moderator

Re: Issue with ETSI LibCommon [message #1771460 is a reply to message #1771442] Fri, 25 August 2017 05:19 Go to previous messageGo to next message
Eclipse UserFriend
<browser was too slow, posted the same answer 3 times :-( ; superfluous instances are deleted>

[Updated on: Fri, 25 August 2017 05:24] by Moderator

Re: Issue with ETSI LibCommon [message #1771466 is a reply to message #1771460] Fri, 25 August 2017 06:28 Go to previous messageGo to next message
Eclipse UserFriend
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 07:27 Go to previous messageGo to next message
Eclipse UserFriend
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 07:37 Go to previous message
Eclipse UserFriend
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 Jul 23 16:19:51 EDT 2025

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

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

Back to the top