Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557576 - app-emulation/spice-protocol-0.12.8 conflicts with headers from spice-0.12.5-r1
Summary: app-emulation/spice-protocol-0.12.8 conflicts with headers from spice-0.12.5-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords:
: 557942 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-08-14 14:46 UTC by Hanspeter Spalinger
Modified: 2015-08-16 17:19 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info output (emerge.info,5.91 KB, application/x-info)
2015-08-14 14:46 UTC, Hanspeter Spalinger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hanspeter Spalinger 2015-08-14 14:46:22 UTC
Created attachment 408996 [details]
emerge --info output

trying to build qemu i run into this bug with spice-protocol-0.12.8.

I copied the qemu-configure-test:

#include <spice.h>
int main(void) { spice_server_new(); return 0; }

using pkg-config to get the required libs/headers
$ pkg-config --cflags --libs spice-protocol spice-server
-I/usr/include/spice-server -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/kerberos/include -I/usr/include/spice-1 -lspice-server

When i try to build spice.c i get errors about redeclarations:
$ gcc -I/usr/include/spice-server -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/kerberos/include -I/usr/include/spice-1 -lspice-server spice.c 
In file included from spice.c:1:0:
/usr/include/spice-server/spice.h:475:5: error: redeclaration of enumerator ‘SPICE_IMAGE_COMPRESS_INVALID’
     SPICE_IMAGE_COMPRESS_INVALID  = 0,
     ^
In file included from /usr/include/spice-1/spice/qxl_dev.h:38:0,
                 from /usr/include/spice-server/spice.h:23,
                 from spice.c:1:
/usr/include/spice-1/spice/enums.h:185:5: note: previous definition of ‘SPICE_IMAGE_COMPRESS_INVALID’ was here
     SPICE_IMAGE_COMPRESS_INVALID,
     ^
In file included from spice.c:1:0:
/usr/include/spice-server/spice.h:476:5: error: redeclaration of enumerator ‘SPICE_IMAGE_COMPRESS_OFF’
     SPICE_IMAGE_COMPRESS_OFF      = 1,
     ^
In file included from /usr/include/spice-1/spice/qxl_dev.h:38:0,
                 from /usr/include/spice-server/spice.h:23,
                 from spice.c:1:
/usr/include/spice-1/spice/enums.h:186:5: note: previous definition of ‘SPICE_IMAGE_COMPRESS_OFF’ was here
     SPICE_IMAGE_COMPRESS_OFF,
     ^
In file included from spice.c:1:0:
/usr/include/spice-server/spice.h:477:5: error: redeclaration of enumerator ‘SPICE_IMAGE_COMPRESS_AUTO_GLZ’
     SPICE_IMAGE_COMPRESS_AUTO_GLZ = 2,
     ^
In file included from /usr/include/spice-1/spice/qxl_dev.h:38:0,
                 from /usr/include/spice-server/spice.h:23,
                 from spice.c:1:
/usr/include/spice-1/spice/enums.h:187:5: note: previous definition of ‘SPICE_IMAGE_COMPRESS_AUTO_GLZ’ was here
     SPICE_IMAGE_COMPRESS_AUTO_GLZ,
     ^
In file included from spice.c:1:0:
/usr/include/spice-server/spice.h:478:5: error: redeclaration of enumerator ‘SPICE_IMAGE_COMPRESS_AUTO_LZ’
     SPICE_IMAGE_COMPRESS_AUTO_LZ  = 3,
     ^
In file included from /usr/include/spice-1/spice/qxl_dev.h:38:0,
                 from /usr/include/spice-server/spice.h:23,
                 from spice.c:1:
/usr/include/spice-1/spice/enums.h:188:5: note: previous definition of ‘SPICE_IMAGE_COMPRESS_AUTO_LZ’ was here
     SPICE_IMAGE_COMPRESS_AUTO_LZ,
     ^
In file included from spice.c:1:0:
/usr/include/spice-server/spice.h:479:5: error: redeclaration of enumerator ‘SPICE_IMAGE_COMPRESS_QUIC’
     SPICE_IMAGE_COMPRESS_QUIC     = 4,
     ^
In file included from /usr/include/spice-1/spice/qxl_dev.h:38:0,
                 from /usr/include/spice-server/spice.h:23,
                 from spice.c:1:
/usr/include/spice-1/spice/enums.h:189:5: note: previous definition of ‘SPICE_IMAGE_COMPRESS_QUIC’ was here
     SPICE_IMAGE_COMPRESS_QUIC,
     ^
In file included from spice.c:1:0:
/usr/include/spice-server/spice.h:480:5: error: redeclaration of enumerator ‘SPICE_IMAGE_COMPRESS_GLZ’
     SPICE_IMAGE_COMPRESS_GLZ      = 5,
     ^
In file included from /usr/include/spice-1/spice/qxl_dev.h:38:0,
                 from /usr/include/spice-server/spice.h:23,
                 from spice.c:1:
/usr/include/spice-1/spice/enums.h:190:5: note: previous definition of ‘SPICE_IMAGE_COMPRESS_GLZ’ was here
     SPICE_IMAGE_COMPRESS_GLZ,
     ^
In file included from spice.c:1:0:
/usr/include/spice-server/spice.h:481:5: error: redeclaration of enumerator ‘SPICE_IMAGE_COMPRESS_LZ’
     SPICE_IMAGE_COMPRESS_LZ       = 6,
     ^
In file included from /usr/include/spice-1/spice/qxl_dev.h:38:0,
                 from /usr/include/spice-server/spice.h:23,
                 from spice.c:1:
/usr/include/spice-1/spice/enums.h:191:5: note: previous definition of ‘SPICE_IMAGE_COMPRESS_LZ’ was here
     SPICE_IMAGE_COMPRESS_LZ,

This does not happen with app-emulation/spice-protocol-0.12.3 (current stable)
Comment 1 Hanspeter Spalinger 2015-08-14 14:50:11 UTC
by compiling spice.c I wanted to say, that I put that test-code into a file spice.c and try to compile it.
Comment 2 Ben Kohler gentoo-dev 2015-08-16 13:41:58 UTC
Related to bug 557872, fixed by bumping spice-protocol to 0.12.9
Comment 3 Ben Kohler gentoo-dev 2015-08-16 16:35:44 UTC
*** Bug 557942 has been marked as a duplicate of this bug. ***
Comment 4 Matthias Maier gentoo-dev 2015-08-16 17:19:45 UTC
commit 4b14d479c991e8997ac7cc69455de18825bae6f7
Author: Matthias Maier <tamiko@gentoo.org>
Date:   Sun Aug 16 12:09:24 2015 -0500

    app-emulation/spice-protocol: version bump to 0.12.9 (bug #557576)
    
    Bump to version 0.12.9 to fix a header incompatibility
    
    Gentoo-Bug: 557576
    Gentoo-Bug: 557872
    Gentoo-Bug: 557942
    
    Package-Manager: portage-2.2.20.1