[libvirt-glib] Compilation warning and error

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

 



Hi Daniel,
I'm trying libvirt-glib, however, I met some compilation warning 
and error, for details, please see attachment.

Regards,
Alex



checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether gcc understands -Wall... yes
checking whether gcc understands -Wformat... yes
checking whether gcc understands -Wformat-security... yes
checking whether gcc understands -Wmissing-prototypes... yes
checking whether gcc understands -Wnested-externs... yes
checking whether gcc understands -Wpointer-arith... yes
checking whether gcc understands -Wextra... yes
checking whether gcc understands -Wshadow... yes
checking whether gcc understands -Wcast-align... yes
checking whether gcc understands -Wwrite-strings... yes
checking whether gcc understands -Waggregate-return... yes
checking whether gcc understands -Wstrict-prototypes... yes
checking whether gcc understands -Winline... yes
checking whether gcc understands -Wredundant-decls... yes
checking whether gcc understands -Wno-sign-compare... yes
checking whether gcc understands -Wp,-D_FORTIFY_SOURCE=2... yes
checking whether gcc understands -fexceptions... yes
checking whether gcc understands -fasynchronous-unwind-tables... yes
checking what language compliance flags to pass to the C compiler... 
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBVIRT... yes
checking for GLIB2... yes
checking for GTHREAD2... yes
checking for GOBJECT2... yes
checking for GIO2... yes
checking for LIBXML2... yes
checking for gtkdoc-check... /usr/bin/gtkdoc-check
checking for gtkdoc-rebase... /usr/bin/gtkdoc-rebase
checking for gtkdoc-mkpdf... no
checking whether to build gtk-doc documentation... no
checking for python... /usr/bin/python
Found Python version 2.6
checking for GOBJECT_INTROSPECTION... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libvirt-glib/Makefile
config.status: creating libvirt-gconfig/Makefile
config.status: creating libvirt-gconfig/tests/Makefile
config.status: creating libvirt-gobject/Makefile
config.status: creating examples/Makefile
config.status: creating python/Makefile
config.status: creating vapi/Makefile
config.status: creating docs/Makefile
config.status: creating docs/libvirt-glib/Makefile
config.status: creating docs/libvirt-gobject/Makefile
config.status: creating docs/libvirt-gconfig/Makefile
config.status: creating libvirt-glib-1.0.pc
config.status: creating libvirt-gconfig-1.0.pc
config.status: creating libvirt-gobject-1.0.pc
config.status: creating libvirt-glib.spec
config.status: creating mingw32-libvirt-glib.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
make  all-recursive
make[1]: Entering directory `/home/ajia/Workspace/libvirt-glib-0.0.4'
Making all in libvirt-glib
make[2]: Entering directory `/home/ajia/Workspace/libvirt-glib-0.0.4/libvirt-glib'
  CC     libvirt_glib_1_0_la-libvirt-glib-error.lo
  CC     libvirt_glib_1_0_la-libvirt-glib-event.lo
  CC     libvirt_glib_1_0_la-libvirt-glib-main.lo
  CCLD   libvirt-glib-1.0.la
make[2]: Leaving directory `/home/ajia/Workspace/libvirt-glib-0.0.4/libvirt-glib'
Making all in libvirt-gconfig
make[2]: Entering directory `/home/ajia/Workspace/libvirt-glib-0.0.4/libvirt-gconfig'
  GEN    libvirt-gconfig-enum-types.c
  GEN    libvirt-gconfig-enum-types.h
make  all-recursive
make[3]: Entering directory `/home/ajia/Workspace/libvirt-glib-0.0.4/libvirt-gconfig'
Making all in .
make[4]: Entering directory `/home/ajia/Workspace/libvirt-glib-0.0.4/libvirt-gconfig'
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-object.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-main.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-channel.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-pty.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-clock.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-console.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-device.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-filesys.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-sdl.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-spice.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-vnc.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-input.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-bridge.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-network.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-user.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-memballoon.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-os.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-parallel.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-seclabel.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-serial.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-sound.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-domain-video.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-interface.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-network.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-secret.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-storage-permissions.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-source.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-target.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-backing-store.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-target.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-xml-doc.lo
  CC     libvirt_gconfig_1_0_la-libvirt-gconfig-enum-types.lo
  CCLD   libvirt-gconfig-1.0.la
make[4]: Leaving directory `/home/ajia/Workspace/libvirt-glib-0.0.4/libvirt-gconfig'
Making all in tests
make[4]: Entering directory `/home/ajia/Workspace/libvirt-glib-0.0.4/libvirt-gconfig/tests'
  CC     test-domain-create.o
  CCLD   test-domain-create
  CC     test-domain-parse.o
  CCLD   test-domain-parse
make[4]: Leaving directory `/home/ajia/Workspace/libvirt-glib-0.0.4/libvirt-gconfig/tests'
make[3]: Leaving directory `/home/ajia/Workspace/libvirt-glib-0.0.4/libvirt-gconfig'
make[2]: Leaving directory `/home/ajia/Workspace/libvirt-glib-0.0.4/libvirt-gconfig'
Making all in libvirt-gobject
make[2]: Entering directory `/home/ajia/Workspace/libvirt-glib-0.0.4/libvirt-gobject'
  GEN    libvirt-gobject-enums.c
  GEN    libvirt-gobject-enums.h
make  all-am
make[3]: Entering directory `/home/ajia/Workspace/libvirt-glib-0.0.4/libvirt-gobject'
  CC     libvirt_gobject_1_0_la-libvirt-gobject-main.lo
  CC     libvirt_gobject_1_0_la-libvirt-gobject-domain-snapshot.lo
  CC     libvirt_gobject_1_0_la-libvirt-gobject-domain-device.lo
libvirt-gobject-domain-device.c: In function 'gvir_domain_device_set_property':
libvirt-gobject-domain-device.c:77: warning: implicit declaration of function 'g_clear_object'
libvirt-gobject-domain-device.c:77: warning: nested extern declaration of 'g_clear_object'
  CC     libvirt_gobject_1_0_la-libvirt-gobject-domain-disk.lo
  CC     libvirt_gobject_1_0_la-libvirt-gobject-domain-interface.lo
  CC     libvirt_gobject_1_0_la-libvirt-gobject-domain.lo
libvirt-gobject-domain.c: In function 'gvir_domain_save_helper':
libvirt-gobject-domain.c:777: warning: implicit declaration of function 'g_simple_async_result_take_error'
libvirt-gobject-domain.c:777: warning: nested extern declaration of 'g_simple_async_result_take_error'
  CC     libvirt_gobject_1_0_la-libvirt-gobject-interface.lo
libvirt-gobject-interface.c:158: error: expected declaration specifiers or '...' before 'gvir_interface_handle'
libvirt-gobject-interface.c:159: error: expected declaration specifiers or '...' before 'gvir_interface_handle_copy'
libvirt-gobject-interface.c:159: error: expected declaration specifiers or '...' before 'gvir_interface_handle_free'
libvirt-gobject-interface.c:158: error: parameter 1 has incomplete type
libvirt-gobject-interface.c:161: warning: return type defaults to 'int'
libvirt-gobject-interface.c:158: warning: no previous prototype for 'G_DEFINE_BOXED_TYPE'
libvirt-gobject-interface.c: In function 'G_DEFINE_BOXED_TYPE':
libvirt-gobject-interface.c:162: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
libvirt-gobject-interface.c:183: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
libvirt-gobject-interface.c:158: error: parameter name omitted
libvirt-gobject-interface.c:198: error: expected '{' at end of input
make[3]: *** [libvirt_gobject_1_0_la-libvirt-gobject-interface.lo] Error 1
make[3]: Leaving directory `/home/ajia/Workspace/libvirt-glib-0.0.4/libvirt-gobject'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ajia/Workspace/libvirt-glib-0.0.4/libvirt-gobject'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ajia/Workspace/libvirt-glib-0.0.4'
make: *** [all] Error 2
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]