From: "Sebastián Monía" <seb.hoagie@outlook.com>
To: 52564@debbugs.gnu.org
Subject: bug#52564: Errors building pgtk in Fedora 34 & 35 using --with-xwidgets
Date: Fri, 17 Dec 2021 04:45:46 +0000 [thread overview]
Message-ID: <CY4PR08MB33490675804DA7CFEFD49C428B789@CY4PR08MB3349.namprd08.prod.outlook.com> (raw)
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
next reply other threads:[~2021-12-17 4:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-17 4:45 Sebastián Monía [this message]
2021-12-18 2:36 ` bug#52564: Errors building pgtk in Fedora 34 & 35 using --with-xwidgets 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CY4PR08MB33490675804DA7CFEFD49C428B789@CY4PR08MB3349.namprd08.prod.outlook.com \
--to=seb.hoagie@outlook.com \
--cc=52564@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.