Ethereal-dev: SV: [Ethereal-dev] Unable to do nmake -f makefile.nmake packagingon SVN tarball

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

From: "Anders Broman" <a.broman@xxxxxxxxx>
Date: Tue, 13 Sep 2005 18:49:04 +0200
Hi,
Cheked in. Thanks that solved my problem.
Brg
Anders

-----Ursprungligt meddelande-----
Från: ethereal-dev-bounces@xxxxxxxxxxxx
[mailto:ethereal-dev-bounces@xxxxxxxxxxxx] För Peter Johansson
Skickat: den 13 september 2005 13:17
Till: Ethereal development
Ämne: Re: [Ethereal-dev] Unable to do nmake -f makefile.nmake packagingon
SVN tarball

Anders Broman (AL/EAB) wrote:

>Hi,
>when I try to do packaging on the files in the SVN tarball I get:
>
>Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
>Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
>
>        link -dll /out:acn.dll /NOLOGO /INCREMENTAL:no /MACHINE:I386 /DEBUG
pack
>et-acn.obj ..\..\epan\libethereal.lib
C:\ethereal-win32-libs\glib\lib\glib-2.0.
>lib  C:\ethereal-win32-libs\glib\lib\gmodule-2.0.lib
C:\ethereal-win32-libs\gli
>b\lib\gobject-2.0.lib
>'link' is not recognized as an internal or external command,
>operable program or batch file.
>NMAKE : fatal error U1077: 'link' : return code '0x1'
>Stop.
>NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
Studio\VC98\Bin\N
>MAKE.EXE"' : return code '0x2'
>Stop.
>NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
Studio\VC98\Bin\N
>MAKE.EXE"' : return code '0x2'
>Stop.
>NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
Studio\VC98\Bin\N
>MAKE.EXE"' : return code '0x2'
>Stop.
>
>But compiling and running works - ideas any one?
>
>Brg
>Anders
>
>_______________________________________________
>Ethereal-dev mailing list
>Ethereal-dev@xxxxxxxxxxxx
>http://www.ethereal.com/mailman/listinfo/ethereal-dev
>
>  
>
I have had the same problems and found out that the problem lies in the 
path being too long.
I ran "nmake -f makefile.nmake /p" and found this:
         PATH = $(PCRE_DIR)\bin;$(PATH)
        $(ADNS_DIR)\adns_win32\lib;$(PATH)
        $(ZLIB_DIR);$(PATH)
        $(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin;$(PATH)
        $(PATH);c:\cygwin\bin
        
C:\ethereal-win32-libs\pcre-6.3\bin;C:\ethereal-win32-libs\adns-1.0-win32-04
\adns_win32\lib;C:\ethereal-win32-libs\zlib123-dll;C:\ethereal-win32-libs\gl
ib\bin;C:\ethereal-win32-libs\gettext-runtime-0.13.1\bin;C:\ethereal-win32-l
ibs\libiconv-1.9.1.bin.woe32\bin;C:\ethereal-win32-libs\pcre-6.3\bin;C:\ethe
real-win32-libs\adns-1.0-win32-04\adns_win32\lib;C:\ethereal-win32-libs\zlib
123-dll;C:\ethereal-win32-libs\glib\bin;C:\ethereal-win32-libs\gettext-runti
me-0.13.1\bin;C:\ethereal-win32-libs\libiconv-1.9.1.bin.woe32\bin;C:\PROGRA~
1\MICROS~3\Common\msdev98\BIN;C:\PROGRA~1\MICROS~3\VC98\BIN;c:\winnt\system3
2;c:\cygwin\bin;c:\cygwin\bin

This means that whatever PATH contents one had before starting the 
build, that PATH is added to the new PATH variable 5 additional times 
instead of 1.
I have made changes (supplied) to config.nmake that takes care of this 
problem. Please consider it to be checked-in into SVN.

/ Peter