Giter Site home page Giter Site logo

rrc-dump doesn't compile about asn1c HOT 4 CLOSED

vlm avatar vlm commented on July 23, 2024
rrc-dump doesn't compile

from asn1c.

Comments (4)

brchiu avatar brchiu commented on July 23, 2024 2

hi, @olegarch and @msivaprakash,

I found that for the two IEs MultiplePLMNsOfInterFreqCellsList and MultiplePLMNsOfIntraFreqCellsList in 25.331's ASN.1 definition :

MultiplePLMNsOfInterFreqCellsList ::=   SEQUENCE (SIZE (1..maxCellMeas)) OF SEQUENCE {
    multiplePLMN-list   SEQUENCE (SIZE (1..6)) OF PLMN-IdentityWithOptionalMCC-r6 OPTIONAL
}

MultiplePLMNsOfIntraFreqCellsList ::=   SEQUENCE (SIZE (1..maxCellMeas)) OF SEQUENCE {
    multiplePLMN-list   SEQUENCE (SIZE (1..6)) OF PLMN-IdentityWithOptionalMCC-r6 OPTIONAL
}

MultiplePLMN-List ::= SEQUENCE (SIZE (1..6)) OF PLMN-IdentityWithOptionalMCC-r6

Since IE MultiplePLMN-List has the same construction as member multiplePLMN-list inside these two IEs. If I replace them as :

MultiplePLMNsOfInterFreqCellsList ::=   SEQUENCE (SIZE (1..maxCellMeas)) OF SEQUENCE {
    multiplePLMN-list   MultiplePLMN-List OPTIONAL
}

MultiplePLMNsOfIntraFreqCellsList ::=   SEQUENCE (SIZE (1..maxCellMeas)) OF SEQUENCE {
    multiplePLMN-list   MultiplePLMN-List OPTIONAL
}

MultiplePLMN-List ::= SEQUENCE (SIZE (1..6)) OF PLMN-IdentityWithOptionalMCC-r6

Then the generated C code can be compiled successfully using gcc 5.4.0 on Lubuntu 16.04

For your reference.

from asn1c.

vlm avatar vlm commented on July 23, 2024

Great you got it compiling!

The current code generation approach would not allow me to quickly change the anonymous structures in macro thing which breaks your compiler. One approach would be to use gcc to compile this module, and use this library with the rest of the project using that non-gcc/clang compiler that you're apparently using.

from asn1c.

olegarch avatar olegarch commented on July 23, 2024

Same with gcc:
gcc -DASN_PDU_COLLECTION -I. -o PLMNIdentitiesOfNeighbourCells-v860ext.o -c PLMNIdentitiesOfNeighbourCells-v860ext.c

MultiplePLMNsOfInterFreqCellsList.h:29:10: error: redefinition of ‘struct multiplePLMN_list’
struct multiplePLMN_list {

from asn1c.

msivaprakash avatar msivaprakash commented on July 23, 2024

Can you share the fix you did?

from asn1c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.