[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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

Attachment: signature.asc
Description: Digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]