>So, my failing to run autoconf after changing config.h caused this waste
>of your time ?

Short answer: Yes (sort of).

More it was that it confused me.  However, it caused me to boot back into
FreeBSD so I was able to test two large patches I'm working on, and refine
my tools scripts a little more, so it wasn't a waste.

It's also good to see that it all still works on the two autoxxx sets
(autoconf/automake 12.13/1.4p5 and 2.53/1.5).

Now, obviously since you don't have backtrace, putting SIGBUG in there won't
do anything.  However, you managed to find the missing initialization via
the other path I suggested, and the fix is in the cvs, so all should be
well...

-----Burton

(If my cat allowed me to have an opinion, it would be here)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of Stanley Hopcroft
Sent: Saturday, September 21, 2002 8:35 AM
To: [EMAIL PROTECTED]
Subject: Re: [Ntop-dev] Re: FreeBSD SIGBUS when dumping data --
backtrace


Dear Sir,

Never uderestimate the ingenuity of fools.

I thought that for reasons unknown I _should_ be defining BACKTRACE in
config.h and that the problem was therefore that it was not being found
... in libc.

With no #define HAVE_BACKTRACE 1 in config.h, configure detects that
there is no backtrace

checking for strsep... yes

Step 5. Looking for required system libraries....

checking for dlopen in -ldl... no
checking for backtrace in -lc... no
checking for crypt... no
checking for crypt in -lc... no
checking for crypt in -lcrypt... yes
checking for kstat_lookup in -lkstat... no

Does it compile ? Yes ! After autoconf && automake && gmake
So, my failing to run autoconf after changing config.h caused this waste
of your time ?

pc09011> diff -u initialize.c initialize.c.dist
--- initialize.c        Fri Sep 20 11:56:57 2002
+++ initialize.c.dist   Fri Sep 20 11:56:09 2002
@@ -1270,7 +1270,6 @@
   if(myGlobals.debugMode) {
     /* Activate backtrace trap on -K flag */
     setsignal(SIGSEGV, cleanup);
-    setsignal(SIGBUS, cleanup);
   }
 #endif
 }
pc09011> diff -u ntop.c ntop.c.dist
--- ntop.c      Fri Sep 20 12:03:10 2002
+++ ntop.c.dist Fri Sep 20 11:57:15 2002
@@ -755,7 +755,7 @@
   }

 #ifdef HAVE_BACKTRACE
-  if ( (signo == SIGSEGV) || (signo == SIGBUS) ) {
+  if (signo == SIGSEGV) {
     void *array[20];
     size_t size;
     char **strings;
 ... yada

gcc -g -O2 -pipe -o .libs/intop argv.o command.o getopt.o gnuline.o
prompt.o intop.o init.o open.o close.o filter.o pcapmore.o sniff.o
uptime.o status.o lsdev.o nettable.o info.o swap.o hosts.o arp.o
nbt.o top.o bind.o hash.o dump.o  ../.libs/libntop.so -lpcap
-L/usr/local/lib -lgdbm -lz
-L/usr/home/anwsmh/build/ntop-2.0.99-rc1/gdchart0.94c
-L/usr/home/anwsmh/build/ntop-2.0.99-rc1/gdchart0.94c/gd-1.8.3
-L/usr/home/anwsmh/build/ntop-2.0.99-rc1/gdchart0.94c/gd-1.8.3/libpng-1.2.1
-L/usr/home/anwsmh/build/ntop-2.0.99-rc1/gdchart0.94c/zlib-1.1.4 -lz
-lreadline -lncurses -lc_r -lcrypt -lm -lz -lgdchart -lgd -lpng -lz
-Wl,--rpath -Wl,/usr/local/ntop-2.1.2/lib
/usr/lib/libc.so: WARNING!  setkey(3) not present in the system!
/usr/lib/libc.so: warning: this program uses gets(), which is
unsafe.
/usr/lib/libc.so: warning: mktemp() possibly used unsafely; consider
using mkstemp()
/usr/lib/libc.so: WARNING!  des_setkey(3) not present in the system!
/usr/lib/libc.so: WARNING!  encrypt(3) not present in the system!
/usr/lib/libc.so: warning: tmpnam() possibly used unsafely; consider
using mkstemp()
/usr/lib/libc.so: warning: this program uses f_prealloc(), which is not
recommended.
/usr/lib/libc.so: WARNING!  des_cipher(3) not present in the system!
/usr/lib/libc.so: warning: tempnam() possibly used unsafely; consider
using mkstemp()
/usr/libexec/elf/ld: warning: libpng.so.5, needed by
/usr/local/lib/libgd.so, may conflict with libpng.so.3
creating intop
gmake[2]: Leaving directory
`/usr/home/anwsmh/build/ntop-2.1.2/ntop/intop'
gmake[1]: Leaving directory `/usr/home/anwsmh/build/ntop-2.1.2/ntop'
pc09011>

The details of the build environment

pc09011> uname -a
FreeBSD pc09011.aipo.gov.au 4.6.2-RELEASE-p2 FreeBSD 4.6.2-RELEASE-p2
#7: Mon Sep 16 20:25:34 EST 2002
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/STAN  i386

pc09011> gmake -v
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i386-portbld-freebsd4.5
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <[EMAIL PROTECTED]>.

pc09011> gcc -v
Using builtin specs.
gcc version 2.95.3 20010315 (release) [FreeBSD]

pc09011> autoconf --version
Autoconf version 2.13

pc09011> automake --version
automake (GNU automake) 1.4-p5

Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

Written by Tom Tromey <[EMAIL PROTECTED]>

pc09011> libtool --version
ltmain.sh (GNU libtool) 1.3.4-freebsd-ports (1.385.2.196 1999/12/07
21:47:57)
pc09011>

Thank you very much for your help.

Yours sincerely.

--
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------



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

Reply via email to