traffic-gist-0.2.0 fails to compile

Bug #807662 reported by Philip
6
This bug affects 1 person
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::record(const Nime&)':
RateStat.cc:18: warning: converting to `int' from `double'
depbase=`echo Sniffer.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I../src -I../import/xstd/include
-I../import/DnsPaxxer/sr c -I../src -I../import/xstd/include
-I../import/DnsPaxxer/src -g -O1 -Wall -Ww rite-strings
-Woverloaded-virtual -pipe -MT Sniffer.o -MD -MP -MF $depbase.Tpo - c
-o Sniffer.o Sniffer.cc &&\
mv -f $depbase.Tpo $depbase.Po
Sniffer.cc: In function `void HandleEther(Packet&)':
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(Packet&)':
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(pcap_t*, b pf_program*, char*, int, bpf_u_int32)'
Sniffer.cc: In member function `void Sniffer::configureSignals() const':
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/infoblox/Desktop/traffic-gist-0.2.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/infoblox/Desktop/traffic-gist-0.2.0/src'
make: *** [all-recursive] Error 1
{/error}

ADDITIONAL DEBUG INFO:

[infoblox@dhcp-192-168-0-98 traffic-gist-0.2.0]$ uname -ar
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@dhcp-192-168-0-98 traffic-gist-0.2.0]$ gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk
--host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-11)

[infoblox@dhcp-192-168-0-98 traffic-gist-0.2.0]$ make -v
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.

Revision history for this message
Dmitry Kurochkin (dmitry.kurochkin) wrote :

Hi Philip.

Please try the attached patch, it should fix the build on RHEL4.

Changed in gist:
assignee: nobody → Dmitry Kurochkin (dmitry.kurochkin)
Revision history for this message
Philip (pmiller-infoblox) wrote :

Hi Dmitry,
I'll give this a shot as soon as my backups are complete later today. (my CENTOS VM is shutdown and my NAS has control over the storage volume right now) For reference, what is an appropriate "patch" command to apply this? patch -p1 /some/file or patch -p0 < the.patch

many thanks! -Philip

Revision history for this message
Dmitry Kurochkin (dmitry.kurochkin) wrote :

Hi Philip.

The command should be "patch -p0".

Revision history for this message
Philip (pmiller-infoblox) wrote :

That patch worked perfectly for my build on x86-64/CentOS 4.8 [as close to RHEL as I could get]
Dmitry, thank you very much!

-------

[infoblox@dhcp-192-168-0-98 bin]$ file traffic-gist
traffic-gist: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), not stripped

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.