Skip to contentSkip to conversation

build failures in master

Qemu-devel Olaf Hering 3 participants 7 messages Nov 2, 2016

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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

#2 lore raw
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 (after osdep.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 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?

OK, looks like the name changed with gtk version 2.22:

https://git.gnome.org/browse/gtk+/commit/gdk/gdkkeysyms.h?id=913cdf3be750a1e74c09b20edf55a57f9a919fcc

I'll try to come up with a patch for this issue (since we still seem to support gtk 2.18 in QEMU) ...

Thomas

#6 lore raw
In reply to Olaf Hering
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

#4 lore raw
In reply to Thomas Huth
Quoted 2 lines · Thomas Huth

Does it work if you add an explicit #include "qemu/log.h" at the beginning of that file (after osdep.h)?

I will try that.

Quoted 1 line

system. Which version of GTK are you using?

2.18.9 as included in SLE11.

Olaf

#3 lore raw
In reply to Thomas Huth
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 (after osdep.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 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?

Quoted 6 lines

OK, looks like the name changed with gtk version 2.22:

https://git.gnome.org/browse/gtk+/commit/gdk/gdkkeysyms.h?id=913cdf3be750a1e74c09b20edf55a57f9a919fcc

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

#5 lore raw
In reply to Olaf Hering
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 (after osdep.h)?

I will try that.

Yes, that helps. Thanks.

Olaf