OK, I've followed my own guesses & managed to cure all of those that I
/thought/ were fatal...however I then find that an earlier 'Warning' was in
fact Fatal :/

webInterface.c: In function `printNtopConfigHInfo':
webInterface.c:1555: `RUN_DIR' undeclared (first use in this function)
webInterface.c:1555: (Each undeclared identifier is reported only once
webInterface.c:1555: for each function it appears in.)
make: *** [webInterface.o] Error 1

To clean this I required the following diff:
--- ntop_win32.h 2002-06-09 19:26:33.000000000 +0100
+++ ntop_win32.h.orig 2002-05-17 15:07:30.000000000 +0100
@@ -42,8 +42,7 @@
 #undef  NTOP_BIG_ENDIAN

 #define DATAFILE_DIR "."
-#define PLUGIN_DIR "."
-#define RUN_DIR "."
+#define PLUGIN_DIR  "."
 #define CONFIGFILE_DIR "."
 #define DBFILE_DIR      "."

The diff I used to clean up the other errors was:
--- webInterface.c 2002-06-09 19:11:16.000000000 +0100
+++ webInterface.c.orig 2002-06-06 23:05:06.000000000 +0100
@@ -1773,14 +1773,12 @@
       BufferTooShort();
   printFeatureConfigInfo(textPrintFlag, "-t | --trace-level", buf);

-#ifndef WIN32
   if(snprintf(buf, sizeof(buf), "%s (uid=%d, gid=%d)",
                                  myGlobals.effectiveUserName,
                                  myGlobals.userId,
                                  myGlobals.groupId) < 0)
       BufferTooShort();
   printFeatureConfigInfo(textPrintFlag, "-u | --user", buf);
-#endif

 #ifdef HAVE_MYSQL
   if (myGlobals.enableDBsupport == 1) {
@@ -1840,11 +1838,9 @@
                            myGlobals.flowSpecs == NULL ? "none" :
myGlobals.flowSpecs,
                            NTOP_DEFAULT_FLOW_SPECS == NULL ? "none" :
NTOP_DEFAULT_FLOW_SPECS);

-#ifndef WIN32
   printParameterConfigInfo(textPrintFlag, "-K | --enable-debug",
                             myGlobals.debugMode == 1 ? "Yes" : "No",
                             NTOP_DEFAULT_DEBUG_MODE == 1 ? "Yes" : "No");
-#endif

 #ifndef WIN32
   if (myGlobals.useSyslog == NTOP_SYSLOG_NONE) {
@@ -1891,7 +1887,6 @@
                            myGlobals.mapperURL,
                            NTOP_DEFAULT_MAPPER_URL);

-#ifdef HAVE_OPENSSL
   if (myGlobals.sslInitialized == 0) {
       strcpy(buf, "Uninitialized");
   } else if (myGlobals.sslPort == 0) {
@@ -1911,7 +1906,6 @@
           BufferTooShort();
   }
   printFeatureConfigInfo(textPrintFlag, "-W | --https-server", buf);
-#endif

   printParameterConfigInfo(textPrintFlag, "--throughput-chart-type",
                            myGlobals.throughput_chart_type == GDC_AREA ?
"Area" : "Bar",
@@ -2272,11 +2266,7 @@
 #ifdef DEBUG
   {
 #else
-#ifndef WIN32
   if(myGlobals.debugMode) {
-#else
-  if(FALSE) {
-#endif /* WIN32 */
 #endif /* DEBUG */
     sendString(texthtml("\n\n",
                         "<P>"TABLE_ON"<TABLE BORDER=1>\n"



This gets me as far as:
regex.o(.text+0x70):regex.c: multiple definition of `re_set_syntax'
regex.o(.text+0x70):regex.c: first defined here
regex.o(.text+0x2fd8):regex.c: multiple definition of `re_compile_fastmap'
regex.o(.text+0x2fd8):regex.c: first defined here
regex.o(.text+0x3404):regex.c: multiple definition of `re_set_registers'
regex.o(.text+0x3404):regex.c: first defined here
regex.o(.text+0x3448):regex.c: multiple definition of `re_search'
regex.o(.text+0x3448):regex.c: first defined here
regex.o(.text+0x368c):regex.c: multiple definition of `re_match'
regex.o(.text+0x368c):regex.c: first defined here
regex.o(.text+0x53c8):regex.c: multiple definition of `re_compile_pattern'
regex.o(.text+0x53c8):regex.c: first defined here
regex.o(.text+0x5420):regex.c: multiple definition of `re_comp'
regex.o(.text+0x5420):regex.c: first defined here
regex.o(.text+0x54cc):regex.c: multiple definition of `re_exec'
regex.o(.text+0x54cc):regex.c: first defined here
regex.o(.text+0x5508):regex.c: multiple definition of `regcomp'
regex.o(.text+0x5508):regex.c: first defined here
regex.o(.text+0x5608):regex.c: multiple definition of `regexec'
regex.o(.text+0x5608):regex.c: first defined here
regex.o(.text+0x5734):regex.c: multiple definition of `regerror'
regex.o(.text+0x5734):regex.c: first defined here
regex.o(.text+0x57a8):regex.c: multiple definition of `regfree'
regex.o(.text+0x57a8):regex.c: first defined here
regex.o(.text+0x36b0):regex.c: multiple definition of `re_match_2'
regex.o(.text+0x36b0):regex.c: first defined here
regex.o(.text+0x3470):regex.c: multiple definition of `re_search_2'
regex.o(.text+0x3470):regex.c: first defined here
regex.o(.data+0x4):regex.c: multiple definition of `re_syntax_options'
regex.o(.data+0x4):regex.c: first defined here
make: *** [ntop] Error 1

I think I'd better stop here for a moment...

Best Wishes,
Fran.

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

Reply via email to