Skip to content

Compiling 3GPP TS 29.002 ASN.1 files #130

@alishir

Description

@alishir

Hi,
I downloaded the relevant ASN.1 files from this link. However, when I tried to compile these files with hampi ASN.1 compiler I encountered the following error:

$ rs-asn1c --module test --codec aper -- map/*.EXP                                                                                                   
[2025-01-20T08:02:53Z INFO  asn1_compiler::compiler] Processing file: "map/MAP-CallHandlingOperations.EXP"
[2025-01-20T08:02:54Z INFO  asn1_compiler::compiler] Processing file: "map/MAP-DialogueInformation.EXP"
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::choice] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::choice] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z ERROR asn1_compiler::parser::asn::defs] Failed to parse a definition at Token: Token { type: Identifier, span: Span { start: LineColumn { line: 20, column: 0 }, end: LineColumn { line: 20, column: 15 } }, text: "MAP-DialoguePDU" }
Error: Parsing Error: Failed to parse a definition at Token: Token { type: Identifier, span: Span { start: LineColumn { line: 20, column: 0 }, end: LineColumn { line: 20, column: 15 } }, text: "MAP-DialoguePDU" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions