Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 494308 - x11-drivers/xf86-video-qxl-0.1.1 - In function 'spiceqxl_display_monitors_config': .../work/xf86-video-qxl-0.1.1/src/spiceqxl_display.c:353:56: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
Summary: x11-drivers/xf86-video-qxl-0.1.1 - In function 'spiceqxl_display_monitors_con...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on: 416069
Blocks:
  Show dependency tree
 
Reported: 2013-12-15 10:08 UTC by Petr Pisar
Modified: 2017-01-26 06:32 UTC (History)
1 user (show)

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


Attachments
There is a patch (x86.patch,529 bytes, patch)
2015-02-20 02:46 UTC, Alex
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisar 2013-12-15 10:08:12 UTC
It's not possible to compile spiceqxl_display.c from xf86-video-qxl-0.1.1 with spice-protocol-0.12.3 on 32-bit x86 because there is a cast from pointer to u_int64_t which is not compatible with 32-bit pointers on x86:

/var/tmp/portage/x11-drivers/xf86-video-qxl-0.1.1/work/xf86-video-qxl-0.1.1/src/spiceqxl_display.c: In function 'spiceqxl_display_monitors_config':
/var/tmp/portage/x11-drivers/xf86-video-qxl-0.1.1/work/xf86-video-qxl-0.1.1/src/spiceqxl_display.c:353:56: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]

Reported to upstream <https://bugs.freedesktop.org/show_bug.cgi?id=72169>.

I worry this is a design fault in the Spice protocol or spice-protocol-0.12.3 implementation.
Comment 1 Alex 2015-02-20 02:46:48 UTC
Created attachment 397024 [details, diff]
There is a patch
Comment 2 Alex 2015-02-20 02:51:15 UTC
Comment on attachment 397024 [details, diff]
There is a patch

also working for 0.1.3
Comment 3 Matt Turner gentoo-dev 2017-01-26 06:32:59 UTC
This is fixed in x11-drivers/xf86-video-qxl-0.1.5.