Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829628 - x11-drivers/xf86-video-qxl-0.1.5_p20200205-r1 /usr/include/xorg/xf86Opt.h:44:10: error: two or more data types in declaration specifiers 44 | Bool bool;
Summary: x11-drivers/xf86-video-qxl-0.1.5_p20200205-r1 /usr/include/xorg/xf86Opt.h:44:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-12-19 13:27 UTC by email200202
Modified: 2021-12-21 07:40 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,36.77 KB, text/x-log)
2021-12-19 13:28 UTC, email200202
Details
emerge -pqv '=x11-drivers/xf86-video-qxl-0.1.5_p20200205-r1::gentoo' (file_829628.txt,207 bytes, text/plain)
2021-12-19 13:30 UTC, email200202
Details
emerge --info '=x11-drivers/xf86-video-qxl-0.1.5_p20200205-r1::gentoo' (file_829628.txt,7.54 KB, text/plain)
2021-12-19 13:31 UTC, email200202
Details
fix_bool.patch (fix_bool.patch,1.52 KB, patch)
2021-12-19 13:34 UTC, email200202
Details | Diff
Created change-header-inclusion-order-avoid-xorg-headers-catching-stdbool.h_for-qxl-video-driver.patch (change-header-inclusion-order-avoid-xorg-headers-catching-stdbool.h_for-qxl-video-driver.patch,382 bytes, patch)
2021-12-20 00:55 UTC, Remus-Gabriel Chelu
Details | Diff
/var/log/Xorg.0.log (Xorg.0.log,20.12 KB, text/x-log)
2021-12-21 07:37 UTC, email200202
Details

Note You need to log in before you can comment on or make changes to this bug.
Description email200202 2021-12-19 13:27:05 UTC
Failed to build with this message:
In file included from /usr/include/xf86drmMode.h:45,
                 from qxl_drmmode.h:33,
                 from qxl_drmmode.c:36:
/usr/include/xorg/xf86Opt.h:44:10: error: two or more data types in declaration specifiers
   44 |     Bool bool;
      |          ^~~~


Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge -auvDN world

Actual Results:  
Failed to build

Expected Results:  
Not to fail
Comment 1 email200202 2021-12-19 13:28:50 UTC
Created attachment 759765 [details]
build.log
Comment 2 email200202 2021-12-19 13:30:19 UTC
Created attachment 759766 [details]
emerge -pqv '=x11-drivers/xf86-video-qxl-0.1.5_p20200205-r1::gentoo'
Comment 3 email200202 2021-12-19 13:31:48 UTC
Created attachment 759767 [details]
emerge --info '=x11-drivers/xf86-video-qxl-0.1.5_p20200205-r1::gentoo'
Comment 4 email200202 2021-12-19 13:34:23 UTC
Created attachment 759768 [details, diff]
fix_bool.patch
Comment 5 email200202 2021-12-19 13:41:50 UTC
The problem is in include file from x11-base/xorg-server-1.20.14 which uses reserved keyword "bool" as variable.

The attached patch changes the variable name.
Comment 6 Joakim Tjernlund 2021-12-19 18:40:07 UTC
This may be same as https://bugs.gentoo.org/829627
Try changing the include order as in 829627
Comment 7 Remus-Gabriel Chelu 2021-12-20 00:53:38 UTC
(In reply to Joakim Tjernlund from comment #6)
> This may be same as https://bugs.gentoo.org/829627
> Try changing the include order as in 829627

I have had the same problem as email200202@yahoo.com, and I have found the same solution: change-header-inclusion-order-avoid-xorg-headers-catching-stdbool.h_for-qxl-video-driver.patch
The compilation was a success.
The patch proposed by email200202@yahoo.com, although I think it fixes the compilation problem for both the xf86-video-qxl-0.1.5_p20200205-r1 driver, and the xf86-video-vmware-13.3.0 driver; It seems to me like a regression in the development line of xorg-server-21.1.2
But, it is only my opinion...
Comment 8 Remus-Gabriel Chelu 2021-12-20 00:55:27 UTC
Created attachment 759860 [details, diff]
Created change-header-inclusion-order-avoid-xorg-headers-catching-stdbool.h_for-qxl-video-driver.patch
Comment 9 Larry the Git Cow gentoo-dev 2021-12-20 00:58:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa6b6be1913a672ea920ba2ae6fad4c45490ef9d

commit aa6b6be1913a672ea920ba2ae6fad4c45490ef9d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-20 00:57:50 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-20 00:58:26 +0000

    x11-drivers/xf86-video-qxl: fix include order
    
    Not quite clear if this is really an issue with xorg-server, but it is what it is.
    
    Closes: https://bugs.gentoo.org/829628
    Thanks-to: Remus-Gabriel Chelu <gaby_r_chelu@yahoo.es>
    Signed-off-by: Sam James <sam@gentoo.org>

 ...video-qxl-0.1.5_p20200205-xorg-21.0-build-bool.patch | 17 +++++++++++++++++
 .../xf86-video-qxl-0.1.5_p20200205-r1.ebuild            |  1 +
 2 files changed, 18 insertions(+)
Comment 10 email200202 2021-12-21 07:37:39 UTC
Created attachment 759952 [details]
/var/log/Xorg.0.log
Comment 11 email200202 2021-12-21 07:38:22 UTC
Please re-open this bug.
The software compiles successfully but I got black screen after restart.

It seems that there is compatibility problem between 
x11-base/xorg-server-21.1.2-r2 and x11-drivers/xf86-video-qxl-0.1.5_p20200205-r1

I attached /var/log/Xorg.0.log file.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-21 07:40:00 UTC
(In reply to email200202 from comment #11)
> Please re-open this bug.
> The software compiles successfully but I got black screen after restart.
> 
> It seems that there is compatibility problem between 
> x11-base/xorg-server-21.1.2-r2 and
> x11-drivers/xf86-video-qxl-0.1.5_p20200205-r1
> 
> I attached /var/log/Xorg.0.log file.

I suspect you need to file a new bug for that. It's really unlikely to be related to this one.