asn1c
asn1c copied to clipboard
Syntax error: token "WITH"
Hello, trying to build c header by OER asn with latest asn1c version and get the error:
ASN.1 grammar parse error near ../asn/pki-v2.2.1/sec/EtsiTs103097ExtensionModule.asn:11 (token "WITH"): syntax error, unexpected TOK_WITH, expecting ';' Cannot parse "../asn/pki-v2.2.1/sec/EtsiTs103097ExtensionModule.asn"
Asn file: https://forge.etsi.org/rep/ITS/asn1/sec_ts103097/-/blob/release2/EtsiTs103097ExtensionModule.asn
Which version should I use to compile?
Upd: Get some clash issues
FATAL: ASN.1 expression "EXT-TYPE" at line 22 of module EtsiTs103097ExtensionModule clashes with expression "EXT-TYPE" at line 1402 of module Ieee1609Dot2BaseTypes (ieee_1609.2.1/ieee1609dot2/Ieee1609Dot2BaseTypes.asn). Rename or remove either instance to resolve the conflict in sec/EtsiTs103097ExtensionModule.asn
https://forge.etsi.org/rep/ITS/asn1/ieee1609.2/-/blob/ieee/Ieee1609Dot2BaseTypes.asn and https://forge.etsi.org/rep/ITS/asn1/sec_ts103097/-/blob/release2/EtsiTs103097ExtensionModule.asn
Are there any ways to resolve such compilation conflicts?
I recommend you trying out this more active fork. It has support for WITH SUCCESSORS
and WITH DESCENDANTS
.