Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 470638 - net-analyzer/gnome-nettool-3.8.0 with gcc-4.8 - info.c:235:2: fel: format ”%lld” expecting argument of the type ”long long int”, but argument 3 is of type ”guint64” [-Werror=format=]
Summary: net-analyzer/gnome-nettool-3.8.0 with gcc-4.8 - info.c:235:2: fel: format ”%l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks: werror gcc-4.8
  Show dependency tree
 
Reported: 2013-05-19 12:28 UTC by Peter Asplund
Modified: 2013-12-23 13:10 UTC (History)
0 users

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


Attachments
emerge --info (file_470638.txt,7.15 KB, text/plain)
2013-05-19 12:30 UTC, Peter Asplund
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Asplund 2013-05-19 12:28:42 UTC
I just tried updating to Gnome 3.8 and GCC 4.8, and it seems that all of my installed Gnome 3.8 packages compiles fine, except gnome-nettool.

Minor issue with some casts it seems. I've translated the compiler errors from Swedish to English, so the might not be word-by-word correct in regards to its English version.

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DGNOME_NETTOOL_LOCALEDIR=\""/usr/share/locale"\" -DUI_DIR=\""/usr/share/gnome-nettool/ui/"\" -DPIXMAPS_DIR=\""/usr/share/gnome-nettool/pixmaps"\" -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/libgtop-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     -march=native -O2 -pipe  -Wall -Wstrict-prototypes -Wnested-externs -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs  -c lookup.c
info.c: I funktion ”info_nic_update_stats”:
info.c:235:2: fel: format ”%lld” expecting argument of the type ”long long int”, but argument 3 is of type ”guint64” [-Werror=format=]
  g_sprintf (rx_pkt, "%lld", netload.packets_in);
  ^
info.c:236:2: fel: format ”%lld” expecting argument of the type ”long long int”, but argument 3 is of type ”guint64” [-Werror=format=]
  g_sprintf (tx_pkt, "%lld", netload.packets_out);
  ^
info.c:238:2: fel: format ”%lld” expecting argument of the type ”long long int”, but argument 3 is of type ”guint64” [-Werror=format=]
  g_sprintf (rx_error, "%lld", netload.errors_in);
  ^
info.c:239:2: fel: format ”%lld” expecting argument of the type ”long long int”, but argument 3 is of type ”guint64” [-Werror=format=]
  g_sprintf (tx_error, "%lld", netload.errors_out);
  ^
info.c:241:2: fel: format ”%lld” expecting argument of the type ”long long int”, but argument 3 is of type ”guint64” [-Werror=format=]
  g_sprintf (collisions, "%lld", netload.collisions);
  ^
cc1: några varningar behandlas som fel
make[2]: *** [info.o] Fel 1
make[2]: *** Inväntar oavslutade jobb...
make[2]: Lämnar katalogen "/var/tmp/portage/net-analyzer/gnome-nettool-3.8.0/work/gnome-nettool-3.8.0/src"
make[1]: *** [all-recursive] Fel 1
make[1]: Lämnar katalogen "/var/tmp/portage/net-analyzer/gnome-nettool-3.8.0/work/gnome-nettool-3.8.0"
make: *** [all] Fel 2
 * ERROR: net-analyzer/gnome-nettool-3.8.0 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-analyzer/gnome-nettool-3.8.0'`,
 * the complete build log and the output of `emerge -pqv '=net-analyzer/gnome-nettool-3.8.0'`.
 * The complete build log is located at '/var/tmp/portage/net-analyzer/gnome-nettool-3.8.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/gnome-nettool-3.8.0/temp/environment'.
 * Working directory: '/var/tmp/portage/net-analyzer/gnome-nettool-3.8.0/work/gnome-nettool-3.8.0'
 * S: '/var/tmp/portage/net-analyzer/gnome-nettool-3.8.0/work/gnome-nettool-3.8.0'


Reproducible: Always

Steps to Reproduce:
1.Unmask GCC 4.8
2.Unmask Gnome 3.8
3.Select GCC 4.8 via gcc-config
4.Update gnome-nettool
Comment 1 Peter Asplund 2013-05-19 12:29:29 UTC
Maybe I should mention that if I switch back to GCC-4.7 it compiles fine..
Comment 2 Peter Asplund 2013-05-19 12:30:09 UTC
Created attachment 348660 [details]
emerge --info
Comment 3 iGentoo 2013-05-19 18:11:09 UTC
We should use G_GUINT64_FORMAT to handle guint64 print format.
Comment 4 Peter Asplund 2013-05-20 08:11:44 UTC
Adding GCC-4.8 as Blocks, since Gnome 3.8 will probably reach the tree before GCC-4.8 does.
Comment 5 Pacho Ramos gentoo-dev 2013-05-21 22:38:22 UTC
Please report this directly to upstream too: bugzilla.gnome.org
And post the link here. Thanks
Comment 6 Peter Asplund 2013-05-22 10:52:33 UTC
Done: https://bugzilla.gnome.org/show_bug.cgi?id=700827
Comment 7 Pacho Ramos gentoo-dev 2013-06-01 07:41:27 UTC
I think it's solved in 3.8.1