ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] Can't build when I add a line to packet_ppp.c?

From: lookfar <lookfar@xxxxxxx>
Date: Tue, 23 Aug 2011 17:34:11 +0800 (CST)
Hi,Dear friends:
I'm a beginner in wireshark.And I 'm from china.
my version is wireshark-1.7.0-SVN-38520.
the error is :
E:\wireshark-1.7.0-SVN-38520\epan\dissectors>nmake -f Makefile.nmake

Microsoft (R) 程序维护实用工具 9.00.30729.01 版
版权所有(C) Microsoft Corporation。保留所有权利。

Making register.c (using python)
  File "../../tools/make-dissector-reg.py", line 62
    print "Unknown output type '%s'" % registertype
                                   ^
SyntaxError: invalid syntax
NMAKE : fatal error U1077: “D:\Python32\python.exe”: 返回代码“0x1”
Stop.

E:\wireshark-1.7.0-SVN-38520\epan\dissectors>nmake -f Makefile.nmake

Microsoft (R) 程序维护实用工具 9.00.30729.01 版
版权所有(C) Microsoft Corporation。保留所有权利。

Making register.c (using python)
  File "../../tools/make-dissector-reg.py", line 62
    print "Unknown output type '%s'" % registertype
                                   ^
SyntaxError: invalid syntax
NMAKE : fatal error U1077: “D:\Python32\python.exe”: 返回代码“0x1”
Stop.

E:\wireshark-1.7.0-SVN-38520\epan\dissectors>nmake -f Makefile.nmake

Microsoft (R) 程序维护实用工具 9.00.30729.01 版
版权所有(C) Microsoft Corporation。保留所有权利。

“dissectors.lib”是最新的

E:\wireshark-1.7.0-SVN-38520\epan\dissectors>nmake -f Makefile.nmake

Microsoft (R) 程序维护实用工具 9.00.30729.01 版
版权所有(C) Microsoft Corporation。保留所有权利。

Making register.c (using python)
  File "../../tools/make-dissector-reg.py", line 62
    print "Unknown output type '%s'" % registertype
                                   ^
SyntaxError: invalid syntax
NMAKE : fatal error U1077: “D:\Python32\python.exe”: 返回代码“0x1”
Stop.

E:\wireshark-1.7.0-SVN-38520\epan\dissectors>nmake -f Makefile.nmake

Microsoft (R) 程序维护实用工具 9.00.30729.01 版
版权所有(C) Microsoft Corporation。保留所有权利。

Making register.c (using python)
  File "../../tools/make-dissector-reg.py", line 62
    print "Unknown output type '%s'" % registertype
                                   ^
SyntaxError: invalid syntax
NMAKE : fatal error U1077: “D:\Python32\python.exe”: 返回代码“0x1”
Stop.

the end of error.

it's ok after I restore the file using the original packet_ppp.c file in zipfile .
I'm wondering the relation between python file and C source file,Is it some fixed rule in parsing dissector source file to build register code?

thanks

I'm in hurry,if you are able to do me a favour,please!!!!

Michael