Re: Failed to build spice-vdagent 0.20 under ubuntu 18.04

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

 



> ./autogen.sh
> 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 whether make supports nested variables... yes
> checking whether make supports nested variables... (cached) yes
> 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 whether gcc understands -c and -o together... yes
> checking for style of include used by make... GNU
> checking dependency style of gcc... gcc3
> checking how to run the C preprocessor... gcc -E
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking for ANSI C header files... yes
> checking for special C compiler options needed for large files... no
> checking for _FILE_OFFSET_BITS value needed for large files... no
> checking whether ln -s works... yes
> checking for pkg-config... /usr/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for init script flavor... none
> checking for GTK... no
> checking for GIO2... yes
> checking for X... yes
> checking for SPICE... yes
> checking for ALSA... yes
> checking for DBUS... yes
> checking for DRM... yes
> checking for LIBSYSTEMD_LOGIN... no
> checking for LIBSYSTEMD_LOGIN... no
> checking for PCIACCESS... yes
> checking whether gcc supports -Wall... yes
> checking whether gcc supports -Werror... yes
> checking whether gcc supports -Wp,-D_FORTIFY_SOURCE=2... yes
> checking whether gcc supports -fno-strict-aliasing... yes
> checking whether gcc supports -fstack-protector... yes
> checking whether gcc supports --param=ssp-buffer-size=4... yes
> checking for PIE support... yes
> checking that generated files are newer than configure... done
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating data/spice-vdagent.1
> config.status: creating data/spice-vdagentd.1
> config.status: creating src/config.h
> config.status: executing depfiles commands
> configure:
> spice-vdagent 0.20.0
> ====================
> prefix: /usr/local
> c compiler: gcc
> session-info: console-kit
> pciaccess: yes
> static uinput: no
> vdagentd pie + relro: yes
> install RH initscript: no
> install systemd service: no
> udevdir: /lib/udev
> use GTK+: no
> Now type 'make' to build spice-vdagent

> ========================================
> make
> CC src/src_spice_vdagent-udscs.o
> CC src/src_spice_vdagent-vdagent-connection.o
> src/vdagent-connection.c: In function ‘vdagent_connection_write’:
> src/vdagent-connection.c:234:39: error: implicit declaration of function
> ‘G_SOURCE_FUNC’; did you mean ‘G_INLINE_FUNC’?
> [-Werror=implicit-function-declaration]
> g_source_set_callback(source, G_SOURCE_FUNC(out_stream_ready_cb),
> ^~~~~~~~~~~~~
> G_INLINE_FUNC

This should be available in Glib 2.58, your version of Ubuntu should
have 2.56.
>From configure.ac it seems we claim 2.50 but we use this 2.56 macro.

> src/vdagent-connection.c:234:39: error: passing argument 2 of
> ‘g_source_set_callback’ makes pointer from integer without a cast
> [-Werror=int-conversion]
> In file included from /usr/include/glib-2.0/glib/giochannel.h:33:0,
> from /usr/include/glib-2.0/glib.h:54,
> from /usr/include/glib-2.0/glib/gprintf.h:21,
> from /usr/include/glib-2.0/glib/gstdio.h:22,
> from src/vdagent-connection.c:22:
> /usr/include/glib-2.0/glib/gmain.h:462:10: note: expected ‘GSourceFunc {aka
> int (*)(void *)}’ but argument is of type ‘int’
> void g_source_set_callback (GSource *source,
> ^~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> Makefile:1094: recipe for target 'src/src_spice_vdagent-vdagent-connection.o'
> failed
> make: *** [src/src_spice_vdagent-vdagent-connection.o] Error 1
> user@ubuntu:~/pkg/vd_agent$ less README.md

Frediano

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]