[Spice-devel] Error compiling Spice

Andrea Celestino celestino.andrea at gmail.com
Wed Jul 27 02:25:27 PDT 2011


The version of gcc is:

gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)


2011/7/27 Christophe Fergeau <cfergeau at redhat.com>

> Hi,
>
> On Wed, Jul 27, 2011 at 11:09:01AM +0200, Andrea Celestino wrote:
> > I have downloaded from git the spice code, the spice protocol and pixman.
> I
> > have installed pixman first then the protocol and finally the spice
> server
> > and client(with bulding instructions in the wiki page). When I compile
> spice
> > server and client I see a compiling error.
> > I do "configure" then "make"  but the terminal show me:
> >
> >
> >   CC     glz_encoder_dictionary.lo
> > cc1: warnings being treated as errors
> > glz_encoder_dictionary.c: In function ‘glz_dictionary_pre_encode’:
> > glz_encoder_dictionary.c:488:22: error: ‘prev_seg_id’ may be used
> > uninitialized in this function
>
> Looking at the code, prev_seg_id initialization is a bit convoluted, but I
> think this warning is a false positive. We could intialize it to 0 to make
> it disappear. What gcc version are you using?
> You can avoid the compilation failing on this warning by passing
> --disable-werror to configure/autogen.sh
>
> Christophe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20110727/5a31dc53/attachment.htm>


More information about the Spice-devel mailing list