OK, got a little further. I have 4 outstanding issues:
Compile errors are below. I am assuming that the warnings I get are
acceptable.
Any help?
john
1. NTOP.C
C:\Source\Ntop-src\NTOP.C(910) : warning C4018: '<' : signed/unsigned mismatch
C:\Source\Ntop-src\NTOP.C(997) : error C2039: 'effectiveUserName' : is not a member of
'ntopGlobals'
C:\Source\Ntop-src\globals-structtypes.h(1396) : see declaration of
'ntopGlobals'
C:\Source\Ntop-src\NTOP.C(997) : error C2039: 'effectiveUserName' : is not a member of
'ntopGlobals'
C:\Source\Ntop-src\globals-structtypes.h(1396) : see declaration of
'ntopGlobals'
C:\Source\Ntop-src\NTOP.C(997) : warning C4047: 'function' : 'void ** ' differs in
levels of indirection from 'char [26]'
C:\Source\Ntop-src\NTOP.C(997) : warning C4022: 'ntop_safefree' : pointer mismatch for
actual parameter 1
C:\Source\Ntop-src\NTOP.C(997) : warning C4047: 'function' : 'char *' differs in
levels of indirection from 'const int '
C:\Source\Ntop-src\NTOP.C(997) : warning C4024: 'ntop_safefree' : different types for
formal and actual parameter 2
C:\Source\Ntop-src\NTOP.C(997) : error C2198: 'ntop_safefree' : too few actual
parameters
2. QSORT.C
Removed from project file. (Do I need this?)
3. ntop_win32.c
C:\Source\Ntop-src\ntop_win32.c(227) : error C2371: 'killThread' : redefinition;
different basic types
C:\Source\Ntop-src\globals-core.h(343) : see declaration of 'killThread'
4. rrdPlugin.c
C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(277) : warning C4018: '<=' : signed/unsigned
mismatch
C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(288) : warning C4244: '=' : conversion from
'double ' to 'float ', possible loss of data
C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(841) : error C2039: 'rrdDirectoryPermissions' :
is not a member of 'ntopGlobals'
C:\SOURCE\NTOP-SRC\globals-structtypes.h(1396) : see declaration of
'ntopGlobals'
C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(842) : error C2039: 'rrdUmask' : is not a
member of 'ntopGlobals'
C:\SOURCE\NTOP-SRC\globals-structtypes.h(1396) : see declaration of
'ntopGlobals'
C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(845) : error C2039: 'rrdDirectoryPermissions' :
is not a member of 'ntopGlobals'
C:\SOURCE\NTOP-SRC\globals-structtypes.h(1396) : see declaration of
'ntopGlobals'
C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(846) : error C2039: 'rrdUmask' : is not a
member of 'ntopGlobals'
C:\SOURCE\NTOP-SRC\globals-structtypes.h(1396) : see declaration of
'ntopGlobals'
C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(849) : error C2039: 'rrdDirectoryPermissions' :
is not a member of 'ntopGlobals'
C:\SOURCE\NTOP-SRC\globals-structtypes.h(1396) : see declaration of
'ntopGlobals'
C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(850) : error C2039: 'rrdUmask' : is not a
member of 'ntopGlobals'
C:\SOURCE\NTOP-SRC\globals-structtypes.h(1396) : see declaration of
'ntopGlobals'
C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(1540) : warning C4018: '<' : signed/unsigned
mismatch
C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(1735) : warning C4244: 'function' : conversion
from 'unsigned int ' to 'float ', possible loss of data
C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(1736) : warning C4244: 'function' : conversion
from 'unsigned int ' to 'float ', possible loss of data
C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(1801) : warning C4018: '<' : signed/unsigned
mismatch
C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(1802) : warning C4018: '<' : signed/unsigned
mismatch
5. VERSION.C
Removed from project File. (Do I need this?)
--
Best regards,
John
Tuesday, September 16, 2003, 11:42:42 AM, you wrote:
jln> Still working on getting this to compile. Using CVS from
jln> cvs.ntop.org. Latest get was 9/16.
jln> Here are my tries to date:
LD>> 1.8.4 from www.gnu.org
jln> I could not find a 1.8.4 GDBM. www.gnu.org only has 1.8.3.
jln> This version also did not include the gdbm.h, gbdmhash.c,
jln> gdbmversion.c files. (It does have hash.c and version.c)
jln> I've tried a couple different version with no luck.
jln> I'm trying to use the Win32_GDBM currently. I downloaded this from
jln> http://www.roth.net/libs/gdbm/.
jln> Dirent.c will not compile.
jln> I've used 2 different dirent.h files. 1 mentioned by Jac from
>>>Also dirent.h is not available , but downloaded this from
>>>www.two-sdg.demon.co.uk/curbralan/code/dirent/dirent.html
jln> and another one from http://www.gimp.org/~tml/gimp/win32/downloads.html
jln> My compile errors are listed below. I'm trying to nail these down
jln> before I get to the next problems.
jln> John
jln> ======= My Errors ==================
jln> DIRENT.C
jln> C:\Source\Ntop-src\DIRENT.C(30) : error C2065: 'size_t' : undeclared identifier
jln> C:\Source\Ntop-src\DIRENT.C(30) : error C2146: syntax error : missing ';' before
identifier 'base_length'
jln> C:\Source\Ntop-src\DIRENT.C(30) : error C2065: 'base_length' : undeclared
identifier
jln> C:\Source\Ntop-src\DIRENT.C(31) : error C2143: syntax error : missing ';' before
'const'
jln> C:\Source\Ntop-src\DIRENT.C(34) : warning C4013: 'malloc' undefined; assuming
extern returning int
jln> C:\Source\Ntop-src\DIRENT.C(34) : error C2027: use of undefined type 'DIR'
jln> C:\Source\Ntop-src\dirent.h(19) : see declaration of 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(35) : error C2037: left of 'name' specifies undefined
struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(35) : error C2065: 'all' : undeclared identifier
jln> C:\Source\Ntop-src\DIRENT.C(37) : error C2037: left of 'name' specifies undefined
struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(37) : error C2168: 'strcpy' : too few actual
parameters for intrinsic function
jln> C:\Source\Ntop-src\DIRENT.C(39) : error C2037: left of 'handle' specifies
undefined struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(39) : warning C4013: '_findfirst' undefined; assuming
extern returning int
jln> C:\Source\Ntop-src\DIRENT.C(39) : error C2037: left of 'name' specifies undefined
struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(39) : error C2037: left of 'info' specifies undefined
struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(41) : error C2037: left of 'result' specifies
undefined struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(45) : warning C4013: 'free' undefined; assuming
extern returning int
jln> C:\Source\Ntop-src\DIRENT.C(45) : error C2037: left of 'name' specifies undefined
struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(54) : error C2065: 'errno' : undeclared identifier
jln> C:\Source\Ntop-src\DIRENT.C(54) : error C2065: 'ENOMEM' : undeclared identifier
jln> C:\Source\Ntop-src\DIRENT.C(59) : error C2065: 'EINVAL' : undeclared identifier
jln> C:\Source\Ntop-src\DIRENT.C(71) : error C2037: left of 'handle' specifies
undefined struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(73) : warning C4013: '_findclose' undefined; assuming
extern returning int
jln> C:\Source\Ntop-src\DIRENT.C(73) : error C2037: left of 'handle' specifies
undefined struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(76) : error C2037: left of 'name' specifies undefined
struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(82) : error C2065: 'EBADF' : undeclared identifier
jln> C:\Source\Ntop-src\DIRENT.C(92) : error C2037: left of 'handle' specifies
undefined struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(94) : error C2037: left of 'result' specifies
undefined struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(94) : warning C4013: '_findnext' undefined; assuming
extern returning int
jln> C:\Source\Ntop-src\DIRENT.C(94) : error C2037: left of 'handle' specifies
undefined struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(94) : error C2037: left of 'info' specifies undefined
struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(96) : error C2037: left of 'result' specifies
undefined struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(97) : error C2037: left of 'info' specifies undefined
struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(99) : error C2065: 'NULL' : undeclared identifier
jln> C:\Source\Ntop-src\DIRENT.C(99) : warning C4047: 'return' : 'struct dirent *'
differs in levels of indirection from 'int '
jln> C:\Source\Ntop-src\DIRENT.C(111) : error C2037: left of 'handle' specifies
undefined struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(113) : error C2037: left of 'handle' specifies
undefined struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(114) : error C2037: left of 'handle' specifies
undefined struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(114) : error C2037: left of 'name' specifies
undefined struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(114) : error C2037: left of 'info' specifies
undefined struct/union 'DIR'
jln> C:\Source\Ntop-src\DIRENT.C(115) : error C2037: left of 'result' specifies
undefined struct/union 'DIR'
jln> NTOP.C
jln> C:\Source\Ntop-src\NTOP.C(910) : warning C4018: '<' : signed/unsigned mismatch
jln> C:\Source\Ntop-src\NTOP.C(997) : error C2039: 'effectiveUserName' : is not a
member of 'ntopGlobals'
jln> C:\Source\Ntop-src\globals-structtypes.h(1396) : see declaration of
'ntopGlobals'
jln> C:\Source\Ntop-src\NTOP.C(997) : error C2039: 'effectiveUserName' : is not a
member of 'ntopGlobals'
jln> C:\Source\Ntop-src\globals-structtypes.h(1396) : see declaration of
'ntopGlobals'
jln> C:\Source\Ntop-src\NTOP.C(997) : warning C4047: 'function' : 'void ** ' differs
in levels of indirection from 'char [26]'
jln> C:\Source\Ntop-src\NTOP.C(997) : warning C4022: 'ntop_safefree' : pointer
mismatch for actual parameter 1
jln> C:\Source\Ntop-src\NTOP.C(997) : warning C4047: 'function' : 'char *' differs in
levels of indirection from 'const int '
jln> C:\Source\Ntop-src\NTOP.C(997) : warning C4024: 'ntop_safefree' : different types
for formal and actual parameter 2
jln> C:\Source\Ntop-src\NTOP.C(997) : error C2198: 'ntop_safefree' : too few actual
parameters
jln> ntop_win32.c
jln> C:\Source\Ntop-src\ntop_win32.c(227) : error C2371: 'killThread' : redefinition;
different basic types
jln> C:\Source\Ntop-src\globals-core.h(343) : see declaration of 'killThread'
jln> qsort.c
jln> fatal error C1083: Cannot open source file: 'C:\Source\ntop-src\qsort.c': No such
file or directory
jln> rrdPlugin.c
jln> C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(277) : warning C4018: '<=' :
signed/unsigned mismatch
jln> C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(288) : warning C4244: '=' : conversion
from 'double ' to 'float ', possible loss of data
jln> C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(841) : error C2039:
'rrdDirectoryPermissions' : is not a member of 'ntopGlobals'
jln> C:\SOURCE\NTOP-SRC\globals-structtypes.h(1396) : see declaration of
'ntopGlobals'
jln> C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(842) : error C2039: 'rrdUmask' : is not a
member of 'ntopGlobals'
jln> C:\SOURCE\NTOP-SRC\globals-structtypes.h(1396) : see declaration of
'ntopGlobals'
jln> C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(845) : error C2039:
'rrdDirectoryPermissions' : is not a member of 'ntopGlobals'
jln> C:\SOURCE\NTOP-SRC\globals-structtypes.h(1396) : see declaration of
'ntopGlobals'
jln> C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(846) : error C2039: 'rrdUmask' : is not a
member of 'ntopGlobals'
jln> C:\SOURCE\NTOP-SRC\globals-structtypes.h(1396) : see declaration of
'ntopGlobals'
jln> C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(849) : error C2039:
'rrdDirectoryPermissions' : is not a member of 'ntopGlobals'
jln> C:\SOURCE\NTOP-SRC\globals-structtypes.h(1396) : see declaration of
'ntopGlobals'
jln> C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(850) : error C2039: 'rrdUmask' : is not a
member of 'ntopGlobals'
jln> C:\SOURCE\NTOP-SRC\globals-structtypes.h(1396) : see declaration of
'ntopGlobals'
jln> C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(1540) : warning C4018: '<' :
signed/unsigned mismatch
jln> C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(1735) : warning C4244: 'function' :
conversion from 'unsigned int ' to 'float ', possible loss of data
jln> C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(1736) : warning C4244: 'function' :
conversion from 'unsigned int ' to 'float ', possible loss of data
jln> C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(1801) : warning C4018: '<' :
signed/unsigned mismatch
jln> C:\Source\Ntop-src\PLUGINS\rrdPlugin.c(1802) : warning C4018: '<' :
signed/unsigned mismatch
jln> VERSION.C
jln> fatal error C1083: Cannot open source file: 'C:\Source\Ntop-src\VERSION.C': No
such file or directory
jln> gdbmhash.c
jln> fatal error C1083: Cannot open source file: 'C:\Source\legacy\gdbm\gdbmhash.c':
No such file or directory
jln> gdbmversion.c
jln> fatal error C1083: Cannot open source file:
'C:\Source\legacy\gdbm\gdbmversion.c': No such file or directory
jln> Error executing cl.exe.
jln> ntopvc6.exe - 48 error(s), 19 warning(s)
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev