Wireshark-dev: Re: [Wireshark-dev] Build error for asn1/x721 - help needed
From: "Kukosa, Tomas" <[email protected]>
Date: Tue, 9 Oct 2007 21:17:33 +0200
Hello Joerg,
 
the problem is cased with wrong order of asn files. It useally does not matter but it is sometimes important. (see the oreder in "old" cmip makefiles)
The CLASS has to be defined before it is used.
The CMIP-ATTRIBUTE class is defined in the CMIP-1.asn and used in the Attribute-ASN1Module.asn.
If the class is not defined before its usage (Attribute-ASN1Module.asn:261 attributeId CMIP-ATTRIBUTE.&id({AttributeSet}) then syntax analysis fails as the CMIP-ATTRIBUTE is not recognized to be a class identifier.
 
Regards,
  Tomas
 
BTW: format rules for dependency in Makefile.common files does not work for Windows nmake. The $(MAKE) $(MAKEFLAGS) does not work well.
 
e.g.:
 
EXTRA_CNF= \
 ../h235/h235-exp.cnf \
 ../h245/h245-exp.cnf
 
../h235/h235-exp.cnf:
 (cd ../h235 && $(MAKE) $(MAKEFLAGS))
../h245/h245-exp.cnf:
 (cd ../h245 && $(MAKE) $(MAKEFLAGS))

 

________________________________

Od: [email protected] za uživatele Joerg Mayer
Odesláno: út 9.10.2007 20:27
Komu: [email protected]
Předmět: [Wireshark-dev] Build error for asn1/x721 - help needed



Hello,

I've been gettint the error below for some time. Can anyone help out and fix
this (or let me know where I may do something wrong)?

make[1]: Entering directory `/home/jmayer/work/wireshark/svn/trunk/asn1/cmip'
python ../../tools/asn2wrs.py \
                -b -e \
                -p cmip \
                -c ./cmip.cnf \
                -s ./packet-cmip-template \
                -D . \
                ../ros/Remote-Operations-Information-Objects.asn ../ros/Remote-Operations-Generic-ROS-PDUs.asn ../x721/Attribute-ASN1Module.asn CMIP-1.asn CMIP-A-ABORT-Information.asn CMIP-A-ASSOCIATE-Information.asn
ASN.1 to Wireshark dissector compiler
Traceback (most recent call last):
  File "../../tools/asn2wrs.py", line 7533, in <module>
    eth_main()
  File "../../tools/asn2wrs.py", line 7465, in eth_main
    ast.extend(yacc.parse(f.read(), lexer=lexer, debug=pd))
  File "/home/jmayer/work/wireshark/svn/trunk/tools/yacc.py", line 346, in parse
    tok = self.errorfunc(errtoken)
  File "../../tools/asn2wrs.py", line 7323, in p_error
    raise ParseError(t, input_file)
__main__.ParseError: ../x721/Attribute-ASN1Module.asn:261: Unexpected token AMPERSAND('&')
make[1]: *** [packet-cmip.c] Error 1
make[1]: Leaving directory `/home/jmayer/work/wireshark/svn/trunk/asn1/cmip'


Thanks
       Joerg
--
Joerg Mayer                                           <[email protected]>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
_______________________________________________
Wireshark-dev mailing list
[email protected]
http://www.wireshark.org/mailman/listinfo/wireshark-dev


<<winmail.dat>>