Ethereal-users: [ethereal-users] Re: compilation questions and possible bug...
At around Wed, 16 Dec 1998 00:33:51 -0800 (PST),
guy@xxxxxxxxxx (Guy Harris) may have mentioned:
> > 1) i'm trying to compile ethereal 0.5.0 on a debian system but for
> > .configure, get:
> >
> > checking for net/bpf.h... no
> > configure: error: Header file net/bpf.h not found.
> >
> > i guess this is because i don't have the berkeley packet filter? i
> > know there is a debian package that works, but it is not the latest
> > version of ethereal. any help for compiling would be appreciated.
>
> You probably need to install "libpcap". See step 2 in the README file's
> "Installation Checklist (Long)".
actually, i had libpcap installed -- just not the header files and a
few other related files. for debian, i needed to install libpcap-dev
to get these files. once i did that, configure was able to complete.
thanks for the tip.
however, once i did a 'make', i got:
...
gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -O2 -I/usr/X11R6/include -I/usr/lib/glib/include -c ethereal.c
In file included from ethereal.c:61:
menu.h:34: parse error before `GtkAcceleratorTable'
ethereal.c: In function `main':
ethereal.c:376: `GtkAcceleratorTable' undeclared (first use this function)
ethereal.c:376: (Each undeclared identifier is reported only once
ethereal.c:376: for each function it appears in.)
ethereal.c:376: `accel' undeclared (first use this function)
ethereal.c:376: warning: statement with no effect
ethereal.c:377: parse error before `pl_size'
ethereal.c:388: `prefs' undeclared (first use this function)
ethereal.c:410: `col_fmt' undeclared (first use this function)
ethereal.c:411: `col_title' undeclared (first use this function)
ethereal.c:426: `bold_font' undeclared (first use this function)
ethereal.c:429: `bv_size' undeclared (first use this function)
ethereal.c:429: warning: implicit declaration of function `atoi'
ethereal.c:442: `medium_font' undeclared (first use this function)
ethereal.c:451: `pl_size' undeclared (first use this function)
ethereal.c:454: `cf_name' undeclared (first use this function)
ethereal.c:475: `tv_size' undeclared (first use this function)
ethereal.c:492: `rc_file' undeclared (first use this function)
ethereal.c:492: warning: implicit declaration of function `getenv'
ethereal.c:492: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
ethereal.c:493: warning: format argument is not a pointer (arg 3)
ethereal.c:526: warning: implicit declaration of function `gtk_window_add_accelerator_table'
make: *** [ethereal.o] Error 1
perhaps this is because gtk-config --version gives 1.1.2 -- i have both
1.1.x and 1.0.x installed. is there some way to tell configure to use
the 1.0.x files?
> > 2) i've manage to get the latest version working on freebsd but the
> > -t a option doesn't appear to work (though it does for version 0.4.1
> > on both freebsd and debian). what happens is that the time column
> > displays 0.000000 for each row.
>
> Damn. Looks like a bug. I'll check into it....
thanks.
> > 3) it doesn't appear to handle files larger than a certain size --
> > i've found that 20 meg files cause core dumps. i realize i can use
> > tcpdump to make the files ethereal deals with smaller, but it would be
> > nice not to have to do this. any thoughts on this matter?
>
> That sounds like another bug - do you have GDB handy? If so, a stack
> trace might be handy - or perhaps you could send one of the developers
> the core dump and we can try it out.
some additional news: the core dumps only seem to occur depending on
what else is running on the machine :-( i am not able to reliably
reproduce the conditions (though i have succeeded a few times). when
i succeed again, i will try to run ktrace and send the tail end of the
kdump-processed output.
thanks for your time.