Home » Eclipse Projects » Eclipse Titan » Error in function generation
Error in function generation [message #1792430] |
Tue, 17 July 2018 14:20  |
Eclipse User |
|
|
|
Hello everybody,
I am trying to port ITS-G5 Test Suite to Titan and I have some problem.
First problem is "Too many parameters: `1' was expected instead of `2'" at this lines:
EnrolmentRequestMessage ::= EtsiTs103097Data-SignedAndEncrypted-Unicast {EtsiTs102941Data (WITH COMPONENTS{..., content (WITH COMPONENTS{enrolmentRequest PRESENT})})}
EnrolmentResponseMessage ::= EtsiTs103097Data-SignedAndEncrypted-Unicast {EtsiTs102941Data (WITH COMPONENTS{..., content (WITH COMPONENTS{enrolmentResponse PRESENT})})}
Second problem I do not know how to fix because it is with the code generated.
The console shown the following errors:
g++ -c -DWIN32 -I. -I/home/Vicente-PCDell/titan.core/Install/include -I. -I../ccsrc/Asn1c -I../ccsrc/EncDec -I../ccsrc/Externals -I../ccsrc/Framework -I../ccsrc/Framework/src -I../ccsrc/Ports/LibIts_ports -I../ccsrc/Ports/LibIts_ports/BTP_ports -I../ccsrc/Ports/LibIts_ports/CAM_ports -I../ccsrc/Ports/LibIts_ports/DENM_ports -I../ccsrc/Ports/LibIts_ports/GN_ports -I../ccsrc/Ports/LibIts_ports/Http_ports -I../ccsrc/Ports/LibIts_ports/IPv6oGN_ports -I../ccsrc/Ports/LibIts_ports/IVIM_ports -I../ccsrc/Ports/LibIts_ports/MapemSpatem_ports -I../ccsrc/Ports/LibIts_ports/SremSsem_ports -I../ccsrc/Protocols/BTP -I../ccsrc/Protocols/CAM -I../ccsrc/Protocols/Commsignia -I../ccsrc/Protocols/DENM -I../ccsrc/Protocols/ETH -I../ccsrc/Protocols/GeoNetworking -I../ccsrc/Protocols/Http -I../ccsrc/Protocols/IVIM -I../ccsrc/Protocols/MapemSpatem -I../ccsrc/Protocols/Pcap -I../ccsrc/Protocols/RawSocket -I../ccsrc/Protocols/Security -I../ccsrc/Protocols/SremSsem -I../ccsrc/Protocols/Tcp -I../ccsrc/Protocols/UDP -I../ccsrc/Protocols/UpperTester -I../ccsrc/loggers -Wall -O2 -o ItsDenm_TpFunctions.o ItsDenm_TpFunctions.cc
In file included from LibItsBtp_TypesAndValues.hh:22:0,
from LibItsBtp_TestSystem.hh:22,
from LibItsBtp_Templates.hh:20,
from LibItsBtp_Functions.hh:20,
from ItsBtp_TestCases.hh:20,
from ItsBtp_TestControl.hh:20,
from ItsBtp_TestControl.cc:11:
LibItsBtp_EncdecDeclarations.hh:40:43: error: 'LibItsBtp__TypesAndValues' does not name a type
extern BITSTRING fx__enc__BtpPacket(const LibItsBtp__TypesAndValues::BtpPacket& p);
^~~~~~~~~~~~~~~~~~~~~~~~~
LibItsBtp_EncdecDeclarations.hh:40:79: error: expected unqualified-id before '&' token
extern BITSTRING fx__enc__BtpPacket(const LibItsBtp__TypesAndValues::BtpPacket& p);
^
LibItsBtp_EncdecDeclarations.hh:40:79: error: expected ')' before '&' token
LibItsBtp_EncdecDeclarations.hh:40:81: error: expected initializer before 'p'
extern BITSTRING fx__enc__BtpPacket(const LibItsBtp__TypesAndValues::BtpPacket& p);
^
LibItsBtp_EncdecDeclarations.hh:41:49: error: 'LibItsBtp__TypesAndValues' has not been declared
extern INTEGER fx__dec__BtpPacket(BITSTRING& b, LibItsBtp__TypesAndValues::BtpPacket& p);
^~~~~~~~~~~~~~~~~~~~~~~~~
LibItsBtp_EncdecDeclarations.hh:41:85: error: expected ',' or '...' before '&' token
extern INTEGER fx__dec__BtpPacket(BITSTRING& b, LibItsBtp__TypesAndValues::BtpPacket& p);
^
In file included from LibItsBtp_TypesAndValues.hh:22:0,
from LibItsBtp_TestSystem.hh:22,
from LibItsBtp_Templates.hh:20,
from LibItsBtp_Functions.hh:20,
from ItsBtp_TestCases.hh:20,
from ItsBtp_TestCases.cc:11:
LibItsBtp_EncdecDeclarations.hh:40:43: error: 'LibItsBtp__TypesAndValues' does not name a type
extern BITSTRING fx__enc__BtpPacket(const LibItsBtp__TypesAndValues::BtpPacket& p);
^~~~~~~~~~~~~~~~~~~~~~~~~
LibItsBtp_EncdecDeclarations.hh:40:79: error: expected unqualified-id before '&' token
extern BITSTRING fx__enc__BtpPacket(const LibItsBtp__TypesAndValues::BtpPacket& p);
^
LibItsBtp_EncdecDeclarations.hh:40:79: error: expected ')' before '&' token
LibItsBtp_EncdecDeclarations.hh:40:81: error: expected initializer before 'p'
extern BITSTRING fx__enc__BtpPacket(const LibItsBtp__TypesAndValues::BtpPacket& p);
^
LibItsBtp_EncdecDeclarations.hh:41:49: error: 'LibItsBtp__TypesAndValues' has not been declared
extern INTEGER fx__dec__BtpPacket(BITSTRING& b, LibItsBtp__TypesAndValues::BtpPacket& p);
^~~~~~~~~~~~~~~~~~~~~~~~~
LibItsBtp_EncdecDeclarations.hh:41:85: error: expected ',' or '...' before '&' token
extern INTEGER fx__dec__BtpPacket(BITSTRING& b, LibItsBtp__TypesAndValues::BtpPacket& p);
This problem is repeted around a lot of functions, and I am a little bit frustrated.
Attach the asn file for the fist problem.
Thanks and best regards,
Vicente Leal
|
|
| | | | | | |
Re: Error in function generation [message #1792635 is a reply to message #1792614] |
Fri, 20 July 2018 07:36   |
Eclipse User |
|
|
|
Hello Vicente,
I'm Yann Garcia, I'm consultant at ETSI and I'm involve in ITS projects.
1) We use gcc/g++ version 7.3.0
2) I think you download the code from the ETSI STF 525 repository, am I correct? If so, there are two interesting folders to set up the environment:
- docker folder which contain a docker file to create a STF 525 container
- vagrant, to create a STF 525 virtual machine
In addition, please take a look to the README.md file in the main folder.
Please let me know if you need help, I'll be happy to help you.
Best regards,
Yann Garcia
Senior Software Engineer
Microsoft MCAD.net Certified
**************************************
FSCOM SARL
Le Montespan B2
6, Avenue des Alpes
F-06600 Antibes, FRANCE
************************************************
Tel: +33 (0)4 92 94 49 08
Mobile: +33 (0)7 61 00 77 05
Email: yann.garcia@fscom.fr
Skype: yann.garcia
Google+: garcia.yann@gmail.com
|
|
|
Re: Error in function generation [message #1792919 is a reply to message #1792635] |
Wed, 25 July 2018 14:46   |
Eclipse User |
|
|
|
Thanks for your advices.
First, I have changed to Linux and everything is better.
I haved upgraded my c compiler to 7.3.0 version, but the problems don't disappear, so I have started a project with only one testcase (atsGeoNetworking) , and I have one question according to externals functions.
How can I achieve the following files: sha256.hh, sha384.hh, hmac.hh, security_ecc.hh, security_services.hh?
I have found some of them, but I need all of this for the security external functions.
Thanks for everything.
Vicente Leal
|
|
|
Re: Error in function generation [message #1792928 is a reply to message #1792919] |
Thu, 26 July 2018 01:23   |
Eclipse User |
|
|
|
Hello Vicente,
These files are located in the folder ccsrc/Protocols/Security
Are you using Eclipse? If so, you need the whole ccsrc folder add you shall exclude the following TTCN-3 folders: LibIts/CALM, AtsIICP, AtsFNP, AtsFSAP, AtsDCC, AtsATSP, AtsIPv6OverGeoNetworking & AtsV2G.
If not, please take a look to the vagrant/provisioner.bash script to setupp your environment.
Please keep me inform of your progress ;)
BR,
Yann
|
|
| | |
Re: Error in function generation [message #1793216 is a reply to message #1792987] |
Wed, 01 August 2018 11:51  |
Eclipse User |
|
|
|
Yes, the equipment are Cohda Wireless MK5, so I hope don't have any problem.
When it will be ready, I will post it.
Thanks for the offer, but now I think that I don't have a lot of problems., and I think that I can solve them.
Thanks,
Vicente
[Updated on: Wed, 01 August 2018 11:55] by Moderator
|
|
|
Goto Forum:
Current Time: Sat Jul 12 19:48:40 EDT 2025
Powered by FUDForum. Page generated in 0.05907 seconds
|