Bug 184529 - net-analyzer/wireshark-0.99.6 fails compile due to warning treated as error
Bug#: 184529 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: netmon@gentoo.org Reported By: no.hope@gmail.com
Component: Applications
URL:  http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1676
Summary: net-analyzer/wireshark-0.99.6 fails compile due to warning treated as error
Keywords:  
Status Whiteboard: 
Opened: 2007-07-07 18:42 0000
Description:   Opened: 2007-07-07 18:42 0000
net-analyzer/wireshark-0.99.6 does not compile if -gtk USE flag is set:

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include
-Werror "-D_U_=__attribute__((unused))" -march=nocona -O -pipe -Wall -W
-Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Wstrict-prototypes
-Wmissing-declarations -Wno-pointer-sign -Wcast-align -I/usr/include/glib-1.2
-I/usr/lib64/glib/include -I/usr/local/include -MT
libwiretap_la-catapult_dct2000.lo -MD -MP -MF
.deps/libwiretap_la-catapult_dct2000.Tpo -c catapult_dct2000.c  -fPIC -DPIC -o
.libs/libwiretap_la-catapult_dct2000.o
cc1: warnings being treated as errors
catapult_dct2000.c: In function 'catapult_dct2000_seek_read':
catapult_dct2000.c:498: warning: format '%lld' expects type 'long long int',
but argument 2 has type 'gint64'


0.99.5 is not affected by this.

Reproducible: Always

------- Comment #1 From Raúl Porcel 2007-07-09 17:34:42 0000 -------
This is fixed adding --disable-warnings-as-errors in the econf line

------- Comment #2 From Raúl Porcel 2007-07-09 17:34:45 0000 -------
*** Bug 184706 has been marked as a duplicate of this bug. ***

------- Comment #3 From Raúl Porcel 2007-07-09 17:38:03 0000 -------
Should be fixed now, Jokey fails.

Hope you guys don't mind

------- Comment #4 From Peter Volkov 2007-07-10 10:04:25 0000 -------
Sorry to reopen. Upstream told me that they are interested in this proble to be
fixed and having -Werror is intentionally there. I'll try to backport changes
from svn.

------- Comment #5 From Peter Volkov 2007-07-16 05:38:10 0000 -------
Created an attachment (id=124995) [details]
wireshark-0.99.6-gint64-warnings.patch

With the next bump we should try to disable warnings for gtk+-1.x and to
disable for gtk+-2.x builds. For 0.99.6 revisions bumps, this patch should be
applied.

------- Comment #6 From Peter Volkov 2007-07-24 18:19:49 0000 -------
Ok. wireshark-0.99.6-r1 has fix for warnings reported here and enables warnings
as errors for gtk-2.0 build, like upstream wants us (see upstream bug report).