Ethereal-dev: Re: [Ethereal-dev] Adding Dissector

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Lars Roland" <Lars.Roland@xxxxxxx>
Date: Fri, 03 Feb 2006 06:34:26 +0100
Am 02.02.2006, 20:58 Uhr, schrieb Jasim Tariq <jasimtariqjt@xxxxxxxxxxx>:

There is something terribly wrong in your build environment and probably
not in your dissector >sources.
You should first try to get distclean working.
If such a simple thing like removing files doesn't work, you have serious
problems.
First you should check your settings in config.nmake.

I have edited the config.nmake file. This is the version I am using:


Please attach files, if you are providing so much information in a mail. Don't add whole files inline.


Well, I should have told you that you should remove only folders from PATH environment variable, which you have added manually. Folders, which are set per default by the system or by programs like MSVC are usually required.

In the past it happened that people had serious problems with building ethereal, because the wrong exectuables were used in the build process due to manually added folders in PATH.



Also, i changed my Path variables. They are:

User Variable:

Path =
C:\cygwin\bin\;C:\ethereal-win32-libs\glib\bin;C:\ethereal-win32-libs\gettext-runtime-0.13.1\bin;C:\ethereal-win32-libs\libiconv-1.9.1.bin.woe32\bin;C:\ethereal-win32-libs\zlib123-dll;C:\ethereal-win32-libs\adns-1.0-win32-05\adns_win32\lib


System Variable:

Path =
C:\cygwin\bin\;C:\ethereal-win32-libs\glib\bin;C:\ethereal-win32-libs\gettext-runtime-0.13.1\bin;C:\ethereal-win32-libs\libiconv-1.9.1.bin.woe32\bin;C:\ethereal-win32-libs\zlib123-dll;C:\ethereal-win32-libs\adns-1.0-win32-05\adns_win32\lib



No don't do that. These folders are added in the last line of config.nmake to the PATH, they should not be part of your user or system PATH.
BTW, from a short look at your config.nmake I can say that the last line is wrong. It has to be like this:
PATH=$(PATH);$(CYGWIN_PATH);$(DLL_PATH);$(ZLIB_PATH);$(ADNS_PATH)

Also uncomment your the line with GTK2_INST_VERSION=2.6 in config.nmake.
It doesn't hurt you, when you don't build with gtk2 and this way you won't forget it, when you switch on building with gtk2


To restore your PATH User and System Variable, I can tell you following:
My user variable PATH is:
C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\cygwin\bin

This contains also the folder for nmake.exe. It is in "C:\Program Files\Microsoft Visual\Studio\VC98\bin\"
You don't need C:\cygwin\bin in the user variable PATH, its optional.

My system variable PATH is C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem

If this doesn't help you, and building still doesn't work, I recommend a complete new and clean installation of your build environment.

About your problem with distclean: 'rm' is failing in epan\dissectors . So look for any *.obj files after a distclean and try to remove them manually if necessary. Perhaps there is a problem with a file permission. Otherwise restore the original epan\dissectors\Makefile.common and try a distclean. If that works, your modification of Makefile.common is not correct.

Regards,
Lars