Title: Message
Interesting... the ./configure patch is wrong - they should also change the regex just above. The glib-2.0 is a FreeBSD packaging issue.  But the util.c patch looks reasonable and s/b baseline...
 
-----Burton


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Scheidell
Sent: Monday, June 12, 2006 7:22 AM
To: [email protected]
Subject: RE: [Ntop] FBSD crash: how can I help?

here all their patches:(again, none seemed to help)
one of their options is to use newer libpcap (from ports collection) rather than os distributed.
That doesn't help either.
 
I will disable all freebsd patches, run it again and get gdb.
 
 
added config args:
--disable-ipv6
 
--- configure.orig      Tue Dec 21 05:07:24 2004
+++ configure   Sun Jan 16 10:19:25 2005
@@ -5173,7 +5173,7 @@
         exit 1
         ;;
     *1\.3\.[45]\-freebsd\-ports*)
-        echo "* FreeBSD ports 1.3.4 seems to work, so we will let it slide..."
+        echo "* FreeBSD ports 1.3.5 seems to work, so we will let it slide..."
         echo "*"
         echo "* Fasten your seat belt and good luck!  If you are injured, the"
         echo "* development team will disavow any knowledge of your intentions."
@@ -22928,13 +22928,13 @@
 
 
 
-echo "$as_me:$LINENO: checking for g_date_julian in -lglib" >&5
-echo $ECHO_N "checking for g_date_julian in -lglib... $ECHO_C" >&6
-if test "${ac_cv_lib_glib_g_date_julian+set}" = set; then
+echo "$as_me:$LINENO: checking for g_date_new_julian in -lglib-2.0" >&5
+echo $ECHO_N "checking for g_date_new_julian in -lglib-2.0... $ECHO_C" >&6
+if test "${ac_cv_lib_glib_g_date_new_julian+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lglib  $LIBS"
+LIBS="-lglib-2.0  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -22948,11 +22948,11 @@
 #endif
 /* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
-char g_date_julian ();
+char g_date_new_julian ();
 int
 main ()
 {
-g_date_julian ();
+g_date_new_julian ();
   ;
   return 0;
 }
@@ -22997,7 +22997,7 @@
 #define HAVE_LIBGLIB 1
 _ACEOF
 
-  LIBS="-lglib $LIBS"
+  LIBS="-lglib-2.0 $LIBS"
 
 fi
 
@@ -28604,7 +28604,7 @@
    test ".${ac_cv_header_glibconfig_h}" = ".yes"      &&
    test ".${ac_cv_header_xmlversion_h}" = ".yes"      &&
    test ".${ac_cv_header_gdome_h}" = ".yes"           &&
-   test ".${ac_cv_lib_glib_g_date_julian}" = ".yes"   &&
+   test ".${ac_cv_lib_glib_g_date_new_julian}" = ".yes"   &&
    test ".${ac_cv_lib_xml2_xmlCheckVersion}" = ".yes" &&
    test ".${ac_cv_lib_gdome_gdome_di_saveDocToFile}" = ".yes"; then
     echo "$as_me:$LINENO: result: ok" >&5
@@ -28623,7 +28623,7 @@
     echo "*                  gdome.h...${ac_cv_header_gdome_h}"
     echo "*                  libgdome.so or libgdome.a...${ac_cv_lib_gdome_gdome_di_saveDocToFile}"
     echo "*                  glib.h...${ac_cv_header_glib_h}"
-    echo "*                  libglib.so or libglib.a...${ac_cv_lib_glib_g_date_julian}"
+    echo "*                  libglib.so or libglib.a...${ac_cv_lib_glib_g_date_new_julian}"
     echo "*                  glibconfig.h...${ac_cv_header_glibconfig_h}"
     echo "*"
     echo "*           (yes means it was found, no means it was not found)"
--- ntop.h.orig Mon Aug  1 12:07:39 2005
+++ ntop.h      Mon Aug  1 12:08:13 2005
@@ -447,7 +447,7 @@
 #endif
 
 #ifndef EMBEDDED
-#include "rrd.h"
+#include "myrrd/rrd.h"
 #endif
 
 #ifdef HAVE_GETOPT_H
--- util.c.orig Thu Dec 16 20:13:26 2004
+++ util.c      Sun Jan 16 12:05:04 2005
@@ -494,7 +494,8 @@
     if(!strcmp(ii->name,device))
       if(iface_if_getinfo(ii) & IFACE_INFO_UP) {
        /* Allocate memory for IPv6 addresses*/
-       count = iface_if_addrcount(ii, AF_INET6);
+       if ((count = iface_if_addrcount(ii, AF_INET6)) == 0)
+               return NULL;
        if(count == 0) break;
        addrs = (NtopIfaceAddr *)calloc(count, sizeof(NtopIfaceAddr));
        addr_pos = 0;
 
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to