[Spice-devel] Compilation issues on Ubuntu and Mac

Attila Sukosd attila.sukosd at gmail.com
Mon Jun 28 04:32:30 PDT 2010


On Mon, Jun 28, 2010 at 12:46 PM, Alexander Larsson <alexl at redhat.com>wrote:

> On Mon, 2010-06-28 at 12:39 +0200, Alexander Larsson wrote:
> > 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.
>
> Should be fixed in git. You may need to make clean to ensure the right
> source files are regenerated.
>
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>  Alexander Larsson                                            Red Hat, Inc
>       alexl at redhat.com            alexander.larsson at gmail.com
> He's a benighted vegetarian househusband fleeing from a secret government
> programme. She's a vivacious snooty pearl diver living homeless in New
> York's
> sewers. They fight crime!
>
>
Great! Thanks for your fast reply again :)

Ill give it a try!

Rgrds,

Attila
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20100628/bbfa515b/attachment.htm>


More information about the Spice-devel mailing list