Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 463668 - net-wireless/gnome-bluetooth-3.6.1 - bluetooth-input.c:19{3,8}:4: error: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘XID’ [-Werror=format=]
Summary: net-wireless/gnome-bluetooth-3.6.1 - bluetooth-input.c:19{3,8}:4: error: form...
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:
Whiteboard:
Keywords:
Depends on: 471336
Blocks:
  Show dependency tree
 
Reported: 2013-03-29 02:21 UTC by Patrick Lauer
Modified: 2013-06-03 20:14 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2013-03-29 02:21:34 UTC
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../lib -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/libpng15 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -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/libpng15 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -Wstrict-prototypes -Waggregate-return -Wdeclaration-after-statement -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs -Wnested-externs -Wno-sign-compare -DPKGDATADIR=\"/usr/share/gnome-bluetooth\" -O2 -pipe -c pin.c  -fPIC -DPIC -o .libs/pin.o
LC_ALL=C /usr/bin/intltool-merge  -d -u -c ../po/.intltool-merge-cache ../po bluetooth-wizard.desktop.in bluetooth-wizard.desktop
In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9:0,
                 from /usr/include/glib-2.0/glib/gtypes.h:34,
                 from /usr/include/glib-2.0/glib/galloca.h:34,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/glib-2.0/glib/gi18n-lib.h:23,
                 from bluetooth-input.c:27:
bluetooth-input.c: In function ‘bluetooth_input_get_type’:
/usr/include/glib-2.0/glib/gmacros.h:162:53: warning: typedef ‘_GStaticAssertCompileTimeAssertion_0’ locally defined but not used [-Wunused-local-typedefs]
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
                                                     ^
/usr/include/glib-2.0/glib/gmacros.h:159:47: note: in definition of macro ‘G_PASTE_ARGS’
 #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
                                               ^
/usr/include/glib-2.0/glib/gmacros.h:162:44: note: in expansion of macro ‘G_PASTE’
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
                                            ^
/usr/include/glib-2.0/glib/gthread.h:234:5: note: in expansion of macro ‘G_STATIC_ASSERT’
     G_STATIC_ASSERT (sizeof *(location) == sizeof (gpointer));       \
     ^
/usr/include/glib-2.0/gobject/gtype.h:1463:7: note: in expansion of macro ‘g_once_init_enter’
   if (g_once_init_enter (&g_define_type_id__volatile))  \
       ^
/usr/include/glib-2.0/gobject/gtype.h:1387:60: note: in expansion of macro ‘_G_DEFINE_TYPE_EXTENDED_BEGIN’
 #define G_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_)     _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, _f_) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
                                                            ^
/usr/include/glib-2.0/gobject/gtype.h:1279:43: note: in expansion of macro ‘G_DEFINE_TYPE_EXTENDED’
 #define G_DEFINE_TYPE(TN, t_n, T_P)       G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {})
                                           ^
bluetooth-input.c:55:1: note: in expansion of macro ‘G_DEFINE_TYPE’
 G_DEFINE_TYPE(BluetoothInput, bluetooth_input, G_TYPE_OBJECT)
 ^
/usr/include/glib-2.0/glib/gmacros.h:162:53: warning: typedef ‘_GStaticAssertCompileTimeAssertion_1’ locally defined but not used [-Wunused-local-typedefs]
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
                                                     ^
/usr/include/glib-2.0/glib/gmacros.h:159:47: note: in definition of macro ‘G_PASTE_ARGS’
 #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
                                               ^
/usr/include/glib-2.0/glib/gmacros.h:162:44: note: in expansion of macro ‘G_PASTE’
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
                                            ^
/usr/include/glib-2.0/glib/gatomic.h:136:5: note: in expansion of macro ‘G_STATIC_ASSERT’
     G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer));                 \
     ^
/usr/include/glib-2.0/glib/gthread.h:236:7: note: in expansion of macro ‘g_atomic_pointer_get’
     (!g_atomic_pointer_get (location) &&                             \
       ^
/usr/include/glib-2.0/gobject/gtype.h:1463:7: note: in expansion of macro ‘g_once_init_enter’
   if (g_once_init_enter (&g_define_type_id__volatile))  \
       ^
/usr/include/glib-2.0/gobject/gtype.h:1387:60: note: in expansion of macro ‘_G_DEFINE_TYPE_EXTENDED_BEGIN’
 #define G_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_)     _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, _f_) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
                                                            ^
/usr/include/glib-2.0/gobject/gtype.h:1279:43: note: in expansion of macro ‘G_DEFINE_TYPE_EXTENDED’
 #define G_DEFINE_TYPE(TN, t_n, T_P)       G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {})
                                           ^
bluetooth-input.c:55:1: note: in expansion of macro ‘G_DEFINE_TYPE’
 G_DEFINE_TYPE(BluetoothInput, bluetooth_input, G_TYPE_OBJECT)
 ^
/usr/include/glib-2.0/glib/gmacros.h:162:53: warning: typedef ‘_GStaticAssertCompileTimeAssertion_2’ locally defined but not used [-Wunused-local-typedefs]
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
                                                     ^
/usr/include/glib-2.0/glib/gmacros.h:159:47: note: in definition of macro ‘G_PASTE_ARGS’
 #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
                                               ^
/usr/include/glib-2.0/glib/gmacros.h:162:44: note: in expansion of macro ‘G_PASTE’
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
                                            ^
/usr/include/glib-2.0/glib/gthread.h:241:5: note: in expansion of macro ‘G_STATIC_ASSERT’
     G_STATIC_ASSERT (sizeof *(location) == sizeof (gpointer));       \
     ^
/usr/include/glib-2.0/gobject/gtype.h:1477:7: note: in expansion of macro ‘g_once_init_leave’
       g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); \
       ^
/usr/include/glib-2.0/gobject/gtype.h:1387:117: note: in expansion of macro ‘_G_DEFINE_TYPE_EXTENDED_END’
 #define G_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_)     _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, _f_) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
                                                                                                                     ^
/usr/include/glib-2.0/gobject/gtype.h:1279:43: note: in expansion of macro ‘G_DEFINE_TYPE_EXTENDED’
 #define G_DEFINE_TYPE(TN, t_n, T_P)       G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {})
                                           ^
bluetooth-input.c:55:1: note: in expansion of macro ‘G_DEFINE_TYPE’
 G_DEFINE_TYPE(BluetoothInput, bluetooth_input, G_TYPE_OBJECT)
 ^
bluetooth-input.c: In function ‘bluetooth_input_finalize’:
bluetooth-input.c:59:25: warning: unused variable ‘priv’ [-Wunused-variable]
  BluetoothInputPrivate *priv = BLUETOOTH_INPUT_GET_PRIVATE(input);
                         ^
bluetooth-input.c: In function ‘bluetooth_input_check_for_devices’:
bluetooth-input.c:193:4: error: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘XID’ [-Werror=format=]
    g_debug ("has mouse: %s (id = %d)", device_info[i].name, device_info[i].id);
    ^
bluetooth-input.c:198:4: error: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘XID’ [-Werror=format=]
    g_debug ("has keyboard: %s (id = %d)", device_info[i].name, device_info[i].id);
    ^
bluetooth-input.c:177:25: warning: variable ‘has_mouse’ set but not used [-Wunused-but-set-variable]
  gboolean has_keyboard, has_mouse;
                         ^
bluetooth-input.c:177:11: warning: variable ‘has_keyboard’ set but not used [-Wunused-but-set-variable]
  gboolean has_keyboard, has_mouse;
           ^
bluetooth-input.c: In function ‘devicepresence_filter’:
bluetooth-input.c:216:14: warning: variable ‘class_presence’ set but not used [-Wunused-but-set-variable]
  XEventClass class_presence;
              ^
bluetooth-input.c: In function ‘set_devicepresence_handler’:
bluetooth-input.c:234:6: warning: variable ‘xi_presence’ set but not used [-Wunused-but-set-variable]
  int xi_presence;
      ^
bluetooth-input.c: In function ‘bluetooth_input_init’:
bluetooth-input.c:251:25: warning: unused variable ‘priv’ [-Wunused-variable]
  BluetoothInputPrivate *priv = BLUETOOTH_INPUT_GET_PRIVATE(input);
                         ^
cc1: some warnings being treated as errors
make[2]: *** [bluetooth-input.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Found cached translation database
Merging translations into bluetooth-wizard.desktop.
make[2]: Leaving directory `/var/tmp/portage/net-wireless/gnome-bluetooth-3.6.1/work/gnome-bluetooth-3.6.1/wizard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-wireless/gnome-bluetooth-3.6.1/work/gnome-bluetooth-3.6.1'
make: *** [all] Error 2
 * ERROR: net-wireless/gnome-bluetooth-3.6.1 failed (compile phase):
 *   emake failed

Portage 2.1.11.59 (default/linux/amd64/13.0, gcc-4.8.0, glibc-2.16.0, 3.7.9-vs2.3.5.6 x86_64)
=================================================================
System uname: Linux-3.7.9-vs2.3.5.6-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
KiB Mem:     7921088 total,   1483796 free
KiB Swap:   25165812 total,  24512592 free
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.2-r1, 4.8.0::hardened-dev
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo hardened-dev
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/entropy /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.lecl.net/pub/gentoo/ http://ftp.lecl.net/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/hardened-development"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri egl fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl openmp openvg pam pcre readline session sqlite sse sse2 ssl tcpd unicode xa xvfb zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-03-29 16:48:18 UTC
bluetooth-input.c:193:4: error: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘XID’ [-Werror=format=]

I bet this is related to gcc-4.8 as it certainly does not fail with 4.7.

Should we strip with -Werror or start patching ?
Comment 2 Pacho Ramos gentoo-dev 2013-03-29 17:02:05 UTC
I should start dropping -Werror, the problem is that they are hard to detect (until bug 384193 is solved) before we see reports with build failures :S

Also, maybe something similar to gnome2_disable_deprecation_warning could be used for catch most of this -Werror additions in a "common way"... but I don't remember how it's usually appended on build systems
Comment 3 Jonathan Vasquez (RETIRED) gentoo-dev 2013-05-21 17:58:39 UTC
I also received the same error while compiling this package with gcc 4.8. I haven't tried compiling it with gcc 4.6.3 recently but I know I did about 2 months ago and it compiled fine.
Comment 4 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-05-24 14:18:54 UTC
Have this as well, gcc 4.8, is there a temporary fix available? Any progress?
Comment 5 Pacho Ramos gentoo-dev 2013-05-24 17:30:02 UTC
What if you pass --disable-compile-warnings configure option?
Comment 6 Pacho Ramos gentoo-dev 2013-06-03 20:14:04 UTC
We no longer append -Werror* flags