This is a email to follow up on Scott Renfro's posting in November.

I follow BUILD-MinGW.txt to compile NTOP 2.0 ( December 27, 2001 )on Win
2000 and Win ME.
There are some mistakes have to be corrected:

1. ntop/Makefile.mingw
    i) rm won't work there is no rm.exe in MinGW1.1.  You have to add 'rm'
from other utility package OR create empty rm.bat OR delete 8.o manually.

    ii) The following command in Makefile.mingw generate a incorrect
version.c
.............
 version.c:
 -rm $@
 echo "char version[] = \"$(VERSION)\";" > $@
 echo "char osName[]  = \"$(OSNAME)\";" >> $@
 echo "char author[]  = \"Luca Deri <[EMAIL PROTECTED]>\";" >> $@
.............
 The version.c is
     "char version[] = \"1.1\";"
     "char osName[]  = \"win2k\";"
 It should not have outer double quotation.
 The correct version.c is
     char version[] = "1.1";
     char osName[]  = "win2k";

   iii) protocols.c is missing in CSRC
............
CSRC = ntop.c pbuf.c util.c http.c vendor.c report.c qsort.c \
 globals-core.c globals-report.c address.c admin.c \
 dataFormat.c emitter.c event.c graph.c hash.c \
 initialize.c leaks.c logger.c main.c ntop_win32.c \
 reportUtils.c traffic.c plugin.c webInterface.c term.c \
 netflow.c sql.c rules.c plugins/icmpPlugin.c \
 plugins/lastSeenPlugin.c plugins/nfsPlugin.c \
 plugins/rmonPlugin.c plugins/wapPlugin.c regex.c
............

2. ntop run time error
       After I made the above changes I can get ntop.exe. ( I compiled on
both Win2000 and WinME platforms)  ntop.exe runs well on Win 2000 but it can
not run on Win ME.

D:\ntop>ntop
Wait please: ntop is coming up...
17/Jan/2002 23:35:37 Initializing IP services...
17/Jan/2002 23:35:37 Initializing GDBM...
17/Jan/2002 23:35:37 Database './dnsCache.db' open failed: unknown gdbm
errno
17/Jan/2002 23:35:37 Possible solution: please use '-P <directory>'

dnsCache.db is created but size is zero.

Does version.c statements OK for WinME?
     char version[] = "1.1";
     char osName[]  = "win2k";
Or there is some problem on win32/mingw with WinME?
(I use gdbm-1.8.0-20010430.zip from
http://sourceforge.net/projects/mingwrep)


Thanks for reply,

Jen-Lung




_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop-dev

Reply via email to