Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to parse 3GPP TS 25.433 #119

Open
JohannesBakker opened this issue Oct 24, 2016 · 9 comments
Open

Unable to parse 3GPP TS 25.433 #119

JohannesBakker opened this issue Oct 24, 2016 · 9 comments

Comments

@JohannesBakker
Copy link

JohannesBakker commented Oct 24, 2016

ASN.1 grammar parse error near line 1591 (token "id-C-ID"): syntax error, unexpected TOK_identifier, expecting '}'
Cannot parse "asn_work.asn1"

asn_work.asn1.txt

work.asn1"

@JohannesBakker JohannesBakker changed the title ASN.1 grammar parse error compile error : ASN.1 grammar parse error Oct 24, 2016
@velichkov
Copy link
Contributor

Hi @JohannesBakker

The problem most probably is that the asn1c does not fully support Information Object Class.
You could try the version from #99. See also #112 #108 #43 #64

@JohannesBakker JohannesBakker changed the title compile error : ASN.1 grammar parse error Unable to parse 3GPP TS 25.433 Oct 24, 2016
@JohannesBakker
Copy link
Author

Hi @velichkov

Thanks for your response.

How to resolve this issue?
If the asn1 compiler doesn't support this, how to modify asn1 file to compile?

@velichkov
Copy link
Contributor

How to resolve this issue?

Try the version from pull request 99

git fetch origin pull/99/head:pr99
git checkout pr99
make && make install

If the asn1 compiler doesn't support this, how to modify asn1 file to compile?

My suggestion is to try first the pull request as described above.

Also have a look at https://github.com/osmocom/osmo-iuh.git and http://www.moiji-mobile.com/2016/04/27/hnbap-and-ranap-support-in-osmocomorg/

@JohannesBakker
Copy link
Author

Hi @velichkov

Thanks.

I cloned the source.

Here I can't see some files for compile.

  • configure
  • Makefile
    ...

How to generate these files?

@JohannesBakker
Copy link
Author

Hi @velichkov

I cloned by following.

git clone https://github.com/vlm/asn1c.git

Then entered to "asn1c" directory.

Here, I run full request.

git fetch origin pull/99/head:pr99
git checkout pr99
make && make install

But I can't see some files as following.

  • configure
  • Makefile

How to generate these files?

@JohannesBakker
Copy link
Author

JohannesBakker commented Oct 24, 2016

Hi @velichkov

I fatched pr99 branch.

After fatched, I compiled the source but I got other errors.

Please check asn files, and compile error files.

work_file.asn1.txt
compile-log.txt

@brchiu
Copy link
Contributor

brchiu commented Oct 25, 2016

Hi @JohannesBakker,

To generate the configure and Makefile files which meet your environment, please see INSTALL.md :

Configure with the default settings:

test -f configure || autoreconf -iv
./configure
make

@JohannesBakker
Copy link
Author

Hi @brchiu

Thanks.
I generated the configure and Makefile.
Also I compiled the source.

Now I try to get C/C++ source file from asn1 file by using ASN1C that compiled with this source.
But I get failed message.

Please check work_file.asn1.txt, compile-log.txt files.

work_file.asn1.txt
compile-log.txt

@brchiu
Copy link
Contributor

brchiu commented Aug 18, 2017

hi, @JohannesBakker

In repository's commit 94f0b64 , your NBAP asn.1 can be parsed and C code generated. You can have a trial.

Unfortunately, it broke up in newest repository acdca41 and I submitted #185 to track it. We might need to wait @vlm's available time to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants