build failures in master
Not sure if there are automated build tests to catch such mistakes, these errors appeared after qemu-20161028T142950.fd209e4:
[ 337s] ../hw/xen/xen_pvdev.o: In function `xen_pv_printf':
[ 337s] /home/abuild/rpmbuild/BUILD/qemu-20161101T165305.4eb28ab/hw/xen/xen_pvdev.c:220: undefined reference to `qemu_log_vprintf'
[ 220s] ui/gtk.c: In function 'gd_text_key_down':
[ 220s] ui/gtk.c:1073: error: 'GDK_KEY_Delete' undeclared (first use in this function)
Olaf
Quoted 5 lines · Olaf Hering
Not sure if there are automated build tests to catch such mistakes, these errors appeared after qemu-20161028T142950.fd209e4:
[ 337s]
../hw/xen/xen_pvdev.o: In function `xen_pv_printf':
[ 337s]/home/abuild/rpmbuild/BUILD/qemu-20161101T165305.4eb28ab/hw/xen/xen_pvdev.c:220: undefined reference to `qemu_log_vprintf'
Does it work if you add an explicit #include "qemu/log.h" at the beginning of that file (after osdep.h)?
Quoted 2 lines
[ 220s]
ui/gtk.c: In function 'gd_text_key_down':
[ 220s]ui/gtk.c:1073: error: 'GDK_KEY_Delete' undeclared (first use in this function)
That one is strange ... it should get defined by <gdk/gdkkeysyms.h> which we include from include/ui/gtk.h (and that file is included in ui/gtk.c), so I fail to see how that could not be defined on your system. Which version of GTK are you using?
Thomas
Quoted 10 lines · Thomas Huth
Quoted 5 lines · Olaf Hering
Not sure if there are automated build tests to catch such mistakes, these errors appeared after qemu-20161028T142950.fd209e4:
[ 337s]
../hw/xen/xen_pvdev.o: In function `xen_pv_printf':
[ 337s]/home/abuild/rpmbuild/BUILD/qemu-20161101T165305.4eb28ab/hw/xen/xen_pvdev.c:220: undefined reference to `qemu_log_vprintf'Does it work if you add an explicit #include "
qemu/log.h" at the beginning of that file (afterosdep.h)?
Quoted 7 lines
Quoted 2 lines
[ 220s]
ui/gtk.c: In function 'gd_text_key_down':
[ 220s]ui/gtk.c:1073: error: 'GDK_KEY_Delete' undeclared (first use in this function)That one is strange ... it should get defined by <
gdk/gdkkeysyms.h> which we include frominclude/ui/gtk.h(and that file is included inui/gtk.c), so I fail to see how that could not be defined on your system. Which version of GTK are you using?
OK, looks like the name changed with gtk version 2.22:
I'll try to come up with a patch for this issue (since we still seem to support gtk 2.18 in QEMU) ...
Thomas
Quoted 19 lines · Thomas Huth
Quoted 10 lines · Thomas Huth
Quoted 5 lines · Olaf Hering
Not sure if there are automated build tests to catch such mistakes, these errors appeared after qemu-20161028T142950.fd209e4:
[ 337s]
../hw/xen/xen_pvdev.o: In function `xen_pv_printf':
[ 337s]/home/abuild/rpmbuild/BUILD/qemu-20161101T165305.4eb28ab/hw/xen/xen_pvdev.c:220: undefined reference to `qemu_log_vprintf'Does it work if you add an explicit #include "
qemu/log.h" at the beginning of that file (afterosdep.h)?Quoted 7 lines
Quoted 2 lines
[ 220s]
ui/gtk.c: In function 'gd_text_key_down':
[ 220s]ui/gtk.c:1073: error: 'GDK_KEY_Delete' undeclared (first use in this function)That one is strange ... it should get defined by <
gdk/gdkkeysyms.h> which we include frominclude/ui/gtk.h(and that file is included inui/gtk.c), so I fail to see how that could not be defined on your system. Which version of GTK are you using?
Quoted 6 lines
OK, looks like the name changed with gtk version 2.22:
I'll try to come up with a patch for this issue (since we still seem to support gtk 2.18 in QEMU) ...
Ah, right, that one. Top of gtk.c file already has a bunch of #defines for that where we can simply add the delete key. And as you've tracked down it's changed in 2.22 + newer if would be nice to change the #ifdef to use GTK_CHECK_VERSION so we record this fact in the source file.
thanks,
Gerd
Quoted 2 lines · Thomas Huth
Does it work if you add an explicit #include "
qemu/log.h" at the beginning of that file (afterosdep.h)?
I will try that.
Quoted 1 line
system. Which version of GTK are you using?
2.18.9 as included in SLE11.
Olaf
Quoted 4 lines · Olaf Hering
Quoted 2 lines · Thomas Huth
Does it work if you add an explicit #include "
qemu/log.h" at the beginning of that file (afterosdep.h)?I will try that.
Yes, that helps. Thanks.
Olaf
Quoted 1 line · Olaf Hering
Not sure if there are automated build tests to catch such mistakes,
I do test builds with both gtk2 and gtk3 before pull req goes out.
Quoted 2 lines
[ 220s]
ui/gtk.c: In function 'gd_text_key_down':
[ 220s]ui/gtk.c:1073: error: 'GDK_KEY_Delete' undeclared (first use in this function)
Huh? Which gtk version is this?
cheers,
Gerd