Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » LibCommon compilanion issue(Compilation ETSI packages into eclipse titan)
LibCommon compilanion issue [message #1782297] Wed, 21 February 2018 12:48 Go to next message
Jan ii is currently offline Jan iiFriend
Messages: 2
Registered: February 2018
Junior Member
Hello All,

I am currently struggling with compliation of ETSI packages in eclipse titan.
I have installed the eclipse-titan packages, set the paths and run the helloWorld example.

I have downloaded the ETSI packages and I want to build them. During build I am receiving following errors:

Description Resource Path Location Type
Runs on clause mismatch: A definition that runs on component type `@LibCommon_SyncExamples.ExampleComp' cannot activate altstep `@LibCommon_Sync.a_dummyShutDown', which runs on `@LibCommon_Sync.SelfSyncComp' LibCommon_SyncExamples.ttcn /TestProject/src/EtsiLibrary/LibCommon line 464 Compiler's error markers

Does the eclipse has its own declaration of libCommon?
Any help will be appreciate.
Re: LibCommon compilanion issue [message #1782330 is a reply to message #1782297] Thu, 22 February 2018 05:12 Go to previous messageGo to next message
Lenard Nagy is currently offline Lenard NagyFriend
Messages: 54
Registered: September 2016
Member
Hi Jan,

You might want to check out a vesion of LibCommon here:
https://github.com/elnrnag/ITSG5_TS_Titanized_TA/tree/master/ttcn/LibCommon

In this repo there's a modified version of LibCommon to be compatible with Titan. However it is an older code base You can check what changes You need in your repo to compile it.

Anyway, the error report in your case is in LibCommon_SyncExamples.ttcn. Do You really need that file? (e.g. for learning how to use LibCommon, etc...). If not, just exclude it from your build (right-click on file -> Titan -> Toggle Exclude from build).

Lenard
Re: LibCommon compilanion issue [message #1782341 is a reply to message #1782330] Thu, 22 February 2018 08:04 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Jan,

you need to add a "-e" flag to the Makefile to force Titan in interpreting encoding variants in legacy mode; see attached;

nothing else is needed.

Best regards
Elemer

Re: LibCommon compilanion issue [message #1782342 is a reply to message #1782341] Thu, 22 February 2018 08:06 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Note: I'm running Titan compiled from the latest source; I'm not sure about your version.
Also , LibCommon is version 1.4. , just downloaded from ETSI.

[Updated on: Thu, 22 February 2018 08:09]

Report message to a moderator

Re: LibCommon compilanion issue [message #1782385 is a reply to message #1782342] Thu, 22 February 2018 15:07 Go to previous messageGo to next message
Jan ii is currently offline Jan iiFriend
Messages: 2
Registered: February 2018
Junior Member
Hello All,

Thank you for quick reply.
Unfortunately boths solution does not work.

After importing LibCommon from: https://github.com/elnrnag/ITSG5_TS_Titanized_TA/tree/master/ttcn/LibCommon as sugessted Lenard NagyFriend I recived belows exceptions:

Notify: Checking modules...
LibCommon_Sync.ttcn: In TTCN-3 module `LibCommon_Sync':
LibCommon_Sync.ttcn:63.3-57: In import definition:
LibCommon_Sync.ttcn:63.3-57: error: There is no module with identifier `LibCommon_BasicTypesAndValues'
LibCommon_Sync.ttcn:64.3-40: In import definition:
LibCommon_Sync.ttcn:64.3-40: error: There is no module with identifier `LibCommon_AbstractData'
LibCommon_Sync.ttcn:65.3-42: In import definition:
LibCommon_Sync.ttcn:65.3-42: error: There is no module with identifier `LibCommon_VerdictControl'
LibCommon_Sync.ttcn: In TTCN-3 module `LibCommon_Sync':
LibCommon_Sync.ttcn:117.9-120.9: In type definition `ClientSyncComp':
LibCommon_Sync.ttcn:117.14-120.9: In component element definitions:
LibCommon_Sync.ttcn:118.27-58: In variable definition `v_stateStack':
LibCommon_Sync.ttcn:118.15-25: error: There is no local or imported definition with name `StringStack'
LibCommon_Sync.ttcn:118.42-58: error: There is no local or imported definition with name `c_initStringStack'
LibCommon_Sync.ttcn:243.7-246.7: In function definition `f_serverSync2ClientsAndStop':
LibCommon_Sync.ttcn:245.11-56: In function instance:
LibCommon_Sync.ttcn:319.7-331.7: In function definition `f_serverSyncNClientsAndStop':
LibCommon_Sync.ttcn:319.44-321.40: In formal parameter list:
LibCommon_Sync.ttcn:320.8-27: In parameter `p_numClients':
LibCommon_Sync.ttcn:320.11-14: error: There is no local or imported definition with name `UInt'
LibCommon_Sync.ttcn:324.9-329.9: In for statement:
LibCommon_Sync.ttcn:325.11-328.32: In function instance:
LibCommon_Sync.ttcn:692.7-697.7: In function definition `f_serverSyncClientsTimed':
LibCommon_Sync.ttcn:692.40-694.53: In formal parameter list:
LibCommon_Sync.ttcn:692.41-65: In parameter `p_NoOfClients':
LibCommon_Sync.ttcn:692.44-47: error: There is no local or imported definition with name `UInt'
LibCommon_Sync.ttcn:696.11-99: In function instance:
LibCommon_Sync.ttcn:712.7-800.7: In function definition `f_serverSyncClientsTimedIntermediateSync':
LibCommon_Sync.ttcn:712.56-714.53: In formal parameter list:
LibCommon_Sync.ttcn:712.59-83: In parameter `p_NoOfClients':
LibCommon_Sync.ttcn:712.62-65: error: There is no local or imported definition with name `UInt'
LibCommon_Sync.ttcn:713.51-82: In parameter `p_NoOfClientIntermediate':
LibCommon_Sync.ttcn:713.54-57: error: There is no local or imported definition with name `UInt'
LibCommon_Sync.ttcn:732.9-778.9: In alt construct:
LibCommon_Sync.ttcn:734.15-740.15: In if statement:
LibCommon_Sync.ttcn:737.19-739.19: In if statement:
LibCommon_Sync.ttcn:738.23-113: In function instance:
LibCommon_Sync.ttcn:738.47-113: In actual parameter list of function `@LibCommon_Sync.f_serverSendToAllClients':
LibCommon_Sync.ttcn:738.74-112: In parameter #2 for `p_syncCmd':
LibCommon_Sync.ttcn:1269.26-33: warning: Inadequate restriction on the referenced template parameter `p_syncId', this may cause a dynamic test case error at runtime
LibCommon_Sync.ttcn:1268.43-80: note: Referenced template parameter is here
LibCommon_Sync.ttcn:788.11-799.9: In else statement:
LibCommon_Sync.ttcn:791.11-77: In function instance:
LibCommon_Sync.ttcn:791.35-77: In actual parameter list of function `@LibCommon_Sync.f_serverSendToAllClients':
LibCommon_Sync.ttcn:791.50-76: In parameter #2 for `p_syncCmd':
LibCommon_Sync.ttcn:1269.26-33: warning: Inadequate restriction on the referenced template parameter `p_syncId', this may cause a dynamic test case error at runtime
LibCommon_Sync.ttcn:1268.43-80: note: Referenced template parameter is here
LibCommon_Sync.ttcn:379.7-388.7: In function definition `f_selfOrClientSyncAndVerdict':
LibCommon_Sync.ttcn:379.44-380.47: In formal parameter list:
LibCommon_Sync.ttcn:380.28-46: In parameter `p_ret':
LibCommon_Sync.ttcn:380.31-40: error: There is no local or imported definition with name `FncRetCode'
LibCommon_Sync.ttcn:382.9-385.9: In if statement:
LibCommon_Sync.ttcn:384.11-50: In function instance:
LibCommon_Sync.ttcn:1107.7-1118.7: In function definition `f_selfSyncAndVerdict':
LibCommon_Sync.ttcn:1107.36-1108.43: In formal parameter list:
LibCommon_Sync.ttcn:1108.23-41: In parameter `p_ret':
LibCommon_Sync.ttcn:1108.26-35: error: There is no local or imported definition with name `FncRetCode'
LibCommon_Sync.ttcn:1110.9-1112.9: In if statement:
LibCommon_Sync.ttcn:1111.13-57: In function instance:
LibCommon_Sync.ttcn:1128.7-1134.7: In function definition `f_selfSyncAndVerdictPreamble':
LibCommon_Sync.ttcn:1128.44-1129.47: In formal parameter list:
LibCommon_Sync.ttcn:1129.27-45: In parameter `p_ret':
LibCommon_Sync.ttcn:1129.30-39: error: There is no local or imported definition with name `FncRetCode'
LibCommon_Sync.ttcn:1131.9-41: In function or altstep instance:
LibCommon_Sync.ttcn:1131.9-41: error: There is no local or imported definition with name `f_setVerdictPreOrPostamble'
LibCommon_Sync.ttcn:1132.9-34: In function instance:
LibCommon_Sync.ttcn:1183.7-1198.7: In function definition `f_selfSync':
LibCommon_Sync.ttcn:1183.26-1184.39: In formal parameter list:
LibCommon_Sync.ttcn:1184.19-37: In parameter `p_ret':
LibCommon_Sync.ttcn:1184.22-31: error: There is no local or imported definition with name `FncRetCode'
LibCommon_Sync.ttcn:1186.14-23: In return type:
LibCommon_Sync.ttcn:1186.14-23: error: There is no local or imported definition with name `FncRetCode'
LibCommon_Sync.ttcn:1197.9-24: In return statement:
LibCommon_Sync.ttcn:1197.16-24: error: There is no local or imported definition with name `e_success'
LibCommon_Sync.ttcn:1132.9-34: warning: The value returned by function `@LibCommon_Sync.f_selfSync' is not used
LibCommon_Sync.ttcn:1112.11-1114.9: In if statement:
LibCommon_Sync.ttcn:1113.13-57: In function instance:
LibCommon_Sync.ttcn:1144.7-1150.7: In function definition `f_selfSyncAndVerdictTestBody':
LibCommon_Sync.ttcn:1144.44-1145.47: In formal parameter list:
LibCommon_Sync.ttcn:1145.27-45: In parameter `p_ret':
LibCommon_Sync.ttcn:1145.30-39: error: There is no local or imported definition with name `FncRetCode'
LibCommon_Sync.ttcn:1147.9-27: In function or altstep instance:
LibCommon_Sync.ttcn:1147.9-27: error: There is no local or imported definition with name `f_setVerdict'
LibCommon_Sync.ttcn:1148.9-34: In function instance:
LibCommon_Sync.ttcn:1148.9-34: warning: The value returned by function `@LibCommon_Sync.f_selfSync' is not used
LibCommon_Sync.ttcn:1115.9-1117.9: In else statement:
LibCommon_Sync.ttcn:1116.13-58: In function instance:
LibCommon_Sync.ttcn:1160.7-1165.7: In function definition `f_selfSyncAndVerdictPostamble':
LibCommon_Sync.ttcn:1160.45-1161.47: In formal parameter list:
LibCommon_Sync.ttcn:1161.27-45: In parameter `p_ret':
LibCommon_Sync.ttcn:1161.30-39: error: There is no local or imported definition with name `FncRetCode'
LibCommon_Sync.ttcn:1163.9-41: In function or altstep instance:
LibCommon_Sync.ttcn:1163.9-41: error: There is no local or imported definition with name `f_setVerdictPreOrPostamble'
LibCommon_Sync.ttcn:1164.9-34: In function instance:
LibCommon_Sync.ttcn:1164.9-34: warning: The value returned by function `@LibCommon_Sync.f_selfSync' is not used
LibCommon_Sync.ttcn:385.11-387.9: In else statement:
LibCommon_Sync.ttcn:386.11-52: In function instance:
LibCommon_Sync.ttcn:869.7-880.7: In function definition `f_clientSyncAndVerdict':
LibCommon_Sync.ttcn:869.38-870.42: In formal parameter list:
LibCommon_Sync.ttcn:870.23-41: In parameter `p_ret':
LibCommon_Sync.ttcn:870.26-35: error: There is no local or imported definition with name `FncRetCode'
LibCommon_Sync.ttcn:872.9-874.9: In if statement:
LibCommon_Sync.ttcn:873.13-59: In function instance:
LibCommon_Sync.ttcn:897.7-903.7: In function definition `f_clientSyncAndVerdictPreamble':
LibCommon_Sync.ttcn:897.46-898.43: In formal parameter list:
LibCommon_Sync.ttcn:897.71-898.42: In parameter `p_ret':
LibCommon_Sync.ttcn:898.27-36: error: There is no local or imported definition with name `FncRetCode'
LibCommon_Sync.ttcn:900.9-35: In function or altstep instance:
LibCommon_Sync.ttcn:900.9-35: error: There is no local or imported definition with name `f_setVerdictPreamble'
LibCommon_Sync.ttcn:901.9-36: In function instance:
LibCommon_Sync.ttcn:978.7-1007.7: In function definition `f_clientSync':
LibCommon_Sync.ttcn:978.28-979.39: In formal parameter list:
LibCommon_Sync.ttcn:979.19-37: In parameter `p_ret':
LibCommon_Sync.ttcn:979.22-31: error: There is no local or imported definition with name `FncRetCode'
LibCommon_Sync.ttcn:981.14-23: In return type:
LibCommon_Sync.ttcn:981.14-23: error: There is no local or imported definition with name `FncRetCode'
LibCommon_Sync.ttcn:1005.9-24: In return statement:
LibCommon_Sync.ttcn:1005.16-24: error: There is no local or imported definition with name `e_success'
LibCommon_Sync.ttcn:901.9-36: warning: The value returned by function `@LibCommon_Sync.f_clientSync' is not used
LibCommon_Sync.ttcn:874.11-876.9: In if statement:
LibCommon_Sync.ttcn:875.13-59: In function instance:
LibCommon_Sync.ttcn:922.7-928.7: In function definition `f_clientSyncAndVerdictTestBody':
LibCommon_Sync.ttcn:922.46-923.42: In formal parameter list:
LibCommon_Sync.ttcn:923.23-41: In parameter `p_ret':
LibCommon_Sync.ttcn:923.26-35: error: There is no local or imported definition with name `FncRetCode'
LibCommon_Sync.ttcn:925.9-27: In function or altstep instance:
LibCommon_Sync.ttcn:925.9-27: error: There is no local or imported definition with name `f_setVerdict'
LibCommon_Sync.ttcn:926.9-36: In function instance:
LibCommon_Sync.ttcn:926.9-36: warning: The value returned by function `@LibCommon_Sync.f_clientSync' is not used
LibCommon_Sync.ttcn:877.9-879.9: In else statement:
LibCommon_Sync.ttcn:878.13-60: In function instance:
LibCommon_Sync.ttcn:945.7-950.7: In function definition `f_clientSyncAndVerdictPostamble':
LibCommon_Sync.ttcn:945.47-946.47: In formal parameter list:
LibCommon_Sync.ttcn:946.28-46: In parameter `p_ret':
LibCommon_Sync.ttcn:946.31-40: error: There is no local or imported definition with name `FncRetCode'
LibCommon_Sync.ttcn:948.9-36: In function or altstep instance:
LibCommon_Sync.ttcn:948.9-36: error: There is no local or imported definition with name `f_setVerdictPostamble'
LibCommon_Sync.ttcn:949.9-36: In function instance:
LibCommon_Sync.ttcn:949.9-36: warning: The value returned by function `@LibCommon_Sync.f_clientSync' is not used
LibCommon_Sync.ttcn:408.7-417.7: In function definition `f_selfOrClientSyncAndVerdictPreamble':
LibCommon_Sync.ttcn:408.52-409.49: In formal parameter list:
LibCommon_Sync.ttcn:409.30-48: In parameter `p_ret':
LibCommon_Sync.ttcn:409.33-42: error: There is no local or imported definition with name `FncRetCode'
LibCommon_Sync.ttcn:437.7-446.7: In function definition `f_selfOrClientSyncAndVerdictTestBody':
LibCommon_Sync.ttcn:437.52-438.49: In formal parameter list:
LibCommon_Sync.ttcn:438.30-48: In parameter `p_ret':
LibCommon_Sync.ttcn:438.33-42: error: There is no local or imported definition with name `FncRetCode'
LibCommon_Sync.ttcn:453.7-457.7: In function definition `f_selfOrClientSyncAndVerdictPR':
LibCommon_Sync.ttcn:453.46-454.49: In formal parameter list:
LibCommon_Sync.ttcn:454.30-48: In parameter `p_ret':
LibCommon_Sync.ttcn:454.33-42: error: There is no local or imported definition with name `FncRetCode'
LibCommon_Sync.ttcn:482.7-492.7: In function definition `f_addSyncCompState':
LibCommon_Sync.ttcn:482.34-483.40: In formal parameter list:
LibCommon_Sync.ttcn:483.21-39: In parameter `p_ret':
LibCommon_Sync.ttcn:483.24-33: error: There is no local or imported definition with name `FncRetCode'
LibCommon_Sync.ttcn:485.9-491.9: In if statement:
LibCommon_Sync.ttcn:486.11-488.11: In if statement:
LibCommon_Sync.ttcn:486.16-69: error: There is no local or imported definition with name `f_isItemOnStringStack'
LibCommon_Sync.ttcn:488.13-490.11: In else statement:
LibCommon_Sync.ttcn:489.15-64: In function or altstep instance:
LibCommon_Sync.ttcn:489.15-64: error: There is no local or imported definition with name `f_pushStringStack'
LibCommon_Sync.ttcn:506.7-515.7: In function definition `f_getTopSyncCompState':
LibCommon_Sync.ttcn:509.9-512.9: In if statement:
LibCommon_Sync.ttcn:509.14-59: In the operand of operation `not':
LibCommon_Sync.ttcn:509.18-59: error: There is no local or imported definition with name `f_peekStringStackTop'
LibCommon_Sync.ttcn:513.9-38: In function or altstep instance:
LibCommon_Sync.ttcn:513.9-38: error: There is no local or imported definition with name `f_popStringStack'
LibCommon_Sync.ttcn:524.7-527.7: In function definition `f_popSyncCompState':
LibCommon_Sync.ttcn:526.9-38: In function or altstep instance:
LibCommon_Sync.ttcn:526.9-38: error: There is no local or imported definition with name `f_popStringStack'
LibCommon_Sync.ttcn:540.7-544.7: In function definition `f_peekTopSyncCompState':
LibCommon_Sync.ttcn:543.9-57: In return statement:
LibCommon_Sync.ttcn:543.16-57: error: There is no local or imported definition with name `f_peekStringStackTop'
LibCommon_Sync.ttcn:553.7-557.7: In function definition `f_isSyncCompStateStackEmpty':
LibCommon_Sync.ttcn:556.9-49: In return statement:
LibCommon_Sync.ttcn:556.16-49: error: There is no local or imported definition with name `f_isStringStackEmpty'
LibCommon_Sync.ttcn:653.7-656.7: In function definition `f_serverSyncClients':
LibCommon_Sync.ttcn:653.35-83: In formal parameter list:
LibCommon_Sync.ttcn:653.37-57: In parameter `p_noOfClients':
LibCommon_Sync.ttcn:653.40-43: error: There is no local or imported definition with name `UInt'
LibCommon_Sync.ttcn:675.7-678.7: In function definition `f_serverSyncClientsIntermediateSync':
LibCommon_Sync.ttcn:675.51-188: In formal parameter list:
LibCommon_Sync.ttcn:675.53-73: In parameter `p_noOfClients':
LibCommon_Sync.ttcn:675.56-59: error: There is no local or imported definition with name `UInt'
LibCommon_Sync.ttcn:675.100-131: In parameter `p_NoOfClientIntermediate':
LibCommon_Sync.ttcn:675.103-106: error: There is no local or imported definition with name `UInt'
Notify: Errors found in the input module. Code will not be generated.

When I modified the MakeFile with the "-e" flag I have recived the same issues.

Basically what I wanted to do is to take the ETSI packages from : http://www.ttcn-3.org/index.php/downloads/publicts/publicts-etsi/25-publicts-ipv6 and use it. This packet are combined from two parts ATS and Libs. ATS implementation are based on Libs file.

Hope to hear from you.

Re: LibCommon compilanion issue [message #1782387 is a reply to message #1782385] Thu, 22 February 2018 15:16 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Jan,

have you tried the Libcommon package I have attached above?

All you need to do is download it, unpack it and run make.

(assuming again that you have the latest Titan from source installed)

Also ,please read this post:

https://www.eclipse.org/forums/index.php/t/1087046/

where I explain by and large how to adapt test suites downloaded from ETSI to Titan.
Hint: it's not simple.



BR

Elemer

[Updated on: Thu, 22 February 2018 15:19]

Report message to a moderator

Re: LibCommon compilanion issue [message #1782466 is a reply to message #1782387] Fri, 23 February 2018 17:44 Go to previous message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Jan ,

I have checked the IPv6 test suite and indeed the LibCommon there is different;

with some work I managed to compile the whole suite;

I will open a new post and explain in detail the changes needed; however , there are things that you will have to do yourself:
-write external functions
-write instructions for the binary (RAW) codec
-finally, write the test ports , or adapt an existing Titan one ( I suspect the IPL4 will do what you need)


Best regards
Elemer


Previous Topic:Additional info about the usage of the translation ports
Next Topic:RAW coder and arrays in records
Goto Forum:
  


Current Time: Tue Apr 23 10:43:59 GMT 2024

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

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

Back to the top