Ethereal-dev: Re: [Ethereal-dev] Error compiling latest CVS (ethereal-tap-register.c) on WIN32

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

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Mon, 09 Feb 2004 20:29:45 +0100
Yaniv Kaul wrote:

I've tried compiling, did 'distclean' and 'clean' before, but I'm getting the following error:
       cd ..
       cd gtk
NMAKE / /f Makefile.nmake GTK_CFLAGS="/IC:\ethereal-wi n32-libs\glib\include\glib-2.0 /IC:\ethereal-win32-libs\glib\lib\glib-2.0\inclu de /IC:\ethereal-win32-libs\gtk+\include /IC:\ethereal-win32-libs\gtk+\include\g dk /IC:\ethereal-win32-libs\gtk+\lib\gtk+\include" GTK_LIBS="C:\ethereal-win32- libs\gtk+\lib\gtk.lib C:\ethereal-win32-libs\gtk+\lib\gdk.lib C:\ethereal-win3 2-libs\glib\lib\glib-2.0.lib C:\ethereal-win32-libs\glib\lib\gmodule-2.0.lib C
:\ethereal-win32-libs\glib\lib\gobject-2.0.lib" libui.lib

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

Making ethereal-tap-register.c
'..' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: '..' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\Bin\N
MAKE.EXE"' : return code '0x2'
Stop.

Copied from gtk/Makefile.nmake:

ethereal-tap-register.c: $(ETHEREAL_TAP_SRC) ../make-tapreg-dotc
   @echo Making ethereal-tap-register.c
   @$(SH) ../make-tapreg-dotc ethereal-tap-register.c . $(ETHEREAL_TAP_SRC)

It seems to be, that you don't have something valid defined for $(SH), this should be configured to an executable shell (like a bash from cygwin),
have a look at config.nmake for the SH setting.

Regards, ULFL