[erlang-questions] ASN1 compilation error in OTP R14
Niclas Eklund
nick@REDACTED
Wed Jan 5 12:02:53 CET 2011
Hello!
Thank you for reporting this! Seems like it was introduced in version
1.6.13.1 (R13B). We'll look into this.
Best Regards,
Niclas E @ Erlang/OTP
On Tue, 4 Jan 2011, Stephane Pamelard wrote:
> Hi all,
> Does someone have any idea about this asn1 problem ?
>
> Previously, we compiled our code with otp_R11B (that was ok).
> Now, we try to compile with otp_R14 and we have an issue with ASN compiler.
>
> You can find below:
> - outputs with R14 compilator (with error)
> - outputs with R11B compilator (no error)
> - ASN file
>
> ------------------ Result with otp_R14 ---------------------------
> make -k
> /usr/erlang/otp_R14B/lib/erlang/bin/erlc +noobj -bber_bin CAP.asn
> asn1error:23:'CAP':'ExtensionField'
> {internal_error,
> {function_clause,
> [{asn1ct_check,componentrelation_leadingattr,
> [{state,
> {module,1,'CAP',[],'IMPLICIT',{exports,all},{imports,[]},undefined,[]},
> 'CAP',
> {typedef,false,23,'ExtensionField',
> {type,[],
> {'SEQUENCE',false,false,undefined,
> [{'ComponentType',24,type,
> {type,[],
> {'ObjectClassFieldType',
> {'Externaltypereference',24,'CAP','EXTENSION'},
> {'Externaltypereference',24,'CAP','EXTENSION'},
> [{valuefieldreference,id}],
> undefined},
> [{simpletable,
> {type,[],
> {'Externaltypereference',24,'CAP','SupportedExtensions'},
> [],[],no}}],
> [],no},
> mandatory,undefined,undefined},
> {'ComponentType',25,criticality,..................
>
> ------------------ Result with otp_R11B ---------------------------
>
> otp_R11
> make -k
> /usr/erlang/otp_R11B-5/lib/erlang/bin/erlc +noobj -bber_bin CAP.asn
> Erlang ASN.1 version "1.4.5" compiling "/home/CAP.asn"
> Compiler Options: [ber_bin,
> report_errors,
> {cwd,"/home/src"},
> {outdir,"/home/src"},
> noobj,
> {i,"."},
> {i,"/home/src"}]
> --{generated,"/home/src/CAP.asn1db"}--
> --{generated,"/home/src/CAP.hrl"}--
> --{generated,"/home/src/CAP.erl"}--
> ok
>
> ------------------ ASN CODE -------------------------
> CAP {ccitt(0) identified-organization(4) etsi(0) mobileDomain(0)
> umts-network(1) modules(3) cap-datatypes(52) version3(2)}
>
> DEFINITIONS IMPLICIT TAGS ::=
>
> BEGIN
>
> EXTENSION ::= CLASS {
> &ExtensionType,
> &criticality CriticalityType DEFAULT ignore,
> &id Code
> }
> WITH SYNTAX {
> EXTENSION-SYNTAX &ExtensionType
> CRITICALITY &criticality
> IDENTIFIED BY &id
> }
>
> ExtensionField ::= SEQUENCE {
> type EXTENSION.&id ({SupportedExtensions }),
> criticality CriticalityType DEFAULT ignore,
> value [1] EXTENSION.&ExtensionType ({SupportedExtensions
> }{@type}),
> ...}
>
> SupportedExtensions EXTENSION ::= {firstExtension, ...}
>
> firstExtension EXTENSION ::= {
> EXTENSION-SYNTAX NULL
> CRITICALITY ignore
> IDENTIFIED BY global : {itu-t(0) identified-organization(4)
> organisation(0) gsm(1)
> capextension(2)}}
>
> CriticalityType ::= ENUMERATED {
> ignore (0),
> abort (1)
> }
>
> Code ::= CHOICE {local INTEGER,
> global OBJECT IDENTIFIER}
>
>
> END
>
> Thanks for your help.
>
> Stéphane
>
>
>
>
> This message, including attachments, is intended solely for the addressee
> indicated in this message and is strictly confidential or otherwise
> privileged. If you are not the intended recipient (or responsible for
> delivery of the message to such person) : - (1) please immediately (i) notify
> the sender by reply email and (ii) delete this message and attachments, - (2)
> any use, copy or dissemination of this transmission is strictly prohibited.
> If you or your employer does not consent to Internet email messages of this
> kind, please advise Myriad Group AG by reply e-mail immediately. Opinions,
> conclusions and other information expressed in this message are not given or
> endorsed by Myriad Group AG unless otherwise indicated by an authorized
> representative independent of this message.
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>
More information about the erlang-questions
mailing list