Wireshark-dev: [Wireshark-dev] Compilation error in asn.1 file

Date: Mon, 24 Dec 2007 11:07:47 +0530

Hi ,

 

I have written .asn and  .cnf files for my dissector. I have created a nominal template.c and template .h files as I suppose the asn2wrs compiler would generate the functions and declarations. I also suppose I should add the variable declarations and function definitions after the compilation.

 

I am getting the following error while compiling :

 

python ../../tools/asn2wrs.py -b -e -p tsrp -c tsrp.cnf -s packet-tsrp-template tsrp.asn

ASN.1 to Wireshark dissector compiler

tsrp.cnf:65: UserWarning: Duplicated FN_PARS for Command. Previous one is at tsrp.cnf:57

  #.FN_BODY  Command Result VAL_PTR = &parameter_tvb

Traceback (most recent call last):

  File "../../tools/asn2wrs.py", line 4875, in ?

    eth_main()

  File "../../tools/asn2wrs.py", line 4831, in eth_main

    ast.extend(yacc.parse(f.read(), lexer=lexer, debug=pd))

  File "/home/eth/plugin_dev/wireshark_tsrp/wireshark/tools/yacc.py", line 334, in parse

    tok = self.errorfunc(errtoken)

  File "../../tools/asn2wrs.py", line 4705, in p_error

    raise ParseError(str(t))

__main__.ParseError: LexToken(DEFINITIONS,'DEFINITIONS',1,199)

make: *** [packet-tsrp.c] Error 1

 

I am not sure the error is pertaining to .asn, .cnf or the template files.Can somebody please help.

 

BR,

Tarani


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com