unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#52564: Errors building pgtk in Fedora 34 & 35 using --with-xwidgets
@ 2021-12-17  4:45 Sebastián Monía
  2021-12-18  2:36 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-12-29  2:10 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 7+ messages in thread
From: Sebastián Monía @ 2021-12-17  4:45 UTC (permalink / raw)
  To: 52564

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






^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#52564: Errors building pgtk in Fedora 34 & 35 using --with-xwidgets
  2021-12-17  4:45 bug#52564: Errors building pgtk in Fedora 34 & 35 using --with-xwidgets Sebastián Monía
@ 2021-12-18  2:36 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-12-20  6:59   ` Stefan Kangas
  2021-12-29  2:10 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 7+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-12-18  2:36 UTC (permalink / raw)
  To: Sebastián Monía; +Cc: 52564, Stefan Kangas

Sebastián Monía <seb.hoagie@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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#52564: Errors building pgtk in Fedora 34 & 35 using --with-xwidgets
  2021-12-18  2:36 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-12-20  6:59   ` Stefan Kangas
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan Kangas @ 2021-12-20  6:59 UTC (permalink / raw)
  To: Po Lu; +Cc: 52564, Sebastián Monía

Po Lu <luangruo@yahoo.com> writes:

> Stefan, could you please tag this issue as "wishlist"?

Done.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#52564: Errors building pgtk in Fedora 34 & 35 using --with-xwidgets
  2021-12-17  4:45 bug#52564: Errors building pgtk in Fedora 34 & 35 using --with-xwidgets Sebastián Monía
  2021-12-18  2:36 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-12-29  2:10 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-12-30 22:33   ` Sebastián Monía
  1 sibling, 1 reply; 7+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-12-29  2:10 UTC (permalink / raw)
  To: Sebastián Monía; +Cc: 52564

Sebastián Monía <seb.hoagie@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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#52564: Errors building pgtk in Fedora 34 & 35 using --with-xwidgets
  2021-12-29  2:10 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-12-30 22:33   ` Sebastián Monía
  2021-12-30 22:35     ` Sebastián Monía
  2021-12-31  1:01     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 7+ messages in thread
From: Sebastián Monía @ 2021-12-30 22:33 UTC (permalink / raw)
  To: Po Lu; +Cc: 52564@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 1002 bytes --]

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@yahoo.com>
Sent: Tuesday, December 28, 2021 7:10 PM
To: Sebastián Monía <seb.hoagie@outlook.com>
Cc: 52564@debbugs.gnu.org <52564@debbugs.gnu.org>
Subject: Re: bug#52564: Errors building pgtk in Fedora 34 & 35 using --with-xwidgets

Sebastián Monía <seb.hoagie@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.

[-- Attachment #2: Type: text/html, Size: 2248 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#52564: Errors building pgtk in Fedora 34 & 35 using --with-xwidgets
  2021-12-30 22:33   ` Sebastián Monía
@ 2021-12-30 22:35     ` Sebastián Monía
  2021-12-31  1:01     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 0 replies; 7+ messages in thread
From: Sebastián Monía @ 2021-12-30 22:35 UTC (permalink / raw)
  To: Po Lu; +Cc: 52564@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 1366 bytes --]

Correction: it reports the monitor names correctly, my mistake >_>
________________________________
From: Sebastián Monía <seb.hoagie@outlook.com>
Sent: Thursday, December 30, 2021 3:33 PM
To: Po Lu <luangruo@yahoo.com>
Cc: 52564@debbugs.gnu.org <52564@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@yahoo.com>
Sent: Tuesday, December 28, 2021 7:10 PM
To: Sebastián Monía <seb.hoagie@outlook.com>
Cc: 52564@debbugs.gnu.org <52564@debbugs.gnu.org>
Subject: Re: bug#52564: Errors building pgtk in Fedora 34 & 35 using --with-xwidgets

Sebastián Monía <seb.hoagie@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.

[-- Attachment #2: Type: text/html, Size: 3094 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#52564: Errors building pgtk in Fedora 34 & 35 using --with-xwidgets
  2021-12-30 22:33   ` Sebastián Monía
  2021-12-30 22:35     ` Sebastián Monía
@ 2021-12-31  1:01     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 0 replies; 7+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-12-31  1:01 UTC (permalink / raw)
  To: Sebastián Monía; +Cc: 52564@debbugs.gnu.org

Sebastián Monía <seb.hoagie@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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-12-31  1:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-17  4:45 bug#52564: Errors building pgtk in Fedora 34 & 35 using --with-xwidgets Sebastián Monía
2021-12-18  2:36 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-20  6:59   ` Stefan Kangas
2021-12-29  2:10 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-30 22:33   ` Sebastián Monía
2021-12-30 22:35     ` Sebastián Monía
2021-12-31  1:01     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).