GNU bug report logs -
#52564
Errors building pgtk in Fedora 34 & 35 using --with-xwidgets
Previous Next
To reply to this bug, email your comments to 52564 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#52564
; Package
emacs
.
(Fri, 17 Dec 2021 05:06:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Sebastián Monía <seb.hoagie <at> outlook.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 17 Dec 2021 05:06:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello!
Building Emacs pgtk branch, I get compilation errors running make. Started using Fedora 34, but upgraded to Fedora 35 in case I had something outdated but still, same problem. A bunch of the compilation errors refer to the same structs/data types so I have a sample of one of each (but maybe I missed one "type"):
--------------------------------------------------------------------------------
In file included from /usr/include/X11/Xlib.h:44,
from xwidget.h:35,
from window.c:41:
/usr/include/X11/X.h:96:13: error: conflicting types for ‘Window’; have ‘XID’ {aka ‘long unsigned int’}
96 | typedef XID Window;
| ^~~~~~
--------------------------------------------------------------------------------
In file included from xwidget.h:35,
from window.c:41:
/usr/include/X11/Xlib.h:433:3: error: conflicting types for ‘XRectangle’; have ‘struct <anonymous>’
433 | } XRectangle;
| ^~~~~~~~~~
--------------------------------------------------------------------------------
In file included from xwidget.h:35,
from window.c:41:
/usr/include/X11/Xlib.h:487:26: error: conflicting types for ‘Display’; have ‘struct _XDisplay’
487 | typedef struct _XDisplay Display;
| ^~~~~~~
--------------------------------------------------------------------------------
In file included from xwidget.h:35,
from dispnew.c:43:
/usr/include/X11/Xlib.h:1067:3: error: conflicting types for ‘XChar2b’; have ‘struct <anonymous>’
1067 | } XChar2b;
| ^~~~~~~
--------------------------------------------------------------------------------
In file included from xwidget.h:36,
from emacsgtkfixed.c:30:
xterm.h:1174:1: error: conflicting types for ‘x_display_pixel_width’; have ‘int(struct x_display_info *)’
1174 | x_display_pixel_width (struct x_display_info *dpyinfo)
| ^~~~~~~~~~~~~~~~~~~~~
--------------------------------------------------------------------------------
Posted on Reddit about it, two people provided very useful insights:
1. Removing the --with-xwidgets flag allowed me to build.
2. Quote: "The file /usr/include/X11/Xlib.h in your message is from libx11-dev / libx11-devel. Looking at their GitLab CI file, they test against Debian 9 stretch which uses version 1.6.4 (according to https://packages.debian.org/stretch/libx11-dev) whereas Fedora 35 libx11-devel is using version 1.7.3 (according to https://packages.fedoraproject.org/pkgs/libX11/libX11-devel/)"
(link to reddit post: https://www.reddit.com/r/emacs/comments/rht9yw/cant_compile_pgtk_in_fedora_35/)
Being that this is a build of master, I would assume it is low priority :)
Thank you!
Sebastián
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#52564
; Package
emacs
.
(Sat, 18 Dec 2021 02:37:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 52564 <at> debbugs.gnu.org (full text, mbox):
Sebastián Monía <seb.hoagie <at> outlook.com> writes:
> Building Emacs pgtk branch, I get compilation errors running
> make. Started using Fedora 34, but upgraded to Fedora 35 in case I had
> something outdated but still, same problem. A bunch of the compilation
> errors refer to the same structs/data types so I have a sample of one
> of each (but maybe I missed one "type"):
xwidgets are not supposed to work on PGTK: the new code (since November)
requires X primitives to work.
I don't want to make changes to the xwidget code on the feature branch
to make it work there. The priority for that branch is to merge it into
master, not to add features that will further diverge it from master.
Stefan, could you please tag this issue as "wishlist"? Thanks.
Severity set to 'wishlist' from 'normal'
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Sat, 18 Dec 2021 13:27:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#52564
; Package
emacs
.
(Mon, 20 Dec 2021 07:00:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 52564 <at> debbugs.gnu.org (full text, mbox):
Po Lu <luangruo <at> yahoo.com> writes:
> Stefan, could you please tag this issue as "wishlist"?
Done.
Forcibly Merged 52564 52675.
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Mon, 20 Dec 2021 07:00:04 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#52564
; Package
emacs
.
(Wed, 29 Dec 2021 02:11:01 GMT)
Full text and
rfc822 format available.
Message #18 received at 52564 <at> debbugs.gnu.org (full text, mbox):
Sebastián Monía <seb.hoagie <at> outlook.com> writes:
> Hello!
>
> Building Emacs pgtk branch, I get compilation errors running
> make. Started using Fedora 34, but upgraded to Fedora 35 in case I had
> something outdated but still, same problem. A bunch of the compilation
> errors refer to the same structs/data types so I have a sample of one
> of each (but maybe I missed one "type"):
xwidgets are now supported on PGTK, so please test.
Thanks in advance.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#52564
; Package
emacs
.
(Thu, 30 Dec 2021 22:35:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 52564 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
It builds OK!
For some reason it stopped reporting the monitors by name when I run (frame-monitor-attributes), using XWAYLAND0, XWAYLAND1, etc. instead. But I don't think that is related to the build process at all.
Thank you!!!
________________________________
From: Po Lu <luangruo <at> yahoo.com>
Sent: Tuesday, December 28, 2021 7:10 PM
To: Sebastián Monía <seb.hoagie <at> outlook.com>
Cc: 52564 <at> debbugs.gnu.org <52564 <at> debbugs.gnu.org>
Subject: Re: bug#52564: Errors building pgtk in Fedora 34 & 35 using --with-xwidgets
Sebastián Monía <seb.hoagie <at> outlook.com> writes:
> Hello!
>
> Building Emacs pgtk branch, I get compilation errors running
> make. Started using Fedora 34, but upgraded to Fedora 35 in case I had
> something outdated but still, same problem. A bunch of the compilation
> errors refer to the same structs/data types so I have a sample of one
> of each (but maybe I missed one "type"):
xwidgets are now supported on PGTK, so please test.
Thanks in advance.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#52564
; Package
emacs
.
(Thu, 30 Dec 2021 22:36:02 GMT)
Full text and
rfc822 format available.
Message #24 received at 52564 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Correction: it reports the monitor names correctly, my mistake >_>
________________________________
From: Sebastián Monía <seb.hoagie <at> outlook.com>
Sent: Thursday, December 30, 2021 3:33 PM
To: Po Lu <luangruo <at> yahoo.com>
Cc: 52564 <at> debbugs.gnu.org <52564 <at> debbugs.gnu.org>
Subject: Re: bug#52564: Errors building pgtk in Fedora 34 & 35 using --with-xwidgets
It builds OK!
For some reason it stopped reporting the monitors by name when I run (frame-monitor-attributes), using XWAYLAND0, XWAYLAND1, etc. instead. But I don't think that is related to the build process at all.
Thank you!!!
________________________________
From: Po Lu <luangruo <at> yahoo.com>
Sent: Tuesday, December 28, 2021 7:10 PM
To: Sebastián Monía <seb.hoagie <at> outlook.com>
Cc: 52564 <at> debbugs.gnu.org <52564 <at> debbugs.gnu.org>
Subject: Re: bug#52564: Errors building pgtk in Fedora 34 & 35 using --with-xwidgets
Sebastián Monía <seb.hoagie <at> outlook.com> writes:
> Hello!
>
> Building Emacs pgtk branch, I get compilation errors running
> make. Started using Fedora 34, but upgraded to Fedora 35 in case I had
> something outdated but still, same problem. A bunch of the compilation
> errors refer to the same structs/data types so I have a sample of one
> of each (but maybe I missed one "type"):
xwidgets are now supported on PGTK, so please test.
Thanks in advance.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#52564
; Package
emacs
.
(Fri, 31 Dec 2021 01:02:02 GMT)
Full text and
rfc822 format available.
Message #27 received at 52564 <at> debbugs.gnu.org (full text, mbox):
Sebastián Monía <seb.hoagie <at> outlook.com> writes:
> It builds OK! For some reason it stopped reporting the monitors by
> name when I run (frame-monitor-attributes), using XWAYLAND0,
> XWAYLAND1, etc. instead. But I don't think that is related to the
> build process at all.
You probably forgot to specify `--with-pgtk' when configuring, and ended
up with an X build.
This bug report was last modified 3 years and 167 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.