traffic-gist-0.2.0 fails to compile
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gist |
New
|
Undecided
|
Dmitry Kurochkin |
Bug Description
the following error is logged during compilation on CENTOS 4 / RHEL 4
{error}
mv -f $depbase.Tpo $depbase.Po
RateStat.cc: In member function `void RateStat:
RateStat.cc:18: warning: converting to `int' from `double'
depbase=`echo Sniffer.o | sed 's|[^/]
g++ -DHAVE_CONFIG_H -I../src -I../import/
-I../import/
-I../import/
-Woverloaded-
-o Sniffer.o Sniffer.cc &&\
mv -f $depbase.Tpo $depbase.Po
Sniffer.cc: In function `void HandleEther(
Sniffer.cc:202: error: `ETHERTYPE_VLAN' was not declared in this scope
Sniffer.cc:202: warning: unused variable 'ETHERTYPE_VLAN'
Sniffer.cc:214: error: `ETHERTYPE_IPV6' was not declared in this scope
Sniffer.cc:214: warning: unused variable 'ETHERTYPE_IPV6'
Sniffer.cc: In function `void HandleLinuxSll(
Sniffer.cc:239: error: `ETHERTYPE_IPV6' was not declared in this scope
Sniffer.cc:239: warning: unused variable 'ETHERTYPE_IPV6'
Sniffer.cc: In member function `void Sniffer::run()':
Sniffer.cc:314: error: invalid conversion from `const char*' to `char*'
Sniffer.cc:314: error: initializing argument 3 of `int
pcap_compile(
Sniffer.cc: In member function `void Sniffer:
Sniffer.cc:373: warning: passing `double' for converting 1 of
`unsigned int alar m(unsigned int)'
make[2]: *** [Sniffer.o] Error 1
make[2]: Leaving directory `/home/
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/
make: *** [all-recursive] Error 1
{/error}
ADDITIONAL DEBUG INFO:
[infoblox@
Linux dhcp-192-168-0-98 2.6.9-100.ELsmp #1 SMP Fri Feb 18 01:47:46 EST
2011 i686 i686 i386 GNU/Linux
[infoblox@
Reading specs from /usr/lib/
Configured with: ../configure --prefix=/usr --mandir=
--infodir=
--disable-checking --with-system-zlib --enable-
--disable-
--host=
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-11)
[infoblox@
GNU Make 3.80
Copyright (C) 2002 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.
Changed in gist: | |
assignee: | nobody → Dmitry Kurochkin (dmitry.kurochkin) |
Hi Philip.
Please try the attached patch, it should fix the build on RHEL4.