Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] Problem with asn2wrs and idmp

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Mon, 16 Sep 2013 22:46:38 +0200
When I try to generate the idmp dissctor in asn1/idmp/, I get an error:

jmayer@egg:~/work/wireshark/svn/build/test/asn1/idmp> make
Scanning dependencies of target x509ce-exp.cnf
ASN.1 to Wireshark dissector compiler
/home/jmayer/work/wireshark/svn/trunk/asn1/x509ce/x509ce.cnf:18: UserWarning: Non-empty line in empty context
  ##.CLASS ATTRIBUTE
/home/jmayer/work/wireshark/svn/trunk/asn1/x509ce/x509ce.cnf:29: UserWarning: Non-empty line in empty context
  ##.END
Traceback (most recent call last):
  File "/home/jmayer/work/wireshark/svn/trunk/tools/asn2wrs.py", line 8002, in <module>
    eth_main()
  File "/home/jmayer/work/wireshark/svn/trunk/tools/asn2wrs.py", line 7933, in eth_main
    ast.extend(yacc.parse(f.read(), lexer=lexer, debug=pd))
  File "/home/jmayer/work/wireshark/svn/trunk/tools/yacc.py", line 265, in parse
    return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc)
  File "/home/jmayer/work/wireshark/svn/trunk/tools/yacc.py", line 1047, in parseopt_notrack
    tok = self.errorfunc(errtoken)
  File "/home/jmayer/work/wireshark/svn/trunk/tools/asn2wrs.py", line 7781, in p_error
    raise ParseError(t, input_file)
__main__.ParseError: CertificateExtensions.asn:30: Unexpected token SYNTAX('SYNTAX')
make[2]: *** [asn1/x509ce/CMakeFiles/x509ce-exp.cnf] Error 1
make[1]: *** [asn1/x509ce/CMakeFiles/x509ce-exp.cnf.dir/all] Error 2
make: *** [all] Error 2
jmayer@egg:~/work/wireshark/svn/build/test/asn1/idmp>


This error only occurs, when I run in a fresh build:

rm -rf ~/work/wireshark/svn/build/test
cd ~/work/wireshark/svn/build
mkdir test
cd test
cmake ../../trunk
cd asn1/idmp
make

If I build all asn1 dissectors in order (make in asn1/), then it builds fine,
so it looks like there is some sort of dependency problem.

Ciao
    Jörg
-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.