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

[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


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