Hi Paolo, I've encountered the same problem as Erik on my RHEL5 machine with glib 2.12, and made a patch to replace GHashTableIter with g_hash_table_find(). https://github.com/nodakai/QEMU/commit/4a9dd009feb1d78e3566069336a0d1b9a296bd23 I think it's an almost same approach with yours, but have not tested it very carefully.
Btw I found https://github.com/qemu/QEMU has not been updated for months... 2012/4/10 Paolo Bonzini <pbonz...@redhat.com>: > Il 10/04/2012 11:18, Erik Rull ha scritto: >> Hi all, >> >> on the current git master, I cannot compile any more. >> >> The error is: >> qapi/qmp-input-visitor.c: In function 'qmp_input_pop': >> qapi/qmp-input-visitor.c:92: error: 'GHashTableIter' undeclared (first use >> in this function) >> qapi/qmp-input-visitor.c:92: error: (Each undeclared identifier is reported >> only once >> qapi/qmp-input-visitor.c:92: error: for each function it appears in.) >> qapi/qmp-input-visitor.c:92: error: expected ';' before 'iter' >> qapi/qmp-input-visitor.c:96: warning: implicit declaration of function >> 'g_hash_table_iter_init' >> qapi/qmp-input-visitor.c:96: warning: nested extern declaration of >> 'g_hash_table_iter_init' >> qapi/qmp-input-visitor.c:96: error: 'iter' undeclared (first use in this >> function) >> qapi/qmp-input-visitor.c:97: warning: implicit declaration of function >> 'g_hash_table_iter_next' >> qapi/qmp-input-visitor.c:97: warning: nested extern declaration of >> 'g_hash_table_iter_next' >> make: *** [qapi/qmp-input-visitor.o] Error 1 >> >> Must have appeared within the last 14 days. > > It's on my todo list, but if you can make a patch (see > http://lists.gnu.org/archive/html/qemu-devel/2012-04/msg00097.html for > some discussion) it would be quite welcome. > > What version of glib is in Debian 4.0? -- 野田 開 <noda...@gmail.com>