Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184529 - net-analyzer/wireshark-0.99.6 fails compile due to warning treated as error
Summary: net-analyzer/wireshark-0.99.6 fails compile due to warning treated as error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL: http://bugs.wireshark.org/bugzilla/sh...
Whiteboard:
Keywords:
: 184706 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-07 18:42 UTC by Vladimir Brik
Modified: 2007-07-24 18:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
wireshark-0.99.6-gint64-warnings.patch (wireshark-0.99.6-gint64-warnings.patch,1.80 KB, patch)
2007-07-16 05:38 UTC, Peter Volkov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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).