Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 184529

Summary: net-analyzer/wireshark-0.99.6 fails compile due to warning treated as error
Product: Gentoo Linux Reporter: Vladimir Brik <no.hope>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal CC: klausman
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1676
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: wireshark-0.99.6-gint64-warnings.patch

Description Vladimir Brik 2007-07-07 18:42:42 UTC
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 Raúl Porcel (RETIRED) gentoo-dev 2007-07-09 17:34:42 UTC
This is fixed adding --disable-warnings-as-errors in the econf line
Comment 2 Raúl Porcel (RETIRED) gentoo-dev 2007-07-09 17:34:45 UTC
*** Bug 184706 has been marked as a duplicate of this bug. ***
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2007-07-09 17:38:03 UTC
Should be fixed now, Jokey fails.

Hope you guys don't mind
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2007-07-10 10:04:25 UTC
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 Peter Volkov (RETIRED) gentoo-dev 2007-07-16 05:38:10 UTC
Created attachment 124995 [details, diff]
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 Peter Volkov (RETIRED) gentoo-dev 2007-07-24 18:19:49 UTC
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).