[Spice-devel] recipe for target 'red-channel.lo' failed

Eduardo Lima (Etrunko) etrunko at redhat.com
Fri Apr 29 14:49:21 UTC 2016


On 04/22/2016 09:14 AM, Eduards Šaraņins wrote:
> Hello,
> I'm trying to build spice-0.12.7 and get the following errors:
> 
> CFLAGS="-m64" LDFLAGS="-m64" ./configure --disable-client
> --disable-werror --prefix=/opt/local
> 
> ....
> 
>   CC       red_channel.lo
> red_channel.c: In function 'red_channel_create':
> red_channel.c:1072:5: warning: format '%lx' expects argument of type
> 'long unsigned int', but argument 8 has type 'pthread_t' [-Wformat]
> red_channel.c: In function 'red_channel_create_dummy':
> red_channel.c:1118:5: warning: format '%lx' expects argument of type
> 'long unsigned int', but argument 8 has type 'pthread_t' [-Wformat]
> red_channel.c: In function 'red_channel_remove_client':
> red_channel.c:1813:9: warning: format '%lx' expects argument of type
> 'long unsigned int', but argument 8 has type 'pthread_t' [-Wformat]
> red_channel.c:1813:9: warning: format '%lx' expects argument of type
> 'long unsigned int', but argument 9 has type 'pthread_t' [-Wformat]
> red_channel.c: In function 'red_client_migrate':
> red_channel.c:2125:9: warning: format '%lx' expects argument of type
> 'long unsigned int', but argument 6 has type 'pthread_t' [-Wformat]
> red_channel.c:2125:9: warning: format '%lx' expects argument of type
> 'long unsigned int', but argument 7 has type 'pthread_t' [-Wformat]
> red_channel.c: In function 'red_client_destroy':
> red_channel.c:2145:9: warning: format '%lx' expects argument of type
> 'long unsigned int', but argument 6 has type 'pthread_t' [-Wformat]
> red_channel.c:2145:9: warning: format '%lx' expects argument of type
> 'long unsigned int', but argument 7 has type 'pthread_t' [-Wformat]
>   CC       dispatcher.lo
>   CC       red_dispatcher.lo
>   CC       main_dispatcher.lo
>   CC       red_memslots.lo
>   CC       red_parse_qxl.lo
>   CC       red_record_qxl.lo
>   CC       red_replay_qxl.lo
>   CC       red_worker.lo
> red_worker.c: In function 'red_worker_main':
> red_worker.c:12213:5: warning: implicit declaration of function
> 'pthread_getcpuclockid' [-Wimplicit-function-declaration]
> red_worker.c:12213:5: warning: nested extern declaration of
> 'pthread_getcpuclockid' [-Wnested-externs]



>   CC       reds.lo
> reds.c: In function 'reds_init_keepalive':
> reds.c:2266:28: error: 'SOL_TCP' undeclared (first use in this function)
> reds.c:2266:28: note: each undeclared identifier is reported only once
> for each function it appears in

SOL_TCP is defined in netinet/tcp.h file in my Fedora 23 Linux system.
What is the system are you building against?

-- 
Eduardo de Barros Lima (Etrunko)
Software Engineer - RedHat
etrunko at redhat.com


More information about the Spice-devel mailing list