Han Han
2016-Feb-15 08:05 UTC
[libvirt-users] glib2 head file error when build libvirt with wireshark support
I compile the latest libvirt from fedora rawhide, but failed. The version of my software: wireshark-devel-2.0.1-2.fc24.x86_64 glib2-2.47.5-2.fc24.x86_64 gcc-5.1.1-4.fc23.x86_64 binutils-2.26-10.fc24.x86_64 The error as following: # ./autogen.sh --prefix=/usr && make ..... wireshark/src/plugin.c:5:21: fatal error: gmodule.h: No such file or directory compilation terminated. Makefile:2442: recipe for target 'wireshark/src/wireshark_src_libvirt_la-plugin.lo' failed make[3]: *** [wireshark/src/wireshark_src_libvirt_la-plugin.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... In file included from wireshark/src/packet-libvirt.c:27:0: /usr/include/wireshark/epan/proto.h:40:18: fatal error: glib.h: No such file or directory compilation terminated. Makefile:2435: recipe for target 'wireshark/src/wireshark_src_libvirt_la-packet-libvirt.lo' failed make[3]: *** [wireshark/src/wireshark_src_libvirt_la-packet-libvirt.lo] Error 1 make[3]: Leaving directory '/root/libvirt/tools' Makefile:2104: recipe for target 'all' failed make[2]: *** [all] Error 2 make[2]: Leaving directory '/root/libvirt/tools' Makefile:2002: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/root/libvirt' Makefile:1897: recipe for target 'all' failed make: *** [all] Error 2 When I disable wireshark support, make successfully. # ./configure --without-wireshark-dissector && make But the file gmodule.h and glib.h exist on my system: # locate gmodule.h /usr/include/glib-2.0/gmodule.h # locate glib.h /usr/include/glib-2.0/glib.h /usr/share/gtk-doc/html/glib/glib.html /usr/src/kernels/4.5.0-0.rc0.git1.1.fc24.x86_64/include/config/blk/dev/bsglib.h /usr/src/kernels/4.5.0-0.rc3.git3.1.fc24.x86_64/include/config/blk/dev/bsglib.h
Martin Kletzander
2016-Feb-15 09:40 UTC
Re: [libvirt-users] glib2 head file error when build libvirt with wireshark support
On Mon, Feb 15, 2016 at 03:05:00AM -0500, Han Han wrote:>I compile the latest libvirt from fedora rawhide, but failed. >The version of my software: >wireshark-devel-2.0.1-2.fc24.x86_64 >glib2-2.47.5-2.fc24.x86_64 >gcc-5.1.1-4.fc23.x86_64 >binutils-2.26-10.fc24.x86_64 >Can you post the output of: pkg-config --print-requires wireshark If it does not output glib-2.0 and gmodule-2.0, then it's your wireshark broken. I see they have it fixed upstream (thanks to Michal, BTW), so the next release should be fine. In the meantime, you can just edit your /usr/lib/pkgconfig/wireshark.pc to have the following line in it: Requires: glib-2.0, gmodule-2.0, gthread-2.0 HTH, Martin>The error as following: ># ./autogen.sh --prefix=/usr && make >..... >wireshark/src/plugin.c:5:21: fatal error: gmodule.h: No such file or directory >compilation terminated. >Makefile:2442: recipe for target 'wireshark/src/wireshark_src_libvirt_la-plugin.lo' failed >make[3]: *** [wireshark/src/wireshark_src_libvirt_la-plugin.lo] Error 1 >make[3]: *** Waiting for unfinished jobs.... >In file included from wireshark/src/packet-libvirt.c:27:0: >/usr/include/wireshark/epan/proto.h:40:18: fatal error: glib.h: No such file or directory >compilation terminated. >Makefile:2435: recipe for target 'wireshark/src/wireshark_src_libvirt_la-packet-libvirt.lo' failed >make[3]: *** [wireshark/src/wireshark_src_libvirt_la-packet-libvirt.lo] Error 1 >make[3]: Leaving directory '/root/libvirt/tools' >Makefile:2104: recipe for target 'all' failed >make[2]: *** [all] Error 2 >make[2]: Leaving directory '/root/libvirt/tools' >Makefile:2002: recipe for target 'all-recursive' failed >make[1]: *** [all-recursive] Error 1 >make[1]: Leaving directory '/root/libvirt' >Makefile:1897: recipe for target 'all' failed >make: *** [all] Error 2 > >When I disable wireshark support, make successfully. ># ./configure --without-wireshark-dissector && make > >But the file gmodule.h and glib.h exist on my system: ># locate gmodule.h >/usr/include/glib-2.0/gmodule.h ># locate glib.h >/usr/include/glib-2.0/glib.h >/usr/share/gtk-doc/html/glib/glib.html >/usr/src/kernels/4.5.0-0.rc0.git1.1.fc24.x86_64/include/config/blk/dev/bsglib.h >/usr/src/kernels/4.5.0-0.rc3.git3.1.fc24.x86_64/include/config/blk/dev/bsglib.h > >_______________________________________________ >libvirt-users mailing list >libvirt-users@redhat.com >https://www.redhat.com/mailman/listinfo/libvirt-users
Han Han
2016-Feb-15 10:09 UTC
Re: [libvirt-users] glib2 head file error when build libvirt with wireshark support
The wireshark requirement: # pkg-config --print-requires wireshark Qt It works after changing the pc file as you said. Thanks you!!! ----- Original Message ----- From: "Martin Kletzander" <mkletzan@redhat.com> To: "Han Han" <hhan@redhat.com> Cc: libvirt-users@redhat.com, "Luyao Huang" <lhuang@redhat.com> Sent: Monday, February 15, 2016 4:40:11 AM Subject: Re: [libvirt-users] glib2 head file error when build libvirt with wireshark support On Mon, Feb 15, 2016 at 03:05:00AM -0500, Han Han wrote:>I compile the latest libvirt from fedora rawhide, but failed. >The version of my software: >wireshark-devel-2.0.1-2.fc24.x86_64 >glib2-2.47.5-2.fc24.x86_64 >gcc-5.1.1-4.fc23.x86_64 >binutils-2.26-10.fc24.x86_64 >Can you post the output of: pkg-config --print-requires wireshark If it does not output glib-2.0 and gmodule-2.0, then it's your wireshark broken. I see they have it fixed upstream (thanks to Michal, BTW), so the next release should be fine. In the meantime, you can just edit your /usr/lib/pkgconfig/wireshark.pc to have the following line in it: Requires: glib-2.0, gmodule-2.0, gthread-2.0 HTH, Martin>The error as following: ># ./autogen.sh --prefix=/usr && make >..... >wireshark/src/plugin.c:5:21: fatal error: gmodule.h: No such file or directory >compilation terminated. >Makefile:2442: recipe for target 'wireshark/src/wireshark_src_libvirt_la-plugin.lo' failed >make[3]: *** [wireshark/src/wireshark_src_libvirt_la-plugin.lo] Error 1 >make[3]: *** Waiting for unfinished jobs.... >In file included from wireshark/src/packet-libvirt.c:27:0: >/usr/include/wireshark/epan/proto.h:40:18: fatal error: glib.h: No such file or directory >compilation terminated. >Makefile:2435: recipe for target 'wireshark/src/wireshark_src_libvirt_la-packet-libvirt.lo' failed >make[3]: *** [wireshark/src/wireshark_src_libvirt_la-packet-libvirt.lo] Error 1 >make[3]: Leaving directory '/root/libvirt/tools' >Makefile:2104: recipe for target 'all' failed >make[2]: *** [all] Error 2 >make[2]: Leaving directory '/root/libvirt/tools' >Makefile:2002: recipe for target 'all-recursive' failed >make[1]: *** [all-recursive] Error 1 >make[1]: Leaving directory '/root/libvirt' >Makefile:1897: recipe for target 'all' failed >make: *** [all] Error 2 > >When I disable wireshark support, make successfully. ># ./configure --without-wireshark-dissector && make > >But the file gmodule.h and glib.h exist on my system: ># locate gmodule.h >/usr/include/glib-2.0/gmodule.h ># locate glib.h >/usr/include/glib-2.0/glib.h >/usr/share/gtk-doc/html/glib/glib.html >/usr/src/kernels/4.5.0-0.rc0.git1.1.fc24.x86_64/include/config/blk/dev/bsglib.h >/usr/src/kernels/4.5.0-0.rc3.git3.1.fc24.x86_64/include/config/blk/dev/bsglib.h > >_______________________________________________ >libvirt-users mailing list >libvirt-users@redhat.com >https://www.redhat.com/mailman/listinfo/libvirt-users
Daniel P. Berrange
2016-Feb-16 17:47 UTC
Re: [libvirt-users] glib2 head file error when build libvirt with wireshark support
On Mon, Feb 15, 2016 at 10:40:11AM +0100, Martin Kletzander wrote:> On Mon, Feb 15, 2016 at 03:05:00AM -0500, Han Han wrote: > >I compile the latest libvirt from fedora rawhide, but failed. > >The version of my software: > >wireshark-devel-2.0.1-2.fc24.x86_64 > >glib2-2.47.5-2.fc24.x86_64 > >gcc-5.1.1-4.fc23.x86_64 > >binutils-2.26-10.fc24.x86_64 > > > > Can you post the output of: > > pkg-config --print-requires wireshark > > If it does not output glib-2.0 and gmodule-2.0, then it's your wireshark > broken. I see they have it fixed upstream (thanks to Michal, BTW), so > the next release should be fine. In the meantime, you can just edit > your /usr/lib/pkgconfig/wireshark.pc to have the following line in it: > > Requires: glib-2.0, gmodule-2.0, gthread-2.0Where do you see it fixed upstream ? The pkg-config file is patched in locally by Fedora RPM spec file and it was the Fedora wireshark maintainer who broke it AFAICT https://bugzilla.redhat.com/show_bug.cgi?id=1300002 Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Seemingly Similar Threads
- Re: glib2 head file error when build libvirt with wireshark support
- Re: glib2 head file error when build libvirt with wireshark support
- [PULL 0/8] MultiFS suppport for BIOS and EFI
- lxc containers won't start in a f24 custom install - odd cgroup fs layout observed
- [Bug 845] New: checking for LIBNFNETLINK... configure: error: Package requirements (libnfnetlink >= 0.0.41) were not met: