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

我在xp系统,MSVC 6.0下,编译ethereal,提示系统的头文件出错,请斑竹和各位高手指点

我在xp系统,MSVC 6.0下,编译ethereal,提示系统的头文件出错,请斑竹和各位高手指点

我在xp系统,MSVC 6.0下,编译ethereal,提示系统的头文件出错,错误信息如下图,请斑竹和各位高手指点,不胜感激!

nmake -f makefile.nmake distclean; OK!

0nmake -f makefile.nmake
出错信息如下:cd tools
                 nmake /  -f Makefile.namke
                cd lemon
                nmake / -f Makefile.nmake
                cl -D_V_=  "" /Zi /W3 lemon.c

lemon.c
c:\cygwin\usr\include\sys/_types.h(15):error c2632:'long' followed by 'long' is illegal
c:\cygwin\usr\include\sys/_types.h(15):error c2054:expected '(' to fllow  '_ _ externsion _ _'
.
我机器是windowsXP系统,装的是MSVC  6.0.首先按照ethreal的developer-guide里面说的安装了cygwin(包含python,sed, perl,  bison, flex等工具) ,设置PATH环境变量,library的设置我是按照源代码包根目录下 的Readme.win32里面的这一段来做的:
The following lists the packages needed to compile Ethereal and the default
locations where to unpack them, when the above method isn't used.
    Package                               Default Location
    -------                               ----------------
    glib-2.4.7.zip                        C:\ethereal-win32-libs\glib
    glib-dev-2.4.7.zip                    C:\ethereal-win32-libs\glib
    gtk+-1.3.0-20030717.zip               C:\ethereal-win32-libs\gtk+
    gtk+-dev-1.3.0-20030115.zip           C:\ethereal-win32-libs\gtk+
    libiconv-1.9.1.bin.woe32.zip          C:\ethereal-win32-libs\libiconv-1.9.1.bin.woe32
    gettext-runtime-0.13.1.zip            C:\ethereal-win32-libs\gettext-runtime-0.13.1
    net-snmp-5.2.1.2.zip                  C:\ethereal-win32-libs
    wpdpack_3_0.zip                       C:\ethereal-win32-libs
and optional:

    adns-1.0-win32-04.zip                 C:\ethereal-win32-libs
    pcre-4.4.zip                          C:\ethereal-win32-libs
    zlib123-dll.zip                       C:\ethereal-win32-libs\zlib123-dll

Compiling the Ethereal distribution using GTK+2
-----------------------------------------------
If you want to try a build with GTK+2.x these Extra libraries are needed

    Package                               Default Location
    -------                               ----------------
    gtk+-2.4.14.zip                       C:\ethereal-win32-libs\gtk2
    gtk+-dev-2.4.14.zip                          C:\ethereal-win32-libs\gtk2
    pango-1.4.1.zip                       C:\ethereal-win32-libs\gtk2       
    pango-dev-1.4.1.zip                   C:\ethereal-win32-libs\gtk2
    atk-1.6.0.zip                         C:\ethereal-win32-libs\gtk2       
    atk-dev-1.6.0.zip                     C:\ethereal-win32-libs\gtk2

and optional:
    gtk-wimp-0.7.0-bin.zip                C:\ethereal-win32-libs\gtk-wimp

安装完成后,产生如下的目录

安装完成后,用nmake -f Makefile.nmake verify_tools确认这些工具到位,见习图。

作完以上的工作,还需要作什么工作?

TOP

没碰上过这种问题。你的cygwin版本新吗?此外那个库文件一般是nmake -f Makefile.nmake setup这样到位的。
说了世上一无牵挂为何有悲喜
说了朋友相交如水为何重别离
说了少年笑看将来为何常回忆
说了青春一去无悔为何还哭泣

TOP

回斑竹,我的库文件是使用

我的库文件不是使用nmake -f makefile.nmakefile setup方式,是手工架载的,听了斑竹的后,又用nmake -f makefile.nmakefile setup 重新下载了库,问题依旧。请问斑竹,你们是直接下来后就可以编译的吗?还有一个问题,你们的cygwin是直接安装的,还是保存在本地,而后安装的?你们选择的TEXT文件的类型是unxi/binary 还是DOS/TEXT?我当时选择的是默认方式unix/binary方式,与此有关系吗?

TOP

回斑竹,我的库文件是使用

我的库文件不是使用nmake -f makefile.nmakefile setup方式,是手工架载的,听了斑竹的后,又用nmake -f makefile.nmakefile setup 重新下载了库,问题依旧。请问斑竹,你们是直接下来后就可以编译的吗?还有一个问题,你们的cygwin是直接安装的,还是保存在本地,而后安装的?你们选择的TEXT文件的类型是unxi/binary 还是DOS/TEXT?我当时选择的是默认方式unix/binary方式,与此有关系吗?

TOP

引用:
原帖由 scz 于 2006-3-21 13:38 发表
没碰上过这种问题。你的cygwin版本新吗?此外那个库文件一般是nmake -f Makefile.nmake setup这样到位的。
> 你们是直接下来后就可以编译的吗?

我们直接下载源代码包,没有用SVN的那个,而是稳定版对应的源码包,直接可以编译。

> 你们的cygwin是直接安装的,还是保存在本地,而后安装的?

没有从Internet安装。而是从一个几百兆的本地目录安装的。

> 你们选择的TEXT文件的类型是unxi/binary 还是DOS/TEXT?我当时选择的是默认方式unix/binary方式,
> 与此有关系吗?

我选的也是Unix。

所以说你那问题奇怪。可能是你的cygwin安装有问题吧。
说了世上一无牵挂为何有悲喜
说了朋友相交如水为何重别离
说了少年笑看将来为何常回忆
说了青春一去无悔为何还哭泣

TOP

发新话题
版块跳转