Wrong answer...

The BEST answer is to get a copy of fileutils-4.1 compiled under MinGW.
That seems to be hard to track down.  I thought I had one, but it was
fileutils-4.0 and the one missing was... <drum-roll /> rm.  I found another,
but it's not actually MinGW, rather a separate port of the standard utils to
Win32.

Anyway, as a kludgy work-around, I added a .bat version of rm to the
documentation and Luca put it into the cvs.  Unfortunately it's under
gdchart0.94c, which is probably sub optimal.  I've listed it below.  It does
the "if exist" test and should not cause the problem.

Also, while I'm on the soap box, please be aware that I don't have access to
[EMAIL PROTECTED] and don't see what you sent - but it seems like we've been
working at cross purposes on the Makefiles.  I'll be honest, I've ignored a
lot of your work and done it myself, differently, for three reasons...

1. I was working on adding MORE to the version.c file, not removing it
2. (as were many of my patches when I first started), you need to remember
to do things in a common, portable way, not just ones unique to your
particular setup.
3. I haven't seen all of your patches because I don't see that mail box.
4. If you're going to whine about a commit, please change the subject to
something meaningful, so people can find the messages in the back-traffic...

Anyway, back to rm.bat - stick it somewhere on your path.  I'll email Luca
separately and ask him to move it to the ntop directory from the
gdchart0.94c directory.

With this, it should, correctly, create versions.c that looks like this:

char *version = "2.0.99RC2+";
char *osName  = "Windows-MinGW";
char *author  = "Luca Deri <[EMAIL PROTECTED]>";
char *compiler_cflags =
"-O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Id:/MinGW/includ
e -Id:/MinGW/wpdpack/include -Id:/MinGW/wpdpack/include/NET -I../gdchart0.94
c";
char *core_libs       = "-lgdbm -lwpcap -lgdchart -lgd -lpng -lz -lwsock32";
char *system_libs     =
"-Ld:/MinGW/wpdpack/lib -Ld:/MinGW/lib -L../gdchart0.94c -L../gdchart0.94c/z
lib-1.1.4 -L../gdchart0.94c/gd-1.8.3 -L../gdchart0.94c/gd-1.8.3/libpng-1.2.1
";





@echo off
if /%1 == /-f shift
if /%1 == / goto :usage
:loop
if /%1 == / goto :done
if exist %1 del %1
shift
goto :loop
goto :done
:usage
echo "Usage:  rm [-f] file [, file ...]"
:done

-----Burton


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of Jac Engel
Sent: Thursday, June 13, 2002 12:03 PM
To: [EMAIL PROTECTED]
Subject: RE: [Ntop-dev] New ntop commit (author burton)


>>Notable:
>>1) Fixed Makefile.mingw to generate the version.c file correctly,
>>   fixed zlib and libpng version numbers, fixed the major version number
>>   for ntop.exe and the "OSname".  Removed the rpm, deb, etc. generation
>>   stuff, since it's not meaningful under MinGW.
>>-----Burton (Ref BMS0084 & various whines on the mailing list)

Compiling Ntop cvs 02-06-13
Make of ntop failed error:

  rm: version.c: No such file or directory
  make: *** [version.c] Error 1

workaround : created version.c file (0 bytes) in ntop dir

 ntop about-configuration shows :(NOT version  :2.0.99rc2+ and OS
=Windows-MinGW
as stated in makefile.mingw )
Basic information
ntop version 2.0.99rc2
Built on 11/06/2002
OS WinNT/2K/XP



Jac


_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop-dev

_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop-dev

_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop-dev

Reply via email to