[Spice-devel] Compilation issues on Ubuntu and Mac

Alexander Larsson alexl at redhat.com
Mon Jun 28 03:39:44 PDT 2010


On Mon, 2010-06-28 at 11:05 +0200, Attila Sukosd wrote:
> Hi guys,
> 
> I've been trying to get the latest git sources to compile and i've
> been getting the same issue on both platforms:
> 
> g++ -DHAVE_CONFIG_H -I. -I../.. -DSW_CANVAS_CACHE
> -DSW_CANVAS_NO_CHUNKS -DUSE_GLZ -D__STDC_LIMIT_MACROS -I. -I..
> -I../../common -I../../common/linux -I../../client
> -I/usr/local/include/spice-1    -I/usr/include/alsa
> -I/usr/local/include/pixman-1    -I/usr/local/include
> -I/usr/include/CEGUI   -Wall -Wno-sign-compare -Werror
> -Wno-deprecated-declarations      -g -O2 -MT main.o -MD -MP
> -MF .deps/main.Tpo -c -o main.o main.cpp
> In file included from ../red_channel.h:28,
>                  from ../red_client.h:25,
>                  from ../application.h:23,
>                  from main.cpp:19:
> ../marshallers.h:27: error: declaration of ‘void (* <anonymous
> struct>::SpiceMsgEmpty)(SpiceMarshaller*, SpiceMsgEmpty*)’
> ../../common/messages.h:42: error: changes meaning of ‘SpiceMsgEmpty’
> from ‘typedef struct SpiceMsgEmpty SpiceMsgEmpty’
> ../marshallers.h:28: error: declaration of ‘void (* <anonymous
> struct>::SpiceMsgData)(SpiceMarshaller*, SpiceMsgData*)’
> ../../common/messages.h:39: error: changes meaning of ‘SpiceMsgData’
> from ‘typedef struct SpiceMsgData SpiceMsgData’
> 
> 
> Any help would be highly appriciated! 

The name of the function member of the struct (SpiceMsgEmpty) is the
same as a typedefed type (SpiceMsgEmpty) which gives an error.

I dunno why this doesn't cause problems for others, but it should be
easy to solve by adding some prefix. I'll handle it.


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
       alexl at redhat.com            alexander.larsson at gmail.com 
He's a short-sighted vegetarian sorceror on the run. She's a time-travelling 
green-skinned stripper trying to make a difference in a man's world. They 
fight crime! 



More information about the Spice-devel mailing list