John, I got so far: Compiling... gdfontg.c c:\ntop\source\legacy\gd\gdfontg.h(21) : fatal error C1083: Cannot open include file: 'import_mingw.h': No such file or directory gdfonts.c c:\ntop\source\legacy\gd\gdfonts.h(21) : fatal error C1083: Cannot open include file: 'import_mingw.h': No such file or directory Error executing cl.exe.
ntop.exe - 2 error(s), 0 warning(s) use dirent.H and .C from the URL I sent. rename hash.c to gdbmhash.c, also version.c to gdbmversion.c I am using still gdbm-1.8.0 and gd-2.01. cheers Jac -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 18:43 To: [EMAIL PROTECTED] Subject: Re[2]: [Ntop-dev] Visual C project file Still working on getting this to compile. Using CVS from cvs.ntop.org. Latest get was 9/16. Here are my tries to date: LD> 1.8.4 from www.gnu.org I could not find a 1.8.4 GDBM. www.gnu.org only has 1.8.3. This version also did not include the gdbm.h, gbdmhash.c, gdbmversion.c files. (It does have hash.c and version.c) I've tried a couple different version with no luck. I'm trying to use the Win32_GDBM currently. I downloaded this from http://www.roth.net/libs/gdbm/. Dirent.c will not compile. 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 and another one from http://www.gimp.org/~tml/gimp/win32/downloads.html My compile errors are listed below. I'm trying to nail these down before I get to the next problems. John ======= My Errors ================== DIRENT.C C:\Source\Ntop-src\DIRENT.C(30) : error C2065: 'size_t' : undeclared identifier C:\Source\Ntop-src\DIRENT.C(30) : error C2146: syntax error : missing ';' before identifier 'base_length' C:\Source\Ntop-src\DIRENT.C(30) : error C2065: 'base_length' : undeclared identifier C:\Source\Ntop-src\DIRENT.C(31) : error C2143: syntax error : missing ';' before 'const' C:\Source\Ntop-src\DIRENT.C(34) : warning C4013: 'malloc' undefined; assuming extern returning int C:\Source\Ntop-src\DIRENT.C(34) : error C2027: use of undefined type 'DIR' C:\Source\Ntop-src\dirent.h(19) : see declaration of 'DIR' C:\Source\Ntop-src\DIRENT.C(35) : error C2037: left of 'name' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(35) : error C2065: 'all' : undeclared identifier C:\Source\Ntop-src\DIRENT.C(37) : error C2037: left of 'name' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(37) : error C2168: 'strcpy' : too few actual parameters for intrinsic function C:\Source\Ntop-src\DIRENT.C(39) : error C2037: left of 'handle' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(39) : warning C4013: '_findfirst' undefined; assuming extern returning int C:\Source\Ntop-src\DIRENT.C(39) : error C2037: left of 'name' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(39) : error C2037: left of 'info' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(41) : error C2037: left of 'result' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(45) : warning C4013: 'free' undefined; assuming extern returning int C:\Source\Ntop-src\DIRENT.C(45) : error C2037: left of 'name' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(54) : error C2065: 'errno' : undeclared identifier C:\Source\Ntop-src\DIRENT.C(54) : error C2065: 'ENOMEM' : undeclared identifier C:\Source\Ntop-src\DIRENT.C(59) : error C2065: 'EINVAL' : undeclared identifier C:\Source\Ntop-src\DIRENT.C(71) : error C2037: left of 'handle' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(73) : warning C4013: '_findclose' undefined; assuming extern returning int C:\Source\Ntop-src\DIRENT.C(73) : error C2037: left of 'handle' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(76) : error C2037: left of 'name' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(82) : error C2065: 'EBADF' : undeclared identifier C:\Source\Ntop-src\DIRENT.C(92) : error C2037: left of 'handle' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(94) : error C2037: left of 'result' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(94) : warning C4013: '_findnext' undefined; assuming extern returning int C:\Source\Ntop-src\DIRENT.C(94) : error C2037: left of 'handle' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(94) : error C2037: left of 'info' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(96) : error C2037: left of 'result' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(97) : error C2037: left of 'info' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(99) : error C2065: 'NULL' : undeclared identifier C:\Source\Ntop-src\DIRENT.C(99) : warning C4047: 'return' : 'struct dirent *' differs in levels of indirection from 'int ' C:\Source\Ntop-src\DIRENT.C(111) : error C2037: left of 'handle' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(113) : error C2037: left of 'handle' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(114) : error C2037: left of 'handle' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(114) : error C2037: left of 'name' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(114) : error C2037: left of 'info' specifies undefined struct/union 'DIR' C:\Source\Ntop-src\DIRENT.C(115) : error C2037: left of 'result' specifies undefined struct/union 'DIR' 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 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' qsort.c fatal error C1083: Cannot open source file: 'C:\Source\ntop-src\qsort.c': No such file or directory 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 VERSION.C fatal error C1083: Cannot open source file: 'C:\Source\Ntop-src\VERSION.C': No such file or directory gdbmhash.c fatal error C1083: Cannot open source file: 'C:\Source\legacy\gdbm\gdbmhash.c': No such file or directory gdbmversion.c fatal error C1083: Cannot open source file: 'C:\Source\legacy\gdbm\gdbmversion.c': No such file or directory Error executing cl.exe. ntopvc6.exe - 48 error(s), 19 warning(s) -- Best regards, John Monday, September 15, 2003, 5:57:35 AM, you wrote: LD> Jac, LD> jac engel wrote: >>Luca, >>Using GDBM-1.8.0 from sourceforge Project: GnuWin32 but does not contain >>gdbmhash.c and gdbmversion.c as defined in VC6 project file >>, which GDBM version do you use from which URL? >> LD> 1.8.4 from www.gnu.org >> >>Using GD-1.8.4-1 from sourceforge Project: GnuWin32 but does not contain >>jpeglib.h and gd_topal.c and unistd.h as defined in VC6 project file, >> which GD version do you use from which URL? >> LD> gd 2.x >> >>Also dirent.h is not available , but downloaded this from >>www.two-sdg.demon.co.uk/curbralan/code/dirent/dirent.html >> >> LD> Regards, Luca _______________________________________________ Ntop-dev mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop-dev _______________________________________________ Ntop-dev mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop-dev
