Hello.
I'm having troubles compiling asn.1 files from http://www.3gpp.org/ftp/Specs/archive/24_series/24.080/ASN.1/
I'm getting syntax error (syntax error at line 264 in module SS-Operations.asn: got 'SEQUENCE' expected ':') while running
erlc SS-Operations.asn
using Erlang version 15.b.1
As far as I recall Harald has done this for MAP asn.1
Are there any hints on what might be wrong? Tried online compiler but it gives different errors in different places.
Should I use different version? Compile smth else before attempting to compile this file? Fix syntax using some clever trick? Do some rtfm?
Any advices would be greatly appreciated.
Hi
I'm having troubles compiling asn.1 files from http://www.3gpp.org/ftp/Specs/archive/24_series/24.080/ASN.1/
I'm getting syntax error (syntax error at line 264 in module SS-Operations.asn: got 'SEQUENCE' expected ':') while running
Are there any hints on what might be wrong?
Yeah ... there is a syntax error at line 264 :)
Any advices would be greatly appreciated.
The ASN1 files in the specs are buggy, you need to fix them yourself.
Look at the various ASN1 tree in http://cgit.osmocom.org/cgit/ some will contain fixed up version of some of the ASN1 files from the spec. Wireshark also sometimes have fixed up version of the ASN1 files if they have the corresponding dissector.
Cheers,
Sylvain
28.11.2012 11:55, Sylvain Munaut пишет:
Hi
I'm having troubles compiling asn.1 files from http://www.3gpp.org/ftp/Specs/archive/24_series/24.080/ASN.1/
I'm getting syntax error (syntax error at line 264 in module SS-Operations.asn: got 'SEQUENCE' expected ':') while running Are there any hints on what might be wrong?
Yeah ... there is a syntax error at line 264 :)
Doh! That's what's wrong with GSM industry :)
Any advices would be greatly appreciated.
The ASN1 files in the specs are buggy, you need to fix them yourself.
Look at the various ASN1 tree in http://cgit.osmocom.org/cgit/ some will contain fixed up version of some of the ASN1 files from the spec. Wireshark also sometimes have fixed up version of the ASN1 files if they have the corresponding dissector.
Sweet - found the right spot:
git clone git://git.osmocom.org/erlang/osmo_map.git cd osmo_map/asn1 erlc *.asn
asn1error:130:'MAP-Protocol':'Supported-MAP-Operations' {asn1,{undefined_type,'forwardCUG-Info'}}
but the rest compiles just fine.
Thank you!
28.11.2012 14:54, Holger Hans Peter Freyther пишет:
On Wed, Nov 28, 2012 at 12:34:11PM +0100, ☎ wrote:
git clone git://git.osmocom.org/erlang/osmo_map.git cd osmo_map/asn1 erlc *.asn
you probably want the map.set.asn1
Maybe but no luck so far:
erlc map.set.asn1 syntax error at line 58 in module TCAPMessages.asn: got: '{' and '{' expected typereference '::=' Compiler function asn1ct:compile_asn1/3 returned: {error,{'parse error in file:',"/home/dude/osmo_map/asn1/TCAPMessages.asn", [got,['{','{'],expected,typereference,'::=']}}
any ideas?
28.11.2012 16:10, ☎ пишет:
28.11.2012 14:54, Holger Hans Peter Freyther пишет:
On Wed, Nov 28, 2012 at 12:34:11PM +0100, ☎ wrote:
git clone git://git.osmocom.org/erlang/osmo_map.git cd osmo_map/asn1 erlc *.asn
you probably want the map.set.asn1
Maybe but no luck so far:
erlc map.set.asn1 syntax error at line 58 in module TCAPMessages.asn: got: '{' and '{' expected typereference '::=' Compiler function asn1ct:compile_asn1/3 returned: {error,{'parse error in file:',"/home/dude/osmo_map/asn1/TCAPMessages.asn", [got,['{','{'],expected,typereference,'::=']}}
any ideas?
Just in case someone will google for this problem: compiled just fine with erlc from Erlang release 16B.
baseband-devel@lists.osmocom.org