Netexpert FAQ 网络分析专家学习建议入口 @netexpert成员申请指南
网络分析时代 netexpert积分规则的说明 Netis招贤纳士(2008年11月22日更新)
发新话题
打印

编译wireshark1.0.0出现的问题,请指点迷津!

编译wireshark1.0.0出现的问题,请指点迷津!

前期的工作完全按照了wireshark官方的开发文档进行准备,安装了 vc6.0,但是没有下载 sdk(不知道对编译环节有没有影响),将cygwin的bin目录加入环境变量,执行vc6的vcvar32.bat

然后执行:
C:\wireshark-1.0.0>nmake -f Makefile.nmake verify_tools

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

Checking for required applications:
        cl: /cygdrive/c/Program Files/Microsoft Visual Studio/VC98/bin/cl
        link: /cygdrive/c/Program Files/Microsoft Visual Studio/VC98/bin/link
        nmake: /cygdrive/c/Program Files/Microsoft Visual Studio/VC98/bin/nmake

        bash: /usr/bin/bash
       bison: /usr/bin/bison        flex: /usr/bin/flex
        env: /usr/bin/env
        grep: /usr/bin/grep
        /usr/bin/find: /usr/bin/find
        perl: /usr/bin/perl
        C:/python24/python.exe: /cygdrive/c/python24/python.exe
        sed: /usr/bin/sed
        unzip: /usr/bin/unzip
        wget: /usr/bin/wget

工具应该是不缺了,然后在线下载了所有 wireshark1.0.0编译需要的lib文件,然后对源代码进行编译:


C:\wireshark-1.0.0>nmake -f Makefile.nmake all

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        cd tools
        NMAKE /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        cd lemon
        NMAKE /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        cd ..
        cd ..
        cd image
        NMAKE /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        cd ..
        cd codecs
        NMAKE /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

'codecs.lib' is up-to-date
        cd ..
        cd wiretap
        NMAKE /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        bison  -d -p ascend ascend-grammar.y -o ascend-grammar.c
NMAKE : fatal error U1077: 'bison' : return code '0xd00'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\N
MAKE.EXE"' : return code '0x2'
Stop.


查询信息得知 bison是一个词法分析工具,已经在cygwin中了,但是不知道发生了什么问题,返回的错误代码0x00是什么意思呢 ?

希望大家多多指点!谢谢 !

TOP

晕死了,问题已经解决 !

原因是源代码的wiretap目录中缺少了2个文件 !!!

TOP

我现在碰到了和楼主同样的问题,不知道楼主是怎么解决的?能说下吗?

TOP

发新话题
版块跳转